public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/30366]  New: gcc-4.2.0_alpha20061205 has problems with -Os
@ 2007-01-04 12:04 brot at echorulez dot de
  2007-01-04 12:10 ` [Bug c/30366] " pinskia at gcc dot gnu dot org
  2007-01-04 12:12 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: brot at echorulez dot de @ 2007-01-04 12:04 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2073 bytes --]

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/30366] gcc-4.2.0_alpha20061205 has problems with -Os
  2007-01-04 12:04 [Bug c/30366] New: gcc-4.2.0_alpha20061205 has problems with -Os brot at echorulez dot de
@ 2007-01-04 12:10 ` pinskia at gcc dot gnu dot org
  2007-01-04 12:12 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-04 12:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-01-04 12:10 -------
First the code is undefined so the code will abort at runtime.
Second this is a dup of bug 29841.

*** This bug has been marked as a duplicate of 29841 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/30366] gcc-4.2.0_alpha20061205 has problems with -Os
  2007-01-04 12:04 [Bug c/30366] New: gcc-4.2.0_alpha20061205 has problems with -Os brot at echorulez dot de
  2007-01-04 12:10 ` [Bug c/30366] " pinskia at gcc dot gnu dot org
@ 2007-01-04 12:12 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-04 12:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-01-04 12:12 -------
Also really you should report problems like this to the distro (or person) who
provided you the compiler.


-- 


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-04 12:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-04 12:04 [Bug c/30366] New: gcc-4.2.0_alpha20061205 has problems with -Os brot at echorulez dot de
2007-01-04 12:10 ` [Bug c/30366] " pinskia at gcc dot gnu dot org
2007-01-04 12:12 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).