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: unassig...@gcc.gnu.org

        ReportedBy: bur...@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)

Reply via email to