* [Bug optimization/12142] [hppa-linux, 3.3/3.4 regression] -fnon-call-exceptions generates incorrect code
2003-09-02 22:36 [Bug optimization/12142] New: [hppa-linux, 3.3/3.4 regression] -fnon-call-exceptions generates incorrect code tausq at debian dot org
@ 2003-10-08 17:56 ` cvs-commit at gcc dot gnu dot org
2003-10-08 18:01 ` [Bug optimization/12142] [hppa-linux, 3.3 " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-10-08 17:56 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12142
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-10-08 17:55 -------
Subject: Bug 12142
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: danglin@gcc.gnu.org 2003-10-08 17:55:45
Modified files:
gcc : ChangeLog cse.c
gcc/config/pa : pa.c
Log message:
PR optimization/12142
* cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
uses of the register in the SET_SRC. Remove unnecessary argument.
* pa.c (legitimize_pic_address): Before reload, use a scratch register
for the intermediate result in loading the address of a SYMBOL_REF.
Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
which loads the SYMBOL_REF address.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1337&r2=2.1338
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cse.c.diff?cvsroot=gcc&r1=1.272&r2=1.273
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/pa/pa.c.diff?cvsroot=gcc&r1=1.227&r2=1.228
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug optimization/12142] [hppa-linux, 3.3 regression] -fnon-call-exceptions generates incorrect code
2003-09-02 22:36 [Bug optimization/12142] New: [hppa-linux, 3.3/3.4 regression] -fnon-call-exceptions generates incorrect code tausq at debian dot org
2003-10-08 17:56 ` [Bug optimization/12142] " cvs-commit at gcc dot gnu dot org
@ 2003-10-08 18:01 ` pinskia at gcc dot gnu dot org
2003-10-08 18:51 ` danglin at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-08 18:01 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12142
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Summary|[hppa-linux, 3.3/3.4 |[hppa-linux, 3.3 regression]
|regression] -fnon-call- |-fnon-call-exceptions
|exceptions generates |generates incorrect code
|incorrect code |
Target Milestone|--- |3.3.2
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-08 18:01 -------
Only a 3.3 regression now.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug optimization/12142] [hppa-linux, 3.3 regression] -fnon-call-exceptions generates incorrect code
2003-09-02 22:36 [Bug optimization/12142] New: [hppa-linux, 3.3/3.4 regression] -fnon-call-exceptions generates incorrect code tausq at debian dot org
2003-10-08 17:56 ` [Bug optimization/12142] " cvs-commit at gcc dot gnu dot org
2003-10-08 18:01 ` [Bug optimization/12142] [hppa-linux, 3.3 " pinskia at gcc dot gnu dot org
@ 2003-10-08 18:51 ` danglin at gcc dot gnu dot org
2003-10-08 21:31 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu dot org @ 2003-10-08 18:51 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12142
------- Additional Comments From danglin at gcc dot gnu dot org 2003-10-08 18:51 -------
Do you think 3.3 should be fixed?
I don't really think 3.2 handled -fnon-call-exceptions correctly.
The problem was exposed by a 3.3 change to insn_live_p. A test
was added to check if an insn might trap when flag_non_call_exceptions
is true.
As far as the PA goes, this was needed for libjava. We still don't
have libffi, needed for libjava, integrated yet.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug optimization/12142] [hppa-linux, 3.3 regression] -fnon-call-exceptions generates incorrect code
2003-09-02 22:36 [Bug optimization/12142] New: [hppa-linux, 3.3/3.4 regression] -fnon-call-exceptions generates incorrect code tausq at debian dot org
` (2 preceding siblings ...)
2003-10-08 18:51 ` danglin at gcc dot gnu dot org
@ 2003-10-08 21:31 ` pinskia at gcc dot gnu dot org
2004-06-11 17:27 ` [Bug rtl-optimization/12142] " cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-08 21:31 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12142
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|3.3.2 |3.4
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-08 21:31 -------
Closing as fixed as the maintainer of HPPA does not think this should be fixed for 3.3.x. Also does
this patch fix PR 11975?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/12142] [hppa-linux, 3.3 regression] -fnon-call-exceptions generates incorrect code
2003-09-02 22:36 [Bug optimization/12142] New: [hppa-linux, 3.3/3.4 regression] -fnon-call-exceptions generates incorrect code tausq at debian dot org
` (3 preceding siblings ...)
2003-10-08 21:31 ` pinskia at gcc dot gnu dot org
@ 2004-06-11 17:27 ` cvs-commit at gcc dot gnu dot org
2005-07-18 14:57 ` cvs-commit at gcc dot gnu dot org
2005-07-28 12:14 ` cvs-commit at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-11 17:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-11 17:27 -------
Subject: Bug 12142
CVSROOT: /cvs/gcc
Module name: gcc
Branch: sh-elf-3_5-branch
Changes by: amylaar@gcc.gnu.org 2004-06-11 17:27:11
Modified files:
gcc : ChangeLog.sh-elf cse.c
Log message:
Back out this patch:
2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR optimization/12142
* cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
uses of the register in the SET_SRC. Remove unnecessary argument.
Replace it with this:
* cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
if flag_non_call_exceptions is set and the insn may trap, pass
pc_rtx as dest for recursion.
In SET_SRC part of SET case, if dest is already set, pass it down
unchanged.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.sh-elf.diff?cvsroot=gcc&only_with_tag=sh-elf-3_5-branch&r1=1.1.2.7&r2=1.1.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cse.c.diff?cvsroot=gcc&only_with_tag=sh-elf-3_5-branch&r1=1.301&r2=1.301.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12142
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/12142] [hppa-linux, 3.3 regression] -fnon-call-exceptions generates incorrect code
2003-09-02 22:36 [Bug optimization/12142] New: [hppa-linux, 3.3/3.4 regression] -fnon-call-exceptions generates incorrect code tausq at debian dot org
` (4 preceding siblings ...)
2004-06-11 17:27 ` [Bug rtl-optimization/12142] " cvs-commit at gcc dot gnu dot org
@ 2005-07-18 14:57 ` cvs-commit at gcc dot gnu dot org
2005-07-28 12:14 ` cvs-commit at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-18 14:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-18 14:57 -------
Subject: Bug 12142
CVSROOT: /cvs/gcc
Module name: gcc
Branch: sh-elf-4_1-branch
Changes by: amylaar@gcc.gnu.org 2005-07-18 14:57:06
Modified files:
gcc : ChangeLog loop.c cse.c calls.c ifcvt.c
Log message:
2005-07-15 J"orn Rennecke <joern.rennecke@st.com>
cvs update -j1.531 -j1.530 loop.c
Re-apply this patch:
2005-05-30 Pat Haugen <pthaugen@us.ibm.com>
* loop.c (loop_invariant_p, valid_initial_value_p): Use
regs_invalidated_by_call instead of call_used_regs.
2005-07-15 J"orn Rennecke <joern.rennecke@superh.com>
PR rtl-optimization/18992
http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01140.html
Back out this patch:
2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR optimization/12142
* cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
uses of the register in the SET_SRC. Remove unnecessary argument.
Replace it with this:
* cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
if flag_non_call_exceptions is set and the insn may trap, pass
pc_rtx as dest for recursion.
In SET_SRC part of SET case, if dest is already set, pass it down
unchanged.
2005-07-15 J"orn Rennecke <joern.rennecke@superh.com>
PR rtl-optimization/21848
http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01142.html
* calls.c (emit_library_call_value_1): For const functions, add
USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
2005-07-15 J"orn Rennecke <joern.rennecke@superh.com>
PR rtl-optimization/20370
http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01148.html
* ifcvt.c (dead_or_predicable): Before calling propagate_block,
call allocate_reg_info if necessary.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=sh-elf-4_1-branch&r1=2.8142.2.23&r2=2.8142.2.24
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/loop.c.diff?cvsroot=gcc&only_with_tag=sh-elf-4_1-branch&r1=1.525.2.2&r2=1.525.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cse.c.diff?cvsroot=gcc&only_with_tag=sh-elf-4_1-branch&r1=1.351.2.1&r2=1.351.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/calls.c.diff?cvsroot=gcc&only_with_tag=sh-elf-4_1-branch&r1=1.385.2.1&r2=1.385.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ifcvt.c.diff?cvsroot=gcc&only_with_tag=sh-elf-4_1-branch&r1=1.184.2.2&r2=1.184.2.3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12142
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/12142] [hppa-linux, 3.3 regression] -fnon-call-exceptions generates incorrect code
2003-09-02 22:36 [Bug optimization/12142] New: [hppa-linux, 3.3/3.4 regression] -fnon-call-exceptions generates incorrect code tausq at debian dot org
` (5 preceding siblings ...)
2005-07-18 14:57 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-28 12:14 ` cvs-commit at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-28 12:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-28 11:56 -------
Subject: Bug 12142
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: amylaar@gcc.gnu.org 2005-07-28 11:55:58
Modified files:
gcc : ChangeLog cse.c
Log message:
PR rtl-optimization/18992
Back out this patch:
2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR optimization/12142
* cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
uses of the register in the SET_SRC. Remove unnecessary argument.
Replace it with this:
* cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
if flag_non_call_exceptions is set and the insn may trap, pass
pc_rtx as dest for recursion.
In SET_SRC part of SET case, if dest is already set, pass it down
unchanged.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9579&r2=2.9580
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cse.c.diff?cvsroot=gcc&r1=1.357&r2=1.358
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12142
^ permalink raw reply [flat|nested] 8+ messages in thread