From: Christian Czezatke <e9025461@student.tuwien.ac.at>
Subject: Re: compiling xli - small program to reproduce problem w. gcc
Date: Mon, 04 Nov 1996 15:32:43 +0100 [thread overview]
Message-ID: <4885f3729fadf65d290a92d9c79ca78c.axp-list@archive.invalid> (raw)
Hi!
After all these reports of problems compiling xli and other apps due
to a problem with gcc/alpha getting signal 6 I sat down and fooled
around with "xli.c" trying to produce a source that is as short as
possible and is still reproducing the problem. -- I finally got the
(rather short) listing included below.
When I compile that with gcc 2.7.1 as it comes with Redhat 3.0.3 I
get the following messages:
[ceci@udb xli-1.15]$ gcc -Wall -O2 crashcc.c
crashcc.c: In function `main':
crashcc.c:10: warning: unused variable `longarray'
crashcc.c:14: warning: `hlp' might be used uninitialized in this
function
crashcc.c:15: warning: `newimage' might be used uninitialized in this
function
gcc: Internal compiler error: program cc1 got fatal signal 6
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Could someone please give that a try with an up-to-date version of gcc
on Linux/Alpha and report whether you still get a "fatal signal 6" when
you try to compile that piece of code with it.
(Anyway, please note that the program's semantic is of course nonsense.
It is just here to show a bug in gcc 2.7.1 -- Just try to compile it,
don't execute it, it will crash immediately.. ;-) )
If the problem is still existant in gcc 2.7.2 I think we should send
that piece of code to the maintainers of gcc/alpha. (BTW: does anyone
know who they are? -- I'm quite new to Linux/Alpha .)
Christian
-----------------cut here for crashcc.c---------------------------------
/*
This code was generated from "xli.c" from xli, version 1.15
Compiling this file with optimisation enabled on Linux/Alpha with
gcc 2.7.1 (as shipped with Redhat 3.0.3) causes an internal compiler
error.
*/
void main()
{
char longarray[32745];
/* CC: if you remove the line above, or make the array smaller (just 1
byte is enough),
gcc will _not_crash -- any number greater than 32745 also seems
to crash gcc
*/
int *hlp; /* CC: it does _not_ crash if you use "int hlp" and do a
"hlp=" */
float newimage;
*hlp = newimage;
}
-----------------end of crashcc.c---------------------------------
--
+------------------------------------------------------------------+
| Christian Czezatke, student of Computer Science at the |
| Vienna University of Technology (Vienna, Austria, EUROPE) |
| email: e9025461@student.tuwien.ac.at |
+------------------------------------------------------------------+
| PostODBC, a tool to talk to Postgres95 from Windows clients |
| is freely available (LGPL) from: |
| http://stud1.tuwien.ac.at/~e9025461/ |
| If you are interested in receiving regular information on |
| the state of PostODBC, please let me know |
+------------------------------------------------------------------+
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1996-11-04 14:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-04 14:32 Christian Czezatke [this message]
[not found] <327DFE8B.7DE02AA2@student.tuwien.ac.at>
1996-11-04 20:07 ` compiling xli - small program to reproduce problem w. gcc Wim van Dorst
1996-11-05 4:05 ` Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1996-11-05 6:43 David Mosberger-Tang
[not found] <m0vKVJD-0003BUC@clifton.hobby.nl>
1996-11-05 19:39 ` Richard Henderson
[not found] <327FB857.58CC43CF@student.tuwien.ac.at>
1996-11-05 21:05 ` Richard Henderson
1996-11-05 21:57 Christian Czezatke
[not found] <199611051939.NAA13862@atheist.tamu.edu>
1996-11-06 22:00 ` Wim van Dorst
[not found] <m0vLG0x-0003BUC@clifton.hobby.nl>
1996-11-07 18:54 ` Richard Henderson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox