This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/21399] [4.1 Regression] libstdc++ 12077.cc ICE
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 May 2005 00:10:48 -0000
- Subject: [Bug tree-optimization/21399] [4.1 Regression] libstdc++ 12077.cc ICE
- References: <20050505143115.21399.dje@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2005-05-16 00:10 -------
this fails for me with -O in CCP. In .t18.copyrename1 we have:
;; Function void f(FILE*) (_Z1fP6__FILE)
Partition map
void f(FILE*) (fileD.2015)
Eh tree:
1 allowed_exceptions tree_label:<L0>
{
const charD.3 * strD.2018;
# BLOCK 0
# PRED: ENTRY (fallthru)
strD.2018_1 = &"a"[0];
# TMT.1D.2025_4 = V_MAY_DEF <TMT.1D.2025_3>;
fputs (strD.2018_1, fileD.2015_2);
goto <bb 2> (<L1>);
# SUCC: 1 (ab,eh) 2 (fallthru)
# BLOCK 1
# PRED: 0 (ab,eh)
<L0>:;
# VUSE <TMT.1D.2025_4>;
__cxa_call_unexpected (<<<exception object>>>);
# SUCC:
# BLOCK 2
# PRED: 0 (fallthru)
<L1>:;
return;
# SUCC: EXIT
}
In .t18.ccp, we have the following replacement:
Replaced fputs (str_1, file_2);
with __builtin_fputc (97, file_2);
which is probably to blame for this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21399