Porting gcc to HP Nonstop Ux
Joseph S. Myers
jsm28@cam.ac.uk
Fri May 2 21:26:00 GMT 2003
On Fri, 2 May 2003, Jim Wilson wrote:
> I am looking at current gcc sources. Patches that add ports to old
> compiler sources are not very useful, as they won't be accepted.
>
> __STDC__ is a built-in macro. The compiler defines it for you. Trying
> to define it in SPECS in your tm_file is wrong. Note that no other mips
> port is doing this.
And for new ports with current sources, you should in general avoid
defining macros in specs. Look at TARGET_OS_CPP_BUILTINS etc. instead; if
an option is handled by cc1 at all, the macro should be defined within
cc1, not by specs. There are still some targets that don't follow this
(elimination of which would fix PR c/545), but these are just the ones
that no-one's converted yet.
(There are various cases of special options, such as -pthread on some
ports, which are only handled by the driver and which are converted by
specs into macro definitions. Those are the only cases where defining
macros in specs is appropriate.)
--
Joseph S. Myers
jsm28@cam.ac.uk
More information about the Gcc-bugs
mailing list