public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/31979] New: ICE compiling openssl-0.9.8e/apps/ocsp.c
@ 2007-05-17 17:34 clemens dot koller at anagramm dot de
2007-05-17 17:39 ` [Bug middle-end/31979] " pinskia at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: clemens dot koller at anagramm dot de @ 2007-05-17 17:34 UTC (permalink / raw)
To: gcc-bugs
The host machine is a mpc8540 embedded PowerPC (e500 core)
$ uname -a
Linux ecam.anagramm.de 2.6.21-rc5-g9a5ee4cc #4 Mon Apr 2 21:31:53 CEST 2007 ppc
e500 GNU/Linux
Sources (just in case):
http://www.openssl.org/source/openssl-0.9.8e.tar.gz
It fails when compiling the file: openssl-0.9.8e/apps/ocsp.c:
.../openssl-0.9.8e/apps$ gcc -v -save-temps -DMONOLITH -I.. -I../include -fPIC
-DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H
-DB_ENDIAN -DTERMIO -O3 -Wall -c -o ocsp.o ocsp.c
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: ../gcc-4.2.0/configure --prefix=/usr --libexecdir=/usr/lib
--enable-languages=c,c++,objc --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-shared --disable-nls --with-x=no
--with-float=soft --with-cpu=8540 --with-tune=8540
Thread model: posix
gcc version 4.2.0 (ckcore)
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.2.0/cc1 -E -quiet -v -I..
-I../include -imultilib nof -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix
-D__unix -Dlinux -D__linux -Asystem=linux -Asystem=unix -Asystem=posix
-DMONOLITH -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DB_ENDIAN -DTERMIO ocsp.c -mcpu=8540 -mtune=8540 -msoft-float
-Wall -fPIC -O3 -fpch-preprocess -o ocsp.i
ignoring nonexistent directory
"/usr/lib/gcc/powerpc-unknown-linux-gnu/4.2.0/../../../../powerpc-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
..
../include
/usr/local/include
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.2.0/include
/usr/include
End of search list.
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.2.0/cc1 -fpreprocessed ocsp.i -quiet
-dumpbase ocsp.c -mcpu=8540 -mtune=8540 -msoft-float -auxbase-strip ocsp.o -O3
-Wall -version -fPIC -o ocsp.s
GNU C version 4.2.0 (ckcore) (powerpc-unknown-linux-gnu)
compiled by GNU C version 4.2.0 (ckcore).
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32042
Compiler executable checksum: 87cebe7f7b6dc266a133424cd4477d64
ocsp.c: In function 'ocsp_main':
ocsp.c:579: warning: function called through a non-compatible type
ocsp.c:579: note: if this code is reached, the program will abort
ocsp.c:680: warning: function called through a non-compatible type
ocsp.c:680: note: if this code is reached, the program will abort
ocsp.c:761: warning: function called through a non-compatible type
ocsp.c:761: note: if this code is reached, the program will abort
ocsp.c:786: warning: function called through a non-compatible type
ocsp.c:786: note: if this code is reached, the program will abort
ocsp.c: In function 'do_responder':
ocsp.c:1207: warning: function called through a non-compatible type
ocsp.c:1207: note: if this code is reached, the program will abort
ocsp.c: In function 'send_ocsp_response':
ocsp.c:1229: warning: function called through a non-compatible type
ocsp.c:1229: note: if this code is reached, the program will abort
ocsp.c: In function 'ocsp_main':
ocsp.c:904: internal compiler error: in move_insn, at haifa-sched.c:1963
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
.../openssl-0.9.8e/apps$
Well, the preprocesed source is unfortunately very huge...
But I ran out of time to strip that unknown code down.
I will try to attach it...
--
Summary: ICE compiling openssl-0.9.8e/apps/ocsp.c
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: clemens dot koller at anagramm dot de
GCC build triplet: ppc e500 GNU/Linux
GCC host triplet: ppc e500 GNU/Linux
GCC target triplet: ppc e500 GNU/Linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31979
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31979] ICE compiling openssl-0.9.8e/apps/ocsp.c
2007-05-17 17:34 [Bug c/31979] New: ICE compiling openssl-0.9.8e/apps/ocsp.c clemens dot koller at anagramm dot de
@ 2007-05-17 17:39 ` pinskia at gcc dot gnu dot org
2007-05-17 17:41 ` clemens dot koller at anagramm dot de
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-17 17:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-05-17 18:39 -------
This code is undefined as the warning points out.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Component|c |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31979
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31979] ICE compiling openssl-0.9.8e/apps/ocsp.c
2007-05-17 17:34 [Bug c/31979] New: ICE compiling openssl-0.9.8e/apps/ocsp.c clemens dot koller at anagramm dot de
2007-05-17 17:39 ` [Bug middle-end/31979] " pinskia at gcc dot gnu dot org
@ 2007-05-17 17:41 ` clemens dot koller at anagramm dot de
2007-06-14 22:19 ` roederja at cs dot washington dot edu
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: clemens dot koller at anagramm dot de @ 2007-05-17 17:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from clemens dot koller at anagramm dot de 2007-05-17 18:41 -------
Created an attachment (id=13573)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13573&action=view)
preprocessed file
It's just big. :-(
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31979
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31979] ICE compiling openssl-0.9.8e/apps/ocsp.c
2007-05-17 17:34 [Bug c/31979] New: ICE compiling openssl-0.9.8e/apps/ocsp.c clemens dot koller at anagramm dot de
2007-05-17 17:39 ` [Bug middle-end/31979] " pinskia at gcc dot gnu dot org
2007-05-17 17:41 ` clemens dot koller at anagramm dot de
@ 2007-06-14 22:19 ` roederja at cs dot washington dot edu
2007-06-15 22:31 ` roederja at cs dot washington dot edu
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: roederja at cs dot washington dot edu @ 2007-06-14 22:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from roederja at cs dot washington dot edu 2007-06-14 22:19 -------
I get the same error ("internal compiler error: in move_insn, at
haifa-sched.c:1963") when trying to compile EiffelStudio on Mac OS X PPC, also
GCC 4.2 . However it's hard to tell where it fails exactly because the error is
in some generated c-byte-code... However compilation works with Apple's GCC
4.0.1
--
roederja at cs dot washington dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |roederja at cs dot
| |washington dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31979
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31979] ICE compiling openssl-0.9.8e/apps/ocsp.c
2007-05-17 17:34 [Bug c/31979] New: ICE compiling openssl-0.9.8e/apps/ocsp.c clemens dot koller at anagramm dot de
` (2 preceding siblings ...)
2007-06-14 22:19 ` roederja at cs dot washington dot edu
@ 2007-06-15 22:31 ` roederja at cs dot washington dot edu
2007-07-26 14:48 ` drs at nrao dot edu
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: roederja at cs dot washington dot edu @ 2007-06-15 22:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from roederja at cs dot washington dot edu 2007-06-15 22:31 -------
Created an attachment (id=13710)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13710&action=view)
Testcase
Compile this file with -O2 or higher to trigger the bug, no other flags
necessary. With -O1 it compiles fine.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31979
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31979] ICE compiling openssl-0.9.8e/apps/ocsp.c
2007-05-17 17:34 [Bug c/31979] New: ICE compiling openssl-0.9.8e/apps/ocsp.c clemens dot koller at anagramm dot de
` (3 preceding siblings ...)
2007-06-15 22:31 ` roederja at cs dot washington dot edu
@ 2007-07-26 14:48 ` drs at nrao dot edu
2007-08-08 21:44 ` jim dot turnquist at qlogic dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: drs at nrao dot edu @ 2007-07-26 14:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from drs at nrao dot edu 2007-07-26 14:48 -------
I have exactly the same problem with gcc 4.2.1 on a powerpc osx system:
oz:~/bug root# gcc -DMONOLITH -I. -fPIC -fno-common -DOPENSSL_PIC -DZLIB
-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -DB_ENDIAN -c
-o ocsp.o ocsp.c
ocsp.c: In function 'ocsp_main':
ocsp.c:579: warning: function called through a non-compatible type
ocsp.c:579: note: if this code is reached, the program will abort
ocsp.c:680: warning: function called through a non-compatible type
ocsp.c:680: note: if this code is reached, the program will abort
ocsp.c:761: warning: function called through a non-compatible type
ocsp.c:761: note: if this code is reached, the program will abort
ocsp.c:786: warning: function called through a non-compatible type
ocsp.c:786: note: if this code is reached, the program will abort
ocsp.c: In function 'do_responder':
ocsp.c:1207: warning: function called through a non-compatible type
ocsp.c:1207: note: if this code is reached, the program will abort
ocsp.c: In function 'send_ocsp_response':
ocsp.c:1229: warning: function called through a non-compatible type
ocsp.c:1229: note: if this code is reached, the program will abort
ocsp.c: In function 'ocsp_main':
ocsp.c:904: internal compiler error: in move_insn, at haifa-sched.c:1963
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31979
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31979] ICE compiling openssl-0.9.8e/apps/ocsp.c
2007-05-17 17:34 [Bug c/31979] New: ICE compiling openssl-0.9.8e/apps/ocsp.c clemens dot koller at anagramm dot de
` (4 preceding siblings ...)
2007-07-26 14:48 ` drs at nrao dot edu
@ 2007-08-08 21:44 ` jim dot turnquist at qlogic dot com
2007-08-10 10:41 ` clemens dot koller at anagramm dot de
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jim dot turnquist at qlogic dot com @ 2007-08-08 21:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jim dot turnquist at qlogic dot com 2007-08-08 21:44 -------
I am seeing the same thing on powerpc405, gcc=4.2.1, openssl-0.9.8e.
I confirmed what Jann had noticed.
Fails with -O3 & -O2. Finishes with -O1
With -O3:
jturnquist>
/usr/local/itasca/buildtools/26/devtools/powerpc-405-linux/gcc4.2.1_glibc2.5_001/bin/powerpc-405-linux-gcc
-DMONOLITH -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DB_ENDIAN -DTERMIO -O3
-fomit-frame-pointer -Wall -c -o ocsp.o ocsp.c
ocsp.c: In function 'ocsp_main':
ocsp.c:579: warning: function called through a non-compatible type
ocsp.c:579: note: if this code is reached, the program will abort
ocsp.c:680: warning: function called through a non-compatible type
ocsp.c:680: note: if this code is reached, the program will abort
ocsp.c:761: warning: function called through a non-compatible type
ocsp.c:761: note: if this code is reached, the program will abort
ocsp.c:786: warning: function called through a non-compatible type
ocsp.c:786: note: if this code is reached, the program will abort
ocsp.c: In function 'do_responder':
ocsp.c:1207: warning: function called through a non-compatible type
ocsp.c:1207: note: if this code is reached, the program will abort
ocsp.c: In function 'send_ocsp_response':
ocsp.c:1229: warning: function called through a non-compatible type
ocsp.c:1229: note: if this code is reached, the program will abort
ocsp.c: In function 'ocsp_main':
ocsp.c:904: internal compiler error: in move_insn, at haifa-sched.c:1963
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
With -O2
jturnquist>
/usr/local/itasca/buildtools/26/devtools/powerpc-405-linux/gcc4.2.1_glibc2.5_001/bin/powerpc-405-linux-gcc
-DMONOLITH -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DB_ENDIAN -DTERMIO -O2
-fomit-frame-pointer -Wall -c -o ocsp.o ocsp.c
ocsp.c: In function 'ocsp_main':
ocsp.c:579: warning: function called through a non-compatible type
ocsp.c:579: note: if this code is reached, the program will abort
ocsp.c:680: warning: function called through a non-compatible type
ocsp.c:680: note: if this code is reached, the program will abort
ocsp.c:761: warning: function called through a non-compatible type
ocsp.c:761: note: if this code is reached, the program will abort
ocsp.c:786: warning: function called through a non-compatible type
ocsp.c:786: note: if this code is reached, the program will abort
ocsp.c: In function 'do_responder':
ocsp.c:1207: warning: function called through a non-compatible type
ocsp.c:1207: note: if this code is reached, the program will abort
ocsp.c: In function 'send_ocsp_response':
ocsp.c:1229: warning: function called through a non-compatible type
ocsp.c:1229: note: if this code is reached, the program will abort
ocsp.c:1232: internal compiler error: in move_insn, at haifa-sched.c:1963
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
With -O1
jturnquist>
/usr/local/itasca/buildtools/26/devtools/powerpc-405-linux/gcc4.2.1_glibc2.5_001/bin/powerpc-405-linux-gcc
-DMONOLITH -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DB_ENDIAN -DTERMIO -O1
-fomit-frame-pointer -Wall -c -o ocsp.o ocsp.c
ocsp.c: In function 'ocsp_main':
ocsp.c:579: warning: function called through a non-compatible type
ocsp.c:579: note: if this code is reached, the program will abort
ocsp.c:680: warning: function called through a non-compatible type
ocsp.c:680: note: if this code is reached, the program will abort
ocsp.c:761: warning: function called through a non-compatible type
ocsp.c:761: note: if this code is reached, the program will abort
ocsp.c:786: warning: function called through a non-compatible type
ocsp.c:786: note: if this code is reached, the program will abort
ocsp.c: In function 'do_responder':
ocsp.c:1207: warning: function called through a non-compatible type
ocsp.c:1207: note: if this code is reached, the program will abort
ocsp.c: In function 'send_ocsp_response':
ocsp.c:1229: warning: function called through a non-compatible type
ocsp.c:1229: note: if this code is reached, the program will abort
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31979
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31979] ICE compiling openssl-0.9.8e/apps/ocsp.c
2007-05-17 17:34 [Bug c/31979] New: ICE compiling openssl-0.9.8e/apps/ocsp.c clemens dot koller at anagramm dot de
` (5 preceding siblings ...)
2007-08-08 21:44 ` jim dot turnquist at qlogic dot com
@ 2007-08-10 10:41 ` clemens dot koller at anagramm dot de
2007-08-13 18:52 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: clemens dot koller at anagramm dot de @ 2007-08-10 10:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from clemens dot koller at anagramm dot de 2007-08-10 10:40 -------
exactly the same openssl behaviour on embedded PowerPC e500
(gcc-4.2.1, openssl-0.9.8e, glibc-2.3.6)
$ gcc -v
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: ../gcc-4.2.1/configure --prefix=/usr --libexecdir=/usr/lib
--enable-languages=c,c++,objc --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-shared --disable-nls --with-x=no --with-cpu=8540
--with-tune=8540 --with-float=soft --with-long-double-128 --disable-multilib
--enable-e500_double
Thread model: posix
gcc version 4.2.1 (ckcore)
please contact if you need further debugging output.
--
clemens dot koller at anagramm dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clemens dot koller at
| |anagramm dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31979
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31979] ICE compiling openssl-0.9.8e/apps/ocsp.c
2007-05-17 17:34 [Bug c/31979] New: ICE compiling openssl-0.9.8e/apps/ocsp.c clemens dot koller at anagramm dot de
` (6 preceding siblings ...)
2007-08-10 10:41 ` clemens dot koller at anagramm dot de
@ 2007-08-13 18:52 ` pinskia at gcc dot gnu dot org
2007-10-08 15:12 ` clemens dot koller at anagramm dot de
2007-10-09 7:01 ` roederja at cs dot washington dot edu
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-13 18:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2007-08-13 18:52 -------
One should note that this is undefined code anyways and most likely will not
work once compiled with this version of GCC.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31979
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31979] ICE compiling openssl-0.9.8e/apps/ocsp.c
2007-05-17 17:34 [Bug c/31979] New: ICE compiling openssl-0.9.8e/apps/ocsp.c clemens dot koller at anagramm dot de
` (7 preceding siblings ...)
2007-08-13 18:52 ` pinskia at gcc dot gnu dot org
@ 2007-10-08 15:12 ` clemens dot koller at anagramm dot de
2007-10-09 7:01 ` roederja at cs dot washington dot edu
9 siblings, 0 replies; 11+ messages in thread
From: clemens dot koller at anagramm dot de @ 2007-10-08 15:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from clemens dot koller at anagramm dot de 2007-10-08 15:11 -------
The next release of OpenSSL will have this problem fixed.
Verified already on the latest snapshot:
openssl-0.9.8-stable-SNAP-20071008 builds fine now.
--
clemens dot koller at anagramm dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31979
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/31979] ICE compiling openssl-0.9.8e/apps/ocsp.c
2007-05-17 17:34 [Bug c/31979] New: ICE compiling openssl-0.9.8e/apps/ocsp.c clemens dot koller at anagramm dot de
` (8 preceding siblings ...)
2007-10-08 15:12 ` clemens dot koller at anagramm dot de
@ 2007-10-09 7:01 ` roederja at cs dot washington dot edu
9 siblings, 0 replies; 11+ messages in thread
From: roederja at cs dot washington dot edu @ 2007-10-09 7:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from roederja at cs dot washington dot edu 2007-10-09 07:00 -------
Well this doesn't fix the bug in GCC. An ICE shouldn't happen, even with
invalid code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31979
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-10-09 7:01 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-17 17:34 [Bug c/31979] New: ICE compiling openssl-0.9.8e/apps/ocsp.c clemens dot koller at anagramm dot de
2007-05-17 17:39 ` [Bug middle-end/31979] " pinskia at gcc dot gnu dot org
2007-05-17 17:41 ` clemens dot koller at anagramm dot de
2007-06-14 22:19 ` roederja at cs dot washington dot edu
2007-06-15 22:31 ` roederja at cs dot washington dot edu
2007-07-26 14:48 ` drs at nrao dot edu
2007-08-08 21:44 ` jim dot turnquist at qlogic dot com
2007-08-10 10:41 ` clemens dot koller at anagramm dot de
2007-08-13 18:52 ` pinskia at gcc dot gnu dot org
2007-10-08 15:12 ` clemens dot koller at anagramm dot de
2007-10-09 7:01 ` roederja at cs dot washington dot edu
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).