[Bug c++/11712] [HPUX 11.00 - gcc 3.3] __STDC_EXT__ not defined for .cpp by default anymore?
dave at hiauly1 dot hia dot nrc dot ca
gcc-bugzilla@gcc.gnu.org
Thu Aug 7 18:53:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11712
------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca 2003-08-07 18:53 -------
Subject: Re: [HPUX 11.00 - gcc 3.3] __STDC_EXT__ not defined for .cpp by default anymore?
> This was caused by:
> 2002-09-22 John David Anglin
>
> * c-common.c (preprocessing_trad_p): Define.
> * pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete.
> (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define.
> * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
> * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define.
> * pa-linux.h (CPP_PREDEFINES): Delete.
> (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
> * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete.
> * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete.
> (TARGET_OS_CPP_BUILTINS): Define.
> * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define.
> (TARGET_SWITCHES): Reformat. Use N_() macro. Add SUBTARGET_SWITCHES.
> (SUBTARGET_SWITCHES): Provide default definition.
> (TARGET_OPTIONS): Reformat. Use N_() macro.
> (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC,
> CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC,
> SUBTARGET_EXTRA_SPECS,
> EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES):
> Delete.
> (TARGET_CPU_CPP_BUILTINS): Define.
> (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems.
> * doc/invoke.texi (msio, mwsio): Document new hppa options.
> * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro
> preprocessing_trad_p().
>
>
> Dave did you really want to remove the define of __STDC_EXT__?
I don't believe I did. It appears the preprocessing done under C++
defines cpp_get_options (pfile)->traditional to be true. Why is
that? The symbol is defined when using C with the default options.
Dave
More information about the Gcc-bugs
mailing list