This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: builtin float.h macros


Richard Henderson wrote:-

> > Will this work properly in strict C90 and C++98 mode, when p+ and p- are
> > not valid parts of preprocessing numbers (and any use of hex floats
> > generates pedwarns)?
> 
> Grr.. no it doesn't.  I didn't think about that at all.  I'll address
> this shortly.  If necessary I'll hard-code all of the alternatives with
> constant strings, but I want to see if I can avoid that.

float.h is a system header even though provided by GCC, right?  If so,
then a simple "cpp_sys_macro_p (pfile)" in the right place in the warning
check in cppexp.c should do it.

I can't promise this will work in the future when I move to expanding
a whole line at a time, but I'll try, and let's not worry about that now
anyway.

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]