This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/24585] spurious section conflict error while building linux kernel



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]