This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/25966] New: gcc shouldn't inline functions with different section attributes
- From: "ak at muc dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jan 2006 04:38:43 -0000
- Subject: [Bug tree-optimization/25966] New: gcc shouldn't inline functions with different section attributes
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Following test case
extern void f2(void);
static __attribute__((section(".text.init"))) int f1(void)
{
f2();
}
void f3(void)
{
f1();
}
gives
f3:
jmp f2
But f1 shouldn't have been inlined into f2 because it as a different
section attribute and might have special properties from that other
section.
gcc version 4.2.0 20060118 (experimental)
--
Summary: gcc shouldn't inline functions with different section
attributes
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ak at muc dot de
GCC host triplet: x86_64-linux
GCC target triplet: x86_64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25966