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: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs