diff options
Diffstat (limited to 'gcc/config/sol2.c')
-rw-r--r-- | gcc/config/sol2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/sol2.c b/gcc/config/sol2.c index 95c7e0f4165..7c7c429db3d 100644 --- a/gcc/config/sol2.c +++ b/gcc/config/sol2.c @@ -291,8 +291,8 @@ solaris_file_end (void) void solaris_override_options (void) { - /* Don't emit DWARF3/4 unless specifically selected. Solaris ld cannot - handle CIE version 3 in .eh_frame. */ - if (!global_options_set.x_dwarf_version) + /* Older versions of Solaris ld cannot handle CIE version 3 in .eh_frame. + Don't emit DWARF3/4 unless specifically selected if so. */ + if (!HAVE_LD_EH_FRAME_CIEV3 && !global_options_set.x_dwarf_version) dwarf_version = 2; } |