OSDN Git Service

* i386.h (CPP_CPU_SPEC): Allow for -std=c* and -std=i* as
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jan 2001 17:52:40 +0000 (17:52 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jan 2001 17:52:40 +0000 (17:52 +0000)
equivalent to -ansi in disabling -Di386.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38872 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.h

index f324a45..f5229e5 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * i386.h (CPP_CPU_SPEC): Allow for -std=c* and -std=i* as
+       equivalent to -ansi in disabling -Di386.
+
 Wed Jan 10 16:38:31 MET 2001  Jan Hubicka  <jh@suse.cz>
 
        * i386.c (ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes):
index 104b344..b1dc65f 100644 (file)
@@ -411,7 +411,7 @@ extern int ix86_arch;
 #ifndef CPP_CPU_SPEC
 #define CPP_CPU_SPEC "\
 -Acpu=i386 -Amachine=i386 \
-%{!ansi:-Di386} -D__i386 -D__i386__ \
+%{!ansi:%{!std=c*:%{!std=i*:-Di386}}} -D__i386 -D__i386__ \
 %{march=i386:%{!mcpu*:-D__tune_i386__ }}\
 %{march=i486:-D__i486 -D__i486__ %{!mcpu*:-D__tune_i486__ }}\
 %{march=pentium|march=i586:-D__i586 -D__i586__ -D__pentium -D__pentium__ \