This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/15574] New: inappropriate optimization of printf()
- From: "belyshev at lubercy dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2004 19:22:13 -0000
- Subject: [Bug c/15574] New: inappropriate optimization of printf()
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
cat > bug.i << EOF
void abort ();
int printf (const char *, ...);
int puts (const char *s)
{
abort ();
}
int main ()
{
printf ("hello, world\n");
return 0;
}
EOF
gcc bug.i -O
./a.out
Aborted
--
Summary: inappropriate optimization of printf()
Product: gcc
Version: 3.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at lubercy dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15574