public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Internal compiler error during gdb 4.17 make
@ 1998-08-19 18:32 Rick Ohnemus
  1998-08-20  0:04 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Rick Ohnemus @ 1998-08-19 18:32 UTC (permalink / raw)
  To: egcs-bugs

[-- Attachment #1: Type: text/plain, Size: 1130 bytes --]

I apologize for sending this again. It appears I screwed up the previous
message.


I get the following error when I try to compile gdb 4.17 with (gcc -v output):

Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.92.00/specs
gcc version egcs-2.92.00 19980819 (gcc2 ss-980609 experimental)

gcc -c -g -save-temps -I. -I. -I./config -DHAVE_CONFIG_H -I./../include/opcode -I./../readline -I../bfd -I./../bfd  -I./../include  valarith.c

or

gcc -c -save-temps -I. -I. -I./config -DHAVE_CONFIG_H -I./../include/opcode -I./../readline -I../bfd -I./../bfd  -I./../include  valarith.c


produces:

valarith.c: In function `value_neg':
valarith.c:1175: internal error--unrecognizable insn:
(insn 231 128 232 (set (reg:SF 40 %f8)
        (neg (reg:SF 36 %f4))) -1 (nil)
    (nil))
../../gcc/toplev.c:1365: Internal compiler error in function fatal_insn


The problem goes away if I specify any level of optimization. The following
works:
gcc -c -O -save-temps -I. -I. -I./config -DHAVE_CONFIG_H -I./../include/opcode -I./../readline -I../bfd -I./../bfd  -I./../include  valarith.c

--
rick ohnemus (rick@ecompcon.com)

[-- Attachment #2: valarith.i.gz --]
[-- Type: application/x-gzip, Size: 29755 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Internal compiler error during gdb 4.17 make
  1998-08-19 18:32 Internal compiler error during gdb 4.17 make Rick Ohnemus
@ 1998-08-20  0:04 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 1998-08-20  0:04 UTC (permalink / raw)
  To: rick; +Cc: egcs-bugs

   Date: Wed, 19 Aug 1998 09:18:18 -0500
   From: Rick Ohnemus <rick@ecompcon.com>

   Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.92.00/specs
   gcc version egcs-2.92.00 19980819 (gcc2 ss-980609 experimental)

   valarith.c: In function `value_neg':
   valarith.c:1175: internal error--unrecognizable insn:
   (insn 231 128 232 (set (reg:SF 40 %f8)
	   (neg (reg:SF 36 %f4))) -1 (nil)
       (nil))
   ../../gcc/toplev.c:1365: Internal compiler error in function fatal_insn

It can't be from the latest tree because I fixed this bug yesterday.
At least I think I did.

Please check line 6489 in gcc/config/sparc/sparc.md in your egcs tree
and make sure it reads:

  [(set (match_dup 2) (neg:SF (match_dup 3)))
   (set (match_dup 4) (match_dup 5))]

The important bit is that it says "(neg:SF (" and not
just plain "(neg (" in the first line.  If it has the later, you need
to update.

Later,
David S. Miller
davem@dm.cobaltmicro.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-08-20  0:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-19 18:32 Internal compiler error during gdb 4.17 make Rick Ohnemus
1998-08-20  0:04 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).