Skip to content

Commit

Permalink
OS/2: Don't emit DWARF2 unwind tables on OS/2 by default.
Browse files Browse the repository at this point in the history
See #8 for more info.
  • Loading branch information
dmik committed Jan 23, 2015
1 parent 6195120 commit 4712cb7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gcc/config/i386/i386.c
Original file line number Diff line number Diff line change
Expand Up @@ -3772,7 +3772,13 @@ ix86_option_override_internal (bool main_args_p,
opts->x_flag_omit_frame_pointer
= !(USE_IX86_FRAME_POINTER || opts->x_optimize_size);
if (opts->x_flag_asynchronous_unwind_tables == 2)
#ifdef __OS2__
/* Don't emit DWARF2 unwind tables on OS/2 by default as it makes no use
of it (this would only add unresolved __ehInit in each object). */
opts->x_flag_asynchronous_unwind_tables = 0;
#else
opts->x_flag_asynchronous_unwind_tables = !USE_IX86_FRAME_POINTER;
#endif
if (opts->x_flag_pcc_struct_return == 2)
opts->x_flag_pcc_struct_return = DEFAULT_PCC_STRUCT_RETURN;
}
Expand Down

0 comments on commit 4712cb7

Please sign in to comment.