Bug 17312 - internal gnat bug. compilation abandoned.
Summary: internal gnat bug. compilation abandoned.
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 3.4.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: wrong-code
: 17567 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-03 21:14 UTC by Pawel Sikora
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: pentium3-pld-linux
Target: pentium3-pld-linux
Build: pentium3-pld-linux
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Sikora 2004-09-03 21:14:29 UTC
../../xgcc -B../../ -c -g -O2      -W -Wall -gnatpg  g-cgideb.adb -o 
g-cgideb.o 
+===========================GNAT BUG DETECTED==============================+ 
| 3.4.2 20040902 (prerelease) (PLD Linux) (i686-pld-linux-gnu)             | 
| Storage_Error stack overflow (or erroneous memory access)                | 
| Error detected at g-cgideb.adb:36:22                                     | 
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            | 
| Include the entire contents of this bug box in the report.               | 
| Include the exact gcc or gnatmake command that you entered.              | 
| Also include sources listed below in gnatchop format                     | 
| (concatenated together with no headers between files).                   | 
+==========================================================================+ 
 
 
btw: what about [Bug middle-end/16503]? will it be fixed?
Comment 1 Andrew Pinski 2004-10-13 02:05:49 UTC
Does this work with i686-pc-linux-gnu as the target if so this is an optimization problem in the sense 
-march=pentium3 causes the wrong code.  Also does this happen on the mainline.
Comment 2 Andrew Pinski 2004-10-13 02:26:29 UTC
*** Bug 17567 has been marked as a duplicate of this bug. ***
Comment 3 Pawel Sikora 2004-10-13 16:15:42 UTC
(In reply to comment #1) 
> Does this work with i686-pc-linux-gnu as the target if so this is an 
optimization problem in the sense  
> -march=pentium3 causes the wrong code.  Also does this happen on the 
mainline. 
 
Currently I have installed gcc-3.4.3-20041008 (pentium3 target with -O2) 
and I can't rebuild any gcc34 snaphot (386 target with -O0) :/ 
 
# segv 
gcc -c -O0 -march=i386 -pipe -DIN_GCC   -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  -Wno-error  
-DHAVE_CONFIG_H    -I. -I. -I../../gcc -I../../gcc/. 
-I../../gcc/../include  ../../gcc/c-parse.c -o c-parse.o 
In file included from c-parse.y:48: 
../../gcc/output.h:107: internal compiler error: Segmentation fault 
 
make[2]: *** [c-parse.o] Error 1 
 
Comment 4 Pawel Sikora 2004-12-10 07:46:24 UTC
gcc(ada)-3.4.3/4.0.0snap now builds/works fine with -march=pentium3.