PowerPC64 large toc model
Alan Modra
amodra@gmail.com
Fri Jun 18 12:59:00 GMT 2010
On Fri, Jun 18, 2010 at 12:00:29PM +0200, Richard Guenther wrote:
> This broke bootstrap on linux64 with
>
> 11:55 < richi> ../../mem-ref2/gcc/config/rs6000/rs6000.c: In function
> 'rs6000_override_options':
> 11:55 < richi> ../../mem-ref2/gcc/config/rs6000/rs6000.c:2775:3: error: suggest
> braces around empty body in an 'if' statement
> [-Werror=empty-body]
Oops. You need bleeding edge GNU ld to pass the HAVE_LD_LARGE_TOC
configure test, and an in-tree binutils needs to have its version
hacked to 2.21. Committing the following as obvious. Sorry about the
breakage.
* config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
Index: gcc/config/rs6000/linux64.h
===================================================================
--- gcc/config/rs6000/linux64.h (revision 160977)
+++ gcc/config/rs6000/linux64.h (working copy)
@@ -70,7 +70,7 @@ extern enum rs6000_cmodel cmodel;
#define TARGET_CMODEL cmodel
#define SET_CMODEL(opt) cmodel = opt
#else
-#define SET_CMODEL(opt)
+#define SET_CMODEL(opt) do {} while (0)
#endif
#undef PROCESSOR_DEFAULT
--
Alan Modra
Australia Development Lab, IBM
More information about the Gcc-patches
mailing list