Patch to get ia64-aix cross-compiling cc1

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Tue Nov 13 15:03:00 GMT 2001


 > From: Richard Henderson <rth@redhat.com>
 > 
 > On Wed, Nov 14, 2001 at 06:37:36PM -0500, Kaveh R. Ghazi wrote:
 > > That does seem to be safest (and cleanest since there aren't too many
 > > places to change.)
 > 
 > Eh.  I really prefer an undef in system.h...
 > r~


The problem with that approach is that aix's sys/machine.h could come
in from some other avenue than system.h.  There are hundreds of places
in gcc where we include system headers directly.  We might be able to
clean them up, but its a much more invasive patch.

Since I'm working from a cross compile perspective, I can't verify
that the undef solution works in the native ia64-aix case which
inspired the hack in the first place.  Whereas by renaming REG_SIZE I
can be confident that the problem is solved for native builds and test
that a cross-compile works.  (And the rename approach addresses Zack's
concern with xm-header files.)

So would you please reconsider my last patch?
http://gcc.gnu.org/ml/gcc-patches/2001-11/msg00944.html

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions



More information about the Gcc-patches mailing list