Porting gcc to HP Nonstop Ux

Neil Booth neil@daikokuya.co.uk
Fri May 2 05:42:00 GMT 2003


praveen wrote:-

> To mimic that, we had written in the tm_file, name nonstopux.h,
> "#define SUBTARGET_CPP_SPEC " \
> %{!ansi:%{!traditional:-D_LONGLONG -D_NEC_SOURCE -D__STDC__=0}} \
> %{ansi:-D__STDC__=1} \
> %{traditional:-D_LONGLONG -Dhost_mips -Dunix -U__STDC__} \
> %{!mips*:-D_MIPS_ISA=_MIPS_ISA_MIPS2 -D__mips=2 -D__mips__=2 \
>         %{traditional:-Dmips=2} \
> } \"
> 
> 
> Perhaps the above could be a source of the problem, in traditional,
> __STDC__ is undefined while
> In -std, it is defined as 0.
> 
> Could that be a source of the warning?

__STDC__ is a GCC built-in; leave GCC to define it itself.  It will
do the right thing.

Neil.



More information about the Gcc-bugs mailing list