This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/50264] New: -Wdisabled-optimizations without -O generates strange errors


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]