pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define inappropriate feature test macros...
authorJoseph Myers <joseph@codesourcery.com>
Sat, 7 May 2005 20:14:42 +0000 (21:14 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 7 May 2005 20:14:42 +0000 (21:14 +0100)
* config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
inappropriate feature test macros if flag_iso.

From-SVN: r99363

gcc/ChangeLog
gcc/config/pa/pa-hpux11.h

index e38ca34..b9af6f1 100644 (file)
@@ -1,5 +1,10 @@
 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
 
+       * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
+       inappropriate feature test macros if flag_iso.
+
+2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
+
        * config/ia64/hpux.h (NO_IMPLICIT_EXTERN_C): Define.
 
 2005-05-07  Hans-Peter Nilsson  <hp@axis.com>
index edb7436..72e3bfa 100644 (file)
@@ -66,7 +66,7 @@ Boston, MA 02111-1307, USA.  */
          }                                                             \
        if (!TARGET_64BIT)                                              \
          builtin_define ("_ILP32");                                    \
-       if (flag_pa_unix >= 1995)                                       \
+       if (flag_pa_unix >= 1995 && !flag_iso)                          \
          {                                                             \
            builtin_define ("_XOPEN_UNIX");                             \
            builtin_define ("_XOPEN_SOURCE_EXTENDED");                  \
@@ -75,8 +75,11 @@ Boston, MA 02111-1307, USA.  */
          {                                                             \
            if (flag_pa_unix >= 1998)                                   \
              {                                                         \
-               builtin_define ("_INCLUDE__STDC_A1_SOURCE");            \
-               builtin_define ("_INCLUDE_XOPEN_SOURCE_500");           \
+               if (flag_isoc94 || flag_isoc99 || c_dialect_cxx()       \
+                   || !flag_iso)                                       \
+                 builtin_define ("_INCLUDE__STDC_A1_SOURCE");          \
+               if (!flag_iso)                                          \
+                 builtin_define ("_INCLUDE_XOPEN_SOURCE_500");         \
              }                                                         \
            else if (flag_isoc94 || flag_isoc99 || c_dialect_cxx ())    \
              warning (0, "-munix=98 option required for C89 "          \