This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optimization/7675: [3.2/3.3 regression] ICE in fixup_var_refs_1


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.

Eric, I just noticed that you're working on a patch.  Perhaps
this information will be useful for you.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7675




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]