This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/24851] New: [4.1 Regression] f2c miscompilation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]