diff options
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/darwin.h | 3 | ||||
-rw-r--r-- | gcc/config/rs6000/darwin.h | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h index c271eab81b3..61d06967a87 100644 --- a/gcc/config/i386/darwin.h +++ b/gcc/config/i386/darwin.h @@ -43,6 +43,9 @@ Boston, MA 02111-1307, USA. */ #define ASM_SPEC "-arch i686 \ -force_cpusubtype_ALL \ + %{gused: -g -feliminate-unused-debug-symbols %<gused }\ + %{gfull: -g -fno-eliminate-unused-debug-symbols %<gfull }\ + %{g: %{!gfull: -feliminate-unused-debug-symbols %<gfull }}\ %{Zforce_cpusubtype_ALL:-force_cpusubtype_ALL} \ %{!Zforce_cpusubtype_ALL:%{mmmx:-force_cpusubtype_ALL}\ %{msse:-force_cpusubtype_ALL}\ diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h index 993126f8489..b5c9b870100 100644 --- a/gcc/config/rs6000/darwin.h +++ b/gcc/config/rs6000/darwin.h @@ -94,7 +94,9 @@ do { \ #define CC1_SPEC "\ -%{gused: -feliminate-unused-debug-symbols %<gused }\ +%{gused: -g -feliminate-unused-debug-symbols %<gused }\ +%{gfull: -g -fno-eliminate-unused-debug-symbols %<gfull }\ +%{g: %{!gfull: -feliminate-unused-debug-symbols %<gfull }}\ %{static: %{Zdynamic: %e conflicting code gen style switches are used}}\ %{!static:%{!mdynamic-no-pic:-fPIC}}" |