This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24851] New: [4.1 Regression] f2c miscompilation
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Nov 2005 15:26:53 -0000
- Subject: [Bug tree-optimization/24851] New: [4.1 Regression] f2c miscompilation
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
We miscompile yyparse of f2c to just
yyparse ()
{
...
<bb 0>:
save1 = yylval;
save2 = yyval;
save3 = yynerrs;
save4 = yyerrflag;
yynerrs = 0;
yyerrflag = 0;
yyerror (&"yacc stack overflow"[0]);
ret:;
yylval = save1;
yyval = save2;
yynerrs = save3;
yyerrflag = save4;
return 1;
}
which makes f2c pretty useless. This happens at -O1.
--
Summary: [4.1 Regression] f2c miscompilation
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: critical
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24851