public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* patch that caused regression PR opt/7675
@ 2002-12-24 18:47 Janis Johnson
  0 siblings, 0 replies; only message in thread
From: Janis Johnson @ 2002-12-24 18:47 UTC (permalink / raw)
  To: gcc, jason

The regression reported in PR optimization/7675 showed up
starting with this patch:

2000-11-11  Jason Merrill  <jason@redhat.com>

	* function.c (assign_parms): If TREE_ADDRESSABLE is set, try to 
	give the parm a register and then call put_var_into_stack.
	* stmt.c (expand_decl): Likewise.

cp/
	* typeck.c (mark_addressable): Don't call put_var_into_stack.

Here's a small test case that causes the compiler to ICE
when compiled on i686-linux with -O:

-------------------
/* ICE when compiled with -O */

int dummy (int *);

void foo(int i, int j)
{
  int k=j;

  void bar() { int x=k, y=i, z=j; }

  dummy(&j);
}
-------------------

Output from the mainline compiler:

7675.c: In function `foo':
7675.c:9: internal compiler error: in fixup_var_refs_1, at function.c:1900
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

I've added this information to the PR.

Janis

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-24 20:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-24 18:47 patch that caused regression PR opt/7675 Janis Johnson

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