[Bug rtl-optimization/23943] [4.1 Regression] segv in side_effects_p()

2005-09-18 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-09-19 05:08 --- Fixed by my patch, but the issue would have disappeared with Honza's patch to remove libcalls for standard library function calls anyway (my fix is still necessary to prevent the bug from resurfacing in oth

[Bug rtl-optimization/23943] [4.1 Regression] segv in side_effects_p()

2005-09-18 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-19 05:05 --- Subject: Bug 23943 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-09-19 05:04:59 Modified files: gcc: ChangeLog cse.c gcc/testsuit

[Bug rtl-optimization/23943] [4.1 Regression] segv in side_effects_p()

2005-09-18 Thread rguenth at gcc dot gnu dot org
-- What|Removed |Added Known to fail||4.1.0 Target Milestone|--- |4.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23943

[Bug rtl-optimization/23943] [4.1 Regression] segv in side_effects_p()

2005-09-18 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-09-18 14:27 --- Not being even closely an RTL guru (as you can see in this bug audit trail ;-) I'd propose the following patch: Index: cse.c === RCS file:

[Bug rtl-optimization/23943] [4.1 Regression] segv in side_effects_p()

2005-09-18 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-09-18 14:13 --- The problematic RTL is produced in cse.c:find_best_addr(), Breakpoint 12, find_best_addr (insn=0x2a95a5d820, loc=0x2a95a64ac8, mode=QImode) at cse.c:3004 3004rtx new = simplify_gen_bi

[Bug rtl-optimization/23943] [4.1 Regression] segv in side_effects_p()

2005-09-18 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-09-18 13:30 --- hm, it's not even a REG_EQUAL note, but something else... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23943

[Bug rtl-optimization/23943] [4.1 Regression] segv in side_effects_p()

2005-09-18 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-09-18 13:20 --- After the first local_cprop, the insn stream still looks sane. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23943

[Bug rtl-optimization/23943] [4.1 Regression] segv in side_effects_p()

2005-09-18 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-09-18 13:10 --- CPROP1 introduces a gem of a fined up REG_EQUAL note: (insn 20 16 21 0 (set (reg:CCZ 17 flags) (compare:CCZ (mem/s:QI (plus:DI (plus:DI (reg:DI 62) (reg/f:DI 60))

[Bug rtl-optimization/23943] [4.1 Regression] segv in side_effects_p()

2005-09-18 Thread steven at gcc dot gnu dot org
--- Additional Comments From steven at gcc dot gnu dot org 2005-09-18 12:57 --- This is bogus RTL: (compare:CCZ (mem/s:QI (plus:DI (expr_list:REG_DEP_TRUE (use (mem:BLK (scratch) [0 A8])) It looks like the bug is introduced earlier. -- http://gcc.gnu.org/bugzilla/show_bug.

[Bug rtl-optimization/23943] [4.1 Regression] segv in side_effects_p()

2005-09-18 Thread rguenth at gcc dot gnu dot org
--- Additional Comments From rguenth at gcc dot gnu dot org 2005-09-18 12:54 --- Steven said, you'd love to look at this ;) -- What|Removed |Added CC|

[Bug rtl-optimization/23943] [4.1 Regression] segv in side_effects_p()

2005-09-18 Thread rguenth at gcc dot gnu dot org
--- Additional Comments From rguenth at gcc dot gnu dot org 2005-09-18 12:39 --- Target specific, cannot reproduce on i686. Stacktrace: #0 0x008c5b35 in side_effects_p (x=0x0) at rtlanal.c:2001 #1 0x008c5c3e in side_effects_p (x=0x2a95a63120) at rtlanal.c:2055 #2 0x0