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: [patch win32]: fix for PR target/41943


2010/7/22 Danny Smith <dansmister@gmail.com>:
>> ? ? ? ?(i[34567]86-*-mingw* | x86_64-*-mingw*): Use
>> ? ? ? ?for float.h post, and for w64 targets stddef.h/stdarg.h pre
>> ? ? ? ?fixing by include_next.
> The mingw323 float.h is alrewady prefixed with
>
> #include_next<float.h>
>
> #ifndef _MINGW_FLOAT_H_
> #define _MINGW_FLOAT_H_
>
> ....
>
> Postfixing ?#include_next <float.h> onto gcc's float.h causes:
>
> gcc -H -Wall f.c
> . c:\mingw\bin\../lib/gcc/mingw32/4.6.0/../../../../include/float.h
> .. c:\mingw\bin\../lib/gcc/mingw32/4.6.0/include/float.h
> In file included from c:\mingw\bin\../lib/gcc/mingw32/4.6.0/../../../../include/
> float.h:19:0,
> ? ? ? ? ? ? ? ? from f.c:1:
> c:\mingw\bin\../lib/gcc/mingw32/4.6.0/include/float.h:278:24: fatal error: float
> .h: No such file or directory
> compilation terminated.
>
> Danny
>

I know. But as the float.h from gcc's internal header always comes
first in include order, this next_include in system-headers is wrong.
I tried to move the order of includes, but this patch was rejected. So
the way to solve this is by pre/post-fixing those headers to make sure
that by default the system-header is included, too.
If you prefer to have this change just for w64, I am fine.

Regards,
Kai

-- 
|? (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


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