This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bug in gcc 2.95.1 on SPARC Solaris
- To: GOTOH Norifumi <gotoh at is dot s dot u-tokyo dot ac dot jp>
- Subject: Re: bug in gcc 2.95.1 on SPARC Solaris
- From: Igor Schein <igor at txc dot com>
- Date: Mon, 23 Aug 1999 15:20:49 -0400
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <vlcu2pvqf1c.fsf@venus.is.s.u-tokyo.ac.jp>
- Reply-To: igor at txc dot com
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