This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/24585] spurious section conflict error while building linux kernel
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2005 16:12:00 -0000
- Subject: [Bug target/24585] spurious section conflict error while building linux kernel
- References: <bug-24585-7834@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pluto at agmk dot net 2005-10-30 16:12 -------
(In reply to comment #0)
> Seems to happen with 3.3,3.4,
>
> Short test case courtesy of A.Pinski:
>
> static void __attribute__ ((__section__ (".init.text"))) pci_fixup_i450nx(void)
> { }
> static int __attribute__ ((__section__ (".init.text")))
> toshiba_ohci1394_dmi_table[] = { };
>
> causes with gcc (without -O2);
> t.c:4: error: toshiba_ohci1394_dmi_table causes a section type conflict
without `static` it also fails on 4.1/powerpc.
--
pluto at agmk dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24585