This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCC 2.95.2 bug with float parameters


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]