[LLVMbugs] [Bug 2995] New: gcc/config/i386//darwin.h should not set -Wformat, -Wformat-security, -Wno-format-extra-args, -Wno-format-zero-length and -Wno-nonnull

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Oct 31 06:58:06 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2995

           Summary: gcc/config/i386//darwin.h should not set -Wformat, -
                    Wformat-security, -Wno-format-extra-args, -Wno-format-
                    zero-length and -Wno-nonnull
           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: howarth at bromo.msbb.uc.edu
                CC: llvmbugs at cs.uiuc.edu


Currently in llvm-gcc 4.2 from llvm 2.4 and llvm svn, the
gcc/config/i386/darwin.h header is inappropriately setting CC1_SPEC to always
pass...

-Wformat -Wformat-security -Wno-format-extra-args -Wno-format-zero-length
-Wno-nonnull 

This causes the llvm-gfortran compiler to spew warning messages of the form...

f951: warning: command line option "-Wformat" is valid for C/C++/ObjC/ObjC++
but not for Fortran
f951: warning: command line option "-Wformat-security" is valid for
C/C++/ObjC/ObjC++ but not for Fortran
f951: warning: command line option "-Wno-format-extra-args" is valid for
C/C++/ObjC/ObjC++ but not for Fortran
f951: warning: command line option "-Wno-format-zero-length" is valid for
C/C++/ObjC/ObjC++ but not for Fortran
f951: warning: command line option "-Wno-nonnull" is valid for
C/C++/ObjC/ObjC++ but not for Fortran

when any fortran source is compiled. These should either be removed from the
definition of CC1_SPECS or recrafted to not be used in the case of compilers
like gfortran that don't grok them.


-- 
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