[LLVMbugs] [Bug 8195] New: Confusing error message from high optimisation level

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 21 02:56:38 PDT 2010


           Summary: Confusing error message from high optimisation level
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

g++ accepts any optimisation level above -O3, but treats it as -O3.

One makefile I use which contained the (I assume) misprint:


which produces the very confusing error:

error: invalid value '7' in '-O23'

It would be better to either accept this optimisation level, or at least
provide a more sensible error message (I cannot imagine what this is actually
trying to tell me).

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list