diff options
author | Joseph Myers <joseph@codesourcery.com> | 2005-05-07 21:14:42 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2005-05-07 21:14:42 +0100 |
commit | 758cdc11236776e041052596fe0580edd0081e40 (patch) | |
tree | f106f79a59c3703d55e71c0a9374f56ea2ba3c9a /gcc/config/pa | |
parent | bdeb7efa696d7677ae878bcc88cef0a7377f71c9 (diff) | |
download | gcc-758cdc11236776e041052596fe0580edd0081e40.zip gcc-758cdc11236776e041052596fe0580edd0081e40.tar.gz gcc-758cdc11236776e041052596fe0580edd0081e40.tar.bz2 |
pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define inappropriate feature test macros if flag_iso.
* config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
inappropriate feature test macros if flag_iso.
From-SVN: r99363
Diffstat (limited to 'gcc/config/pa')
-rw-r--r-- | gcc/config/pa/pa-hpux11.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/config/pa/pa-hpux11.h b/gcc/config/pa/pa-hpux11.h index edb7436..72e3bfa 100644 --- a/gcc/config/pa/pa-hpux11.h +++ b/gcc/config/pa/pa-hpux11.h @@ -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 " \ |