diff options
| author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-07 20:14:42 +0000 |
|---|---|---|
| committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-07 20:14:42 +0000 |
| commit | 754ed174f8d1823b7b81df40ee396739d80f8ca3 (patch) | |
| tree | f106f79a59c3703d55e71c0a9374f56ea2ba3c9a | |
| parent | 8c23b8da087f8620e8e55a7d06bc55a85711f17b (diff) | |
| download | ppe42-gcc-754ed174f8d1823b7b81df40ee396739d80f8ca3.tar.gz ppe42-gcc-754ed174f8d1823b7b81df40ee396739d80f8ca3.zip | |
* config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
inappropriate feature test macros if flag_iso.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99363 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/pa/pa-hpux11.h | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e38ca345d77..b9af6f1ae4e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/config/pa/pa-hpux11.h b/gcc/config/pa/pa-hpux11.h index edb7436193e..72e3bfa483e 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 " \ |

