If I do a bootstrap build of GCC I get a large (160+) number of C test failures
due to extra warning output.  This only happens with a bootstrap build so I
think GCC is miscompiling itself.   The included program gives the warning:

x.c:2: warning: inline function 'foo' given attribute noinline

Which it should not give because the function was not declared to be inline.

The test case is:

void __attribute__ ((__noinline__)) foo (int xf)
{
}
int main()
{
  foo (1);
  return 0;
}


-- 
           Summary: Many tests fail with incorrect warning about inline
                    function
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: regression
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sje at cup dot hp dot com
  GCC host triplet: ia64-*-linux-gnu
GCC target triplet: ia64-*-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32872

Reply via email to