i386.h (CPP_CPU_SPEC): Allow for -std=c* and -std=i* as equivalent to -ansi in disabl...
authorJoseph Myers <jsm28@cam.ac.uk>
Wed, 10 Jan 2001 17:52:40 +0000 (17:52 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 10 Jan 2001 17:52:40 +0000 (17:52 +0000)
* i386.h (CPP_CPU_SPEC): Allow for -std=c* and -std=i* as
equivalent to -ansi in disabling -Di386.

From-SVN: r38872

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

index f324a4562f2852627fb28df472f47036c2c6ebba..f5229e59a6851e5db21fb1f6eab59d47cf7358bf 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 104b3444165985a11702611a040676a5ef5aab4c..b1dc65f7045d08d35fc6bb0136d2fe8577ac32cc 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__ \