[Bug middle-end/55859] New: Mention -Og/-Ofast in "error: argument to '-O' should be a non-negative integer"

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 3 12:22:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55859

             Bug #: 55859
           Summary: Mention -Og/-Ofast in "error: argument to '-O' should
                    be a non-negative integer"
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: minor
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


The following error is misleading as also -Ofast and -Og are allowed.

gcc -OFast foo.c
cc1: error: argument to '-O' should be a non-negative integer

Expected: Something like "argument to '-O' should be a non-negative integer,
'g' or 'fast'.

(Mentioned at http://gcc.gnu.org/ml/fortran/2013-01/msg00014.html)



More information about the Gcc-bugs mailing list