Joe Ciccone wrote: > [EMAIL PROTECTED] wrote: > >> Author: ken >> Date: Sun Jan 6 21:24:48 2008 >> New Revision: 3859 >> >> Log: >> Let gcc-4.2.2 build a ppc64 kernel. >> >> Added: >> trunk/patches/gcc-4.2.2-PR31490-1.patch >> > If you want to talk about funny, I just created this patch to fix an > alpha bug, saw it was related to ppc aswell. This patch needs to go on > all builds of gcc. > > There were two different diffs in that bug report upstream. I noticed that you used the first one, but from what I read the second one(the one that was attached) fixed quite a bit more, Can you see if this patch works for you as well? I'm currently building gcc with the patch that i attached. Hopefully it fixes the kernel build errors I was getting aswell.
Submitted By: Joe Ciccone <[EMAIL PROTECTED]> Date: 2008-01-06 Initial Package Version: 4.2.2 Upstream Status: From Upstream Origin: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31490 Description: Fixes some section type conflict compilation errors. --- gcc-4.2.2.orig/gcc/varasm.c 2007-09-01 11:28:30.000000000 -0400 +++ gcc-4.2.2/gcc/varasm.c 2008-01-06 16:08:09.000000000 -0500 @@ -300,10 +300,20 @@ else { sect = *slot; + + /* Sanity check user variables for flag changes. */ if ((sect->common.flags & ~SECTION_DECLARED) != flags && ((sect->common.flags | flags) & SECTION_OVERRIDE) == 0) { - /* Sanity check user variables for flag changes. */ + /* Allow mixed writable and read-only objects in named sections. */ + if ((sect->common.flags & SECTION_NAMED) != 0 + && (sect->common.flags & ~SECTION_DECLARED) + == flags ^ SECTION_WRITE) + { + sect->common.flags |= SECTION_WRITE; + return sect; + } + if (decl == 0) decl = sect->named.decl; gcc_assert (decl);
_______________________________________________ Clfs-dev mailing list [email protected] http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org
