This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug regression/32872] New: Many tests fail with incorrect warning about inline function
- From: "sje at cup dot hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jul 2007 20:41:47 -0000
- Subject: [Bug regression/32872] New: Many tests fail with incorrect warning about inline function
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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