[LLVMbugs] [Bug 2699] New: LLVM/Clang Static Analyzer 0.79 doesn' t recognise -Wstrict-overflow, -fstrict-overflow

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Aug 21 08:35:01 PDT 2008


           Summary: LLVM/Clang Static Analyzer 0.79 doesn't recognise -
                    Wstrict-overflow, -fstrict-overflow
           Product: new-bugs
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sean at rogue-research.com
                CC: llvmbugs at cs.uiuc.edu

I've recently tried the LLVM/Clang Static Analyzer and it reports the following
trying to analyse my project:

cc1objplus: error: unrecognized command line option "-Wstrict-overflow=5"
cc1objplus: error: unrecognized command line option "-fstrict-overflow"

These two options are new in gcc 4.2 (Xcode 3.1).  If I remove them the static
analyser succeeds.

I'm under the impression that llvm-gcc is command-line compatible with gcc, but
I guess it's not fully up to date with gcc's many options.  I'd like to see
these two supported, or at least ignored, so I don't have to keep turning them

Attached is an xcode project to repro the problem:

scan-build -k -v xcodebuild -configuration Debug

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