------- 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