[patch] fix C++ warning bootstrap on sparc

Andreas Tobler andreast-list@fgznet.ch
Tue Jul 1 18:03:00 GMT 2008


Hello all,

the attached patch fixes bootstrap on sparc solaris and I assume also on 
x86 solaris.

It has been tested on sparc-solaris2.8/10, darwin-x86/ppc, linux-ppc and 
hppa2.0w-hp-hpux11.11/hppa64--hp-hpux11.11.

I'm not sure if the caddr_t is available everywhere. If not we might 
need to add configury magic.

Ok for main if caddr_t is available everywhere?

Thanks,
Andreas

And thanks to Kaveh for pointing me in the right direction.

2008-07-01  Andreas Tobler  <a.tobler@schweiz.org>

	* ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
	(mmap_gt_pch_use_address): Likewise.
	* config/host-solaris.c (sol_gt_pch_use_address): Likewise.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cxx-warnings-sparc1.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080701/03434d3b/attachment.ksh>


More information about the Gcc-patches mailing list