This is the mail archive of the gcc@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]

dead code in treelang/parse.y


Looking at the treelang/parse.y I have found the following (lines 202-208)

     if (STORAGE_CLASS (prod) == EXTERNAL_REFERENCE_STORAGE)
        {
          error("%HExternal reference variable %q.*s has an initial value.",
                &tok->tp.tok.location, tok->tp.tok.length, tok->tp.tok.chars);
          YYERROR;
          VAR_INIT (prod) = NULL;
        }

The line
VAR_INIT (prod) = NULLs
is dead since YYERROR is defined as "goto yyerrorlab"

Rafael Ávila de Espíndola

Attachment: pgp00000.pgp
Description: PGP signature


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