gcc version 4.0.0 20041212 (experimental) actual line: gcc -c -g -O -gnatgpa -gnatwF -I. -I- jx_ch4.adb +===========================GNAT BUG DETECTED==============================+ | 4.0.0 20041212 (experimental) (i686-pc-linux-gnu) Storage_Error stack overflow (or erroneous memory access)| | Error detected at jx_ch4.adb:58:14 | | 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). | +==========================================================================+
Can you attach the files (or concat them as asked by the bug box) which are mentioned by the bug box (if there is any mentioned).
Also read http://gcc.gnu.org/bugs.html and the section about reporting Ada bugs.
Created attachment 7803 [details] All required files, concatenated without any header (1.5M uncompressed)
I apologize: - the system type: Linux sohail 2.6.9-rc2 i686 - the options when GCC was configured/built: Configured with: /extra/tmp/portage/gcc-4.0.0/work/gcc-4.0-20041212/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.0 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.0.0/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.0 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.0/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.0/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,ada --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.0.0/include/g++-v4 --with-local-prefix=/usr/local --disable-werror --enable-shared --enable-nls --without-included-gettext --disable-multilib - a description of the expected behavior: Compile - a description of actual behavior: Bug box
um, the file is in bzip2 format.... Sorry about that.
Created attachment 7804 [details] All required files, concatenated without any header
Actually bzip2 files are okay. Confirmed, also on powerpc-darwin. The bug is the gnat_to_gnu so this is a bug in the front-end.
The main thing in this case is just having the sources since it is an ICE. Sorry about too fast for asking you to read the documentation.
(In reply to comment #8) > The main thing in this case is just having the sources since it is an ICE. Sorry about too fast for asking > you to read the documentation. Its no problem, I read it, I was just having problems because the file was too large initially.
There's nothing critical about this PR, please stop bumping its priority: it won't magically fix it, thanks. Arno
(In reply to comment #10) > There's nothing critical about this PR, please stop bumping its priority: it > won't magically fix it, thanks. I thought it went from critical to normal. Sounds normal to me.
Seems like its choking on line 256 in jx_ch4.adb. I *think* gnat thinks that its an elaboration procedure but I'm not sure if it is or not. Just trying to help :)
(In reply to comment #12) > Seems like its choking on line 256 in jx_ch4.adb. I *think* gnat thinks that its > an elaboration procedure but I'm not sure if it is or not. > > Just trying to help :) nm wrong node. sorry for the noise :)
Created attachment 7840 [details] return value assigned to incorrect variable This seems to take care of the problem, I am running make check-ada atm. Seems to be OK. Can anyone verify? I apologize if the patch is not in the correct format, I couldn't find instructions on how to submit the patch
Is there a simplified testcase for this?
(In reply to comment #15) > Is there a simplified testcase for this? Unfortunately no, but a reply from the gcc-patches list shows that my patch does fix *that* problem. It was just a typo really. Not enough caffine I suppose.
reply from the gcc-patches list shows that my patch does fix *that* problem. It was just a typo really. Not enough caffine I suppose.
Subject: Bug 19128 CVSROOT: /cvs/gcc Module name: gcc Changes by: aj@gcc.gnu.org 2004-12-30 11:24:08 Modified files: gcc/ada : ChangeLog trans.c Log message: 2004-12-30 Sohail Somani <sohail@sohailsomani.com> PR ada/19128 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/ChangeLog.diff?cvsroot=gcc&r1=1.619&r2=1.620 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/trans.c.diff?cvsroot=gcc&r1=1.87&r2=1.88