This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 2.95.2 bug with float parameters
- To: bug-gcc at gnu dot org
- Subject: Re: GCC 2.95.2 bug with float parameters
- From: Joe Weening <jweening at ccrwest dot org>
- Date: Sat, 22 Jan 2000 15:05:30 PST
- References: <200001191750.JAA16162@lydian.ccrwest.org>
A few days ago I sent the following bug report. I forgot to mention
that the program was compiled with "-mcpu=ultrasparc". (This was the
default on the system where I originally discovered the bug.) With
this option, it fails on gcc 2.95.1 as well as 2.95.2.
> The following program exhibits a bug when compiled with gcc 2.95.2 on
> a SPARC running Solaris 2.6:
>
> #ifdef BUG
> sub(a, b, c, d, e, f, g)
> int a, b, c, d, e, f;
> float g;
> {
> printf("hello\n");
> }
> #else
> sub(int a, int b, int c, int d, int e, int f, float g)
> {
> printf("hello\n");
> }
> #endif
>
> main()
> {
> sub(0, 1, 2, 3, 4, 5, (float) 6.0);
> }
>
>
> If compiled with "-DBUG", the resulting program core dumps.