This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/50264] New: -Wdisabled-optimizations without -O generates strange errors
- From: "Paulo.Matos at csr dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Sep 2011 13:21:05 +0000
- Subject: [Bug c/50264] New: -Wdisabled-optimizations without -O generates strange errors
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50264
Bug #: 50264
Summary: -Wdisabled-optimizations without -O generates strange
errors
Classification: Unclassified
Product: gcc
Version: 4.3.4
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: Paulo.Matos@csr.com
Try:
echo 'char id[] = "x";' > id_test.c
Then:
$ gcc-4.3.4 -Wdisabled-optimization -c id_test.c
cc1: warning: -funit-at-a-time is required for inlining of functions that are
only called once
That warning looks like a bug to me and Ian.