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

[gfortran] Eliminate dead code in gfc_match()



Hi,


this patch removes some dead code. I double-checked with Andy that these fragments do indeed serve no purpose.

Bootstrapped and regtested on i686-pc-linux-gnu.

- Tobi

2004-05-10 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>

* match.c (gfc_match): Eliminate dead code.

Index: match.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/fortran/Attic/match.c,v
retrieving revision 1.1.2.8
diff -u -p -r1.1.2.8 match.c
--- match.c     11 Jan 2004 15:21:50 -0000      1.1.2.8
+++ match.c     10 May 2004 19:09:32 -0000
@@ -763,14 +764,6 @@ not_yes:
              matches++;
              break;            /* Skip */

-           case 'I':
-           case 'L':
-           case 'C':
-             if (*p++ == 'e')
-               goto undo_expr;
-             break;
-
            /* Matches that don't have to be undone */
            case 'o':
            case 'l':
@@ -779,9 +772,7 @@ not_yes:
              break;

            case 'e':
-           case 'E':
            case 'v':
-           undo_expr:
              vp = va_arg (argp, void **);
              gfc_free_expr (*vp);
              *vp = NULL;


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