Article View: gnu.gcc.help
Article #52820gcc-2.1 compiler bug
From: Chuck Strickland
Date: Fri, 08 May 1992 15:07
Date: Fri, 08 May 1992 15:07
76 lines
2587 bytes
2587 bytes
__
I was attemtpting to compile gnuplot with gcc 2.1 on a sun4 running 4.1.1
in the modules graphics.c it got an error:
>% make graphics
>gcc -O -DREADLINE -DNOCWDRC -target sun4 -o graphics graphics.c
>gcc: Internal compiler error: program cc1 got fatal signal 11
>*** Error code 1
>make: Fatal error: Command failed for target `graphics'
> I was attemtpting to compile gnuplot with gcc 2.1 on a sun4 running 4.1.1
> in the modules graphics.c it got an error:
>
>% make graphics
>gcc -O -DREADLINE -DNOCWDRC -target sun4 -o graphics graphics.c
>gcc: Internal compiler error: program cc1 got fatal signal 11
>*** Error code 1
>make: Fatal error: Command failed for target `graphics'
>
> after some testing I isolated it to the line
>
> tic = dbl_raise(10.0,(l10 >= 0.0 ) ? (int)l10 : ((int)l10-1));
> in the routine make_tics.
>
> some testing produced the following code segments.
> the first one compiles the rest bomb the compiler.
> while some are not "good" programming practice I
> believe they should all compile okay.
>
> main()
>{
>int x;
> test((x >= 0 ) ? x : x-1);
>}
>*/
>
>/* fails
>main()
>{
>int x;
> test((x >= 0.0 ) ? x : x-1);
>}
>*/
>
>/* fails
>main()
>{
>>double x;
> test((x >= 0.0 ) ? (int)x : ((int)x-1));
>}
>*/
>/* fails
>main()
>{
>double x;
> test((x >= 0 ) ? (int)x : ((int)x-1));
>}
>*/
>/* fails
>main()
>{
>double x;
> test((x >= (double)0.0 ) ? (int)x : ((int)x-1));
>}
>*/
--
*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*
Malcolm C. Strickland Martin Marietta Electronic Systems
chuck-strickland@orl.mmc.com mail point 1304
Phone: 407-356-5909 pobox 628007
Fax: 407-356-8944 orlando florida 32862-8007
*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*
Technical Details
Message-ID:
<1992May8.150718.2027@iplmail.orl.mmc.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!convex!csn!news.den.mmc.com!iplmail!chucksShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,49650a9431afefff,start X-Google-Attributes: gid11318c,public X-Google-Thread: 1014db,49650a9431afefff,start X-Google-Attributes: gid1014db,public X-Google-ArrivalTime: 1992-05-08 08:07:18 PST Newsgroups: gnu.gcc.help,comp.lang.c Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!convex!csn!news.den.mmc.com!iplmail!chucks From: chucks@iplmail.orl.mmc.com (Chuck Strickland) Subject: gcc-2.1 compiler bug Message-ID: <1992May8.150718.2027@iplmail.orl.mmc.com> Sender: chucks@iplmail (Chuck Strickland) Organization: Martin Marietta Date: Fri, 8 May 1992 15:07:18 GMT Lines: 76