[LLVMdev] llvm-gcc-4.2 CC1_SPECS

Jack Howarth howarth at bromo.msbb.uc.edu
Fri Oct 31 17:21:49 PDT 2008


On Fri, Oct 31, 2008 at 10:38:50AM -0700, Mike Stump wrote:
> On Oct 31, 2008, at 9:40 AM, Jack Howarth wrote:
>> However in current llvm svn, when I compile code with llvm-gfortran, I 
>> get these warning
>> flags passed by default so that I get bogus warnings of...
>>
>> 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
>>
>> Is r57326 really crafted properly?
>
> No.  As you can see, it is plainly broken.

Yes. Even for the llvm-gcc compiler in llvm svn, I get..

# GNU C++ version 4.2.1 (Based on Apple Inc. build 5623) (LLVM build) (i686-apple-darwin9)
#       compiled by GNU C version 4.2.1 (Based on Apple Inc. build 5623) (LLVM build).
# GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
# options passed:  -D__DYNAMIC__ -fPIC -Wformat -Wformat-security
# -Wno-format-extra-args -Wno-format-zero-length -Wno-nonnull
# -mmacosx-version-min=10.5.6 -mtune=generic -march=nocona -auxbase
# -fverbose-asm -D__private_extern__=extern
# options enabled:  -fPIC -falign-jumps-max-skip -falign-loops
# -falign-loops-max-skip -fargument-alias -fbranch-count-reg -fcommon
# -fearly-inlining -feliminate-unused-debug-types -femit-class-debug-always
# -fexceptions -ffunction-cse -fgcse-lm -fglobal-alloc-prefer-bytes -fident
# -finline-functions-called-once -fivopts -fkeep-static-consts
# -fleading-underscore -flocal-alloc -fmove-loop-invariants -fpeephole
# -freg-struct-return -fsched-interblock -fsched-spec
# -fsched-stalled-insns-dep -fshow-column -fsplit-ivs-in-unroller
# -ftoplevel-reorder -ftree-loop-im -ftree-loop-ivcanon
# -ftree-loop-optimize -ftree-vect-loop-version -funit-at-a-time
# -fverbose-asm -fzero-initialized-in-bss -m128bit-long-double -m32 -m80387
# -maccumulate-outgoing-args -malign-stringops -matt-stubs
# -mconstant-cfstrings -mfancy-math-387 -mfp-ret-in-387 -mieee-fp -mmmx
# -mno-red-zone -mno-sse4 -mpush-args -msse -msse2 -msse3
# -mwarn-nonportable-cfstrings

# Compiler executable checksum: 8b71d7bb9d5d18146938b09f1ac40213

from...

touch t.cc 
llvm-gcc-4 -fverbose-asm t.cc -S






More information about the llvm-dev mailing list