aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2004-06-25 08:41:38 -0700
committerDevang Patel <dpatel@gcc.gnu.org>2004-06-25 08:41:38 -0700
commitdba845ac28a8f10754d30bb4826574d3f107f84c (patch)
tree019f83ec21fffb90f85b404fe3ce31609ef0ed53 /gcc/config
parente2296cc21da00e27eaa1add49748c495fc7a0876 (diff)
downloadgcc-dba845ac28a8f10754d30bb4826574d3f107f84c.zip
gcc-dba845ac28a8f10754d30bb4826574d3f107f84c.tar.gz
gcc-dba845ac28a8f10754d30bb4826574d3f107f84c.tar.bz2
darwin.h (CC1_SPEC): Handle -gused and -gfull.
* config/rs6000/darwin.h (CC1_SPEC): Handle -gused and -gfull. * config/i386/darwin.h (CC1_SPEC): Same. From-SVN: r83655
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/i386/darwin.h3
-rw-r--r--gcc/config/rs6000/darwin.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h
index c271eab..61d0696 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 993126f..b5c9b87 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}}"