From: NightStrike <nig...@gm...> - 2010-03-23 12:08:34
|
On Tue, Mar 23, 2010 at 12:57 AM, Mook <moo...@gm...> wrote: > On Sun, Mar 21, 2010 at 4:22 PM, NightStrike <nig...@gm...> wrote: >> On Sun, Mar 21, 2010 at 5:20 PM, Ozkan Sezer <se...@gm...> wrote: >>> For some reason yet unknown to me, the gcc-provided headers >>> have priority over the system provided headers and float.h is >>> especially problematic: Not installing or deleting it is the solution, >>> at least for now. >> >> If gcc headers didn't take priority, then fixincludes wouldn't work. >> >> The real question is why gcc forces changes to system headers instead >> of working with system headers. > > FWIW, I believe this is set in gcc/cppdefaults.c [1] but I haven't > been able to come up with a patch that I don't hate yet. If something > can be done, it would probably involve defining INCLUDE_DEFAULTS in > config/i386/mingw-w64.h somehow, but the temporary workaround I have > (#define PREFIX_INCLUDE_DIR TOOL_INCLUDE_DIR) breaks non-sysroot > prefix builds, so that's not useful. > > Mostly sending this just so the mailing list archive can help remember > this for me ;) > > [1] http://gcc.gnu.org/viewcvs/trunk/gcc/cppdefault.c?view=markup#l44 > > -- > Mook > The real fix is to sync what gcc wants with what we have, with appropriate changes on both sides. |