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

Reply via email to