darwin.h (CC1_SPEC): Handle -gused and -gfull.
authorDevang Patel <dpatel@apple.com>
Fri, 25 Jun 2004 15:41:38 +0000 (08:41 -0700)
committerDevang Patel <dpatel@gcc.gnu.org>
Fri, 25 Jun 2004 15:41:38 +0000 (08:41 -0700)
        * config/rs6000/darwin.h (CC1_SPEC): Handle -gused and -gfull.
        * config/i386/darwin.h (CC1_SPEC): Same.

From-SVN: r83655

gcc/ChangeLog
gcc/config/i386/darwin.h
gcc/config/rs6000/darwin.h

index 4083a674462f1e531713f3cc013a1737d9699d2f..29a8805b96fafc6f6b919d3d00ecdca9df66ddd9 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-25  Devang Patel  <dpatel@apple.com>
+       
+       * config/rs6000/darwin.h (CC1_SPEC): Handle -gused and -gfull.
+       * config/i386/darwin.h (CC1_SPEC): Same.
+       
 2004-06-25  Mark G. Adams  <mark.g.adams@sympatico.ca>
 
        * dbxout.h: Add include guards
index c271eab81b3bf710c73561ca3ae8da94e0e77c90..61d06967a87ddf15703c6578b976b2b104ce6f0a 100644 (file)
@@ -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}\
index 993126f84896f6c8a23038edec097b5bad86b28e..b5c9b8701008af07ab8c4eef67122503e831bf57 100644 (file)
@@ -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}}"