Hello everyone. Someone at the gentoo forums said i should report this here, so
i will try to provide a useful bug-report. If it isnt useful fell free to
ignore it.

After i rebuilt my whole toolchain with gcc-4.2 (which worked without problems)
i wanted to rebuild every package on my system. My CFLAGS were:
"-march=athlon-xp -Os -fomit-frame-pointer -fno-ident -pipe".

But even after several retries openssl-0.9.8d failed to compile with the
following error:
i686-pc-linux-gnu-gcc -I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC
-DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H
-DL_ENDIAN -DTERMIO -Wall -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM
-DRMD160_ASM -DAES_ASM -march=athlon-xp -Os -fomit-frame-pointer -fno-ident
-pipe -Wa,--noexecstack -c -o evp_pkey.o evp_pkey.c 
 evp_pkey.c: In Funktion »EVP_PKEY2PKCS8_broken«: 
 evp_pkey.c:382: Warning: Function called over not compatible type 
 evp_pkey.c:382: Anmerkung: Wenn dieser Code erreicht wird, wird das Programm
abgebrochen 
 evp_pkey.c: In Funktion »dsa_pkey2pkcs8«: 
 evp_pkey.c:478: Warning: Function called over not compatible type 
 evp_pkey.c:478: Anmerkung: Wenn dieser Code erreicht wird, wird das Programm
abgebrochen 
 evp_pkey.c: In Funktion »EVP_PKEY2PKCS8_broken«: 
 evp_pkey.c:416: internal Compiler-error: Memory access error

After i set my CFLAGS to "-march=athlon-xp -O2 -fomit-frame-pointer -fno-ident
-pipe" everything worked.

It was the same with qt-3.3.6-r5. It didnt built with -Os but with -O2.

I hope this helps somehow.
And thank you for your effort :)

brot


-- 
           Summary: gcc-4.2.0_alpha20061205 has problems with -Os
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: brot at echorulez dot de
 GCC build triplet: ?
  GCC host triplet: i686 AMD Athlon(tm)
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30366

Reply via email to