🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by David Olix Tue, 27 Feb 1990 22:37
Unrecognizable insn in gcc 1.36
#2910
Author: David Olix
Date: Tue, 27 Feb 1990 22:37
46 lines
1419 bytes
The following piece of code crashes cc1 with fatal signal 6
when compiled and run as follows on a Sun 3/280 running
SunOs 4.0.3:

jupiter% gcc -v
gcc version 1.36

jupiter% cat test.c
int
main()
{
  int i;
  double foo;

  i = 1;
  foo = (double)i;
  return 0;
}

jupiter% gcc -mfpa test.c
test.c: In function main:
test.c:10: The following insn was not recognizable:
(insn 9 6 11 (set (mem:DF (plus:SI (reg:SI 14)
               (const_int -12)))
       (float:DF (mem:SI (plus:SI (reg:SI 14)
                   (const_int -4))))) -1 (nil)
   (nil))
gcc: Program cc1 got fatal signal 6.

Does this have something to do with the cast?  Replacing line 8 with:

  foo = (double)1;

doesn't result in the error.  Also, the error only occurs with the

  -mfpa

option on the command line.


Please e-mail to me on what you guys find on this since I have some non-trivial
code which relies on such a cast.  (And without the fpa installed, the program
runs _S_L_O_W_).

thank you
--David Olix
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads