march=native not precise on Sempron

2008-04-04 Thread Simon Toth
I have Sempron processor with SSE3 support, but the march=native seems 
to ommit the -msse3 option:


--
> cat /proc/cpuinfo
--
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 15
model   : 44
model name  : AMD Sempron(tm) Processor 2600+
stepping: 2
cpu MHz : 1607.351
cache size  : 128 KB
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt 
lm 3dnowext 3dnow rep_good pni lahf_lm

bogomips: 3216.25
TLB size: 1024 4K pages
clflush size: 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts ttp tm stc
--
> echo 'int main(){return 0;}' > test.c && gcc -v -Q -march=native -O2 
test.c -o test && rm test.c test

--
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: 
/var/tmp/paludis/sys-devel/gcc-4.2.3/work/gcc-4.2.3/configure 
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.2.3 
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/include 
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.3 
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.3/man 
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.3/info 
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/include/g++-v4 
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec 
--enable-nls --without-included-gettext --with-system-zlib 
--disable-checking --disable-werror --enable-secureplt 
--disable-libunwind-exceptions --enable-multilib --enable-libmudflap 
--disable-libssp --enable-java-awt=gtk 
--enable-languages=c,c++,java,treelang,fortran --enable-shared 
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu

Thread model: posix
gcc version 4.2.3 (Gentoo 4.2.3 p1.0)
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.2.3/cc1 -v test.c -march=k8 
-mtune=k8 -dumpbase test.c -auxbase test -O2 -version -o /tmp/cc3vYxIP.s

ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory 
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../../../../x86_64-pc-linux-gnu/include"

#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/include
 /usr/include
End of search list.
GNU C version 4.2.3 (Gentoo 4.2.3 p1.0) (x86_64-pc-linux-gnu)
compiled by GNU C version 4.2.3 (Gentoo 4.2.3 p1.0).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
options passed:  -v -march=k8 -mtune=k8 -auxbase -O2
options enabled:  -falign-loops -fargument-alias
 -fasynchronous-unwind-tables -fbranch-count-reg -fcaller-saves -fcommon
 -fcprop-registers -fcrossjumping -fcse-follow-jumps -fcse-skip-blocks
 -fdefer-pop -fdelete-null-pointer-checks -fearly-inlining
 -feliminate-unused-debug-types -fexpensive-optimizations -ffunction-cse
 -fgcse -fgcse-lm -fguess-branch-probability -fident -fif-conversion
 -fif-conversion2 -finline-functions-called-once -fipa-pure-const
 -fipa-reference -fipa-type-escape -fivopts -fkeep-static-consts
 -fleading-underscore -fmath-errno -fmerge-constants -fmove-loop-invariants
 -fomit-frame-pointer -foptimize-register-move -foptimize-sibling-calls
 -fpeephole -fpeephole2 -freg-struct-return -fregmove -freorder-blocks
 -freorder-functions -frerun-cse-after-loop -fsched-interblock -fsched-spec
 -fsched-stalled-insns-dep -fschedule-insns2 -fshow-column
 -fsplit-ivs-in-unroller -fstrict-aliasing -fstrict-overflow -fthread-jumps
 -ftoplevel-reorder -ftrapping-math -ftree-ccp -ftree-ch -ftree-copy-prop
 -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-fre
 -ftree-loop-im -ftree-loop-ivcanon -ftree-loop-optimize -ftree-lrs
 -ftree-pre -ftree-salias -ftree-sink -ftree-sra -ftree-store-ccp
 -ftree-store-copy-prop -ftree-ter -ftree-vect-loop-version -ftree-vrp
 -funit-at-a-time -funwind-tables -fvar-tracking -fzero-initialized-in-bss
 -m128bit-long-double -m3dnow -m64 -m80387 -maccumulate-outgoing-args
 -malign-stringops -mfancy-math-387 -mfp-ret-in-387 -mglibc -mieee-fp -mmmx
 -mpush-args -mred-zone -msse -msse2 -mtls-direct-seg-refs
Compiler executable checksum: 1764c35c56eeb8eb4d920196074dcf26
 main
Analyzing compilation unitPerforming interprocedural optimizations
Assembling functions:
 main
Execution times (seconds)
 callgraph optimization:   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 (17%) 
wall   0 kB ( 0%) ggc
 expand:   0.01 (50%) usr   0.00 ( 0%) sys   0.00 ( 0%) 
wall   9 kB ( 1%) ggc
 TOTAL :   0.02 0.00 0.06 
 1920 kB


/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../

Where to get a list of warning and error messages

2008-07-18 Thread Simon Toth
I'm currently building a database of gcc warnings and error messages
including a example of code what triggers it and how to fix it.

Is there any full database of gcc warnings and errors?

Simon Toth