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

Paulo.Matos at csr dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 1 13:21:00 GMT 2011


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.



More information about the Gcc-bugs mailing list