public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* egcs snapshot crash with -O6 -- 970125-0.f (ADDRESSOF?)
@ 1998-04-18  8:18 Craig Burley
  1998-05-05 23:20 ` Jeffrey A Law
  0 siblings, 1 reply; 2+ messages in thread
From: Craig Burley @ 1998-04-18  8:18 UTC (permalink / raw)
  To: egcs

Here's a little test case I've got that crashes egcs (and gcc 2.8.1)
in the 980328 snapshot, but not 1.0.1:

970125-0.f (compile with -O6 to trigger crash):
--------
	integer*4 i4
	integer*8 i8
	integer*8 max4
	data max4/2147483647/
	i4 = %loc(i4)
	i8 = %loc(i8)
	print *, max4
	print *, i4, %loc(i4)
	print *, i8, %loc(i8)
	call foo(i4, %loc(i4), i8, %loc(i8))
	end
	subroutine foo(i4, i4a, i8, i8a)
	integer*8 i8
	print *, i4, i4a
	print *, i8, i8a
	end
--------

I debugged just enough in the gcc 2.8.1 base to discover that
an ADDR_EXPR(ADDR_EXPR(VAR_DECL)) was causing a crash in, IIRC,
expand_expr, because an rtx ended up being an "addressof", which
was not accounted for in the switch statement.  (Is this the
ADDRESSOF stuff people have talked about?)

(Haven't submitted this to gcc2 yet, because I haven't yet gotten
a version of g77 that sits in gcc 2.8 ready to put up for alpha-testing.
Maybe in the next week or so.)

        tq vm, (burley)

P.S. Dave Love, could you add this test case to g77's `compile' set?

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

* Re: egcs snapshot crash with -O6 -- 970125-0.f (ADDRESSOF?)
  1998-04-18  8:18 egcs snapshot crash with -O6 -- 970125-0.f (ADDRESSOF?) Craig Burley
@ 1998-05-05 23:20 ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1998-05-05 23:20 UTC (permalink / raw)
  To: Craig Burley; +Cc: egcs

  In message <199804181219.IAA22645@melange.gnu.org>you write:
  > Here's a little test case I've got that crashes egcs (and gcc 2.8.1)
  > in the 980328 snapshot, but not 1.0.1:
I see it's already in the testsuite.  Good :-)


  > I debugged just enough in the gcc 2.8.1 base to discover that
  > an ADDR_EXPR(ADDR_EXPR(VAR_DECL)) was causing a crash in, IIRC,
  > expand_expr, because an rtx ended up being an "addressof", which
  > was not accounted for in the switch statement.  (Is this the
  > ADDRESSOF stuff people have talked about?)
Yup.  

jeff

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

end of thread, other threads:[~1998-05-05 23:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-18  8:18 egcs snapshot crash with -O6 -- 970125-0.f (ADDRESSOF?) Craig Burley
1998-05-05 23:20 ` Jeffrey A Law

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).