[Bug middle-end/61848] [4.10 Regression] a previous declaration causes the section attribute to be lost
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jul 19 04:03:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Target Milestone|--- |4.10.0
Summary|a previous declaration |[4.10 Regression] a
|causes the section |previous declaration causes
|attribute to be lost |the section attribute to be
| |lost
Severity|normal |blocker
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This causes the kernel to output messages like:
WARNING: arch/arm64/mm/built-in.o(.text.unlikely+0x104): Section mismatch in
reference from the function mem_init() to the function
.init.text:arm64_swiotlb_init()
The function mem_init() references
the function __init arm64_swiotlb_init().
This is often because mem_init lacks a __init
annotation or the annotation of arm64_swiotlb_init is wrong.
More information about the Gcc-bugs
mailing list