This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] GCSE the content of REG_EQUAL/REG_EQUIV notes as well
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: uweigand at de dot ibm dot com
- Cc: paolo dot bonzini at lu dot unisi dot ch, gcc-patches at gcc dot gnu dot org, ian at airs dot com
- Date: Sat, 10 Dec 2005 14:14:01 +0900 (JST)
- Subject: Re: [PATCH] GCSE the content of REG_EQUAL/REG_EQUIV notes as well
- References: <4384AB11.2050305@lu.unisi.ch> <200512091953.jB9Jrbqc012917@53v30g15.boeblingen.de.ibm.com>
Ulrich Weigand <uweigand@de.ibm.com> wrote:
>> * gcse.c (hash_scan_set): Look through REG_EQUAL or REG_EQUIV notes
>> also when doing PRE, rather than only for global CPROP.
>
> This causes bootstrap failure on s390(x)-ibm-linux due to a crash in
> pre_insert_copy_insn, accessing a NULL pointer.
>
> (gdb) bt
> #0 0x007ba0fa in pre_insert_copy_insn (expr=0xce98a0, insn=0x77e4e450) at ../../gcc-head/gcc/gcse.c:4252
[snip]
> Any idea how to fix this?
This is PR rtl-optimization/25115
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25115
and Paolo has proposed a patch for this
http://gcc.gnu.org/ml/gcc-patches/2005-11/msg01954.html
Regards,
kaz