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: bug in gcc 2.95.1 on SPARC Solaris


On Fri, Aug 20, 1999 at 12:58:23PM +0900, GOTOH Norifumi wrote:
> * Environments:
> 
> architecture:	SPARC, UltraSPARC I processor
> os:		Solaris 2.6
> gcc version:	both 2.95 & 2.95.1
> 
> 
> * The complete input file (named test.c):
> --------------------------------------------------------
> #include <stdio.h>
> int main(int argc, char** argv)
> {
>   double d1, d2, d3, d4;
>   d1 = (double)argc;
>   d2 = d1*1.2;
>   d3 = d2*1.2;
>   d4 = d3*1.2;
>   return printd(d1, d2, d3, d4);
> }
> 
> int printd(double d1, double d2, double d3, double d4)
> {
>   return printf("%f:%f:%f:%f\n", d1, d2, d3, d4);
> }
> --------------------------------------------------------
> 
> 
> * The command arguments you gave GNU CC or GNU C++ to compile that
>   example and observe the bug.  For example, did you use `-O'?  To
>   guarantee you won't omit something important, list all the options.
> 
>   % gcc -O2 -o test test.c
>   % ./test
>   zsh: bus error (core dumped)  ./test

I can't reproduce this with 2.95.1.  Why not send .ii and .s files?
Which assembler are you using, Sun or GNU?

Igor


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