[PATCH] Add inhibit_libc check to unwind-dw2.c include of MD_UNWIND_SUPPORT
Stephen M. Kenton
skenton@ou.edu
Thu Aug 30 15:32:00 GMT 2007
Alan Modra wrote:
> On Wed, Aug 29, 2007 at 12:31:03AM -0500, Steve Kenton wrote:
>
>> The include of MD_UNWIND_SUPPORT (linux-unwind.h) will cause a build
>> failure
>> due to missing header files in the situation where inhibit_libc is set.
>> Currently i386
>> and mips work around that by using ifndef inhib_libc to exclude the
>> entire contents
>> of linux-unwind.h, but several other targets such as alpha fail to build
>> that configuration.
>> Move the check to a more central location.
>>
>
> Please don't do this. It isn't needed on all targets.
> eg. rs6000/linux-unwind.h needs no other headers.
>
Fair enough, I was originally adding the #ifndef inhibit_libc ... #endif
to linux-unwind.h for the the targets that had build failures, I'll go
back and finish that instead of trying to centralize it since it's
clearly not as generic as I thought.
More information about the Gcc-patches
mailing list