[PATCH][RFC] add inhibit_libc guards to linux-unwind.h for alpha, pa, sh so gcc will build with inhibit_libc set
Steve Kenton
skenton@ou.edu
Mon Sep 3 15:07:00 GMT 2007
The unwind support in linux-unwind.h for the alpha, pa, and sh targets
causes build errors for cross-compilers due to missing headers when
inhibit_libc is set. It looks like they need the same ifndef
inhibit_libc ... endif guards that are currently used by i386 and mips.
As was pointed out to me, some targets such as powerpc don't have this
problem or need the guards so the test should not be centralized like I
tried in an earlier patch. This allows a configuration without-headers
and without-sysroot which sets inhibit_libc automatically for
cross-compilers to successfully build languages=c for these targets. It
should be trivial to remove this check if the unwind stuff gets copied
from glibc or someone sorts out the headers so there is no problem, ala
powerpc, but in the mean time this gets cross compilers building for
people who want to test linux kernels or build a libc. I figure if it
is good enough for i386 it is probably a fairly well accepted trick.
How does this look? Can this be done as one patch, or should it be
split into pieces for each target?
Steve
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inhibit_libc.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070903/1f0103d1/attachment.ksh>
More information about the Gcc-patches
mailing list