public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mikael Morin <mikael.morin@sfr.fr>
To: gcc-patches <gcc-patches@gcc.gnu.org>, gfortran <fortran@gcc.gnu.org>
Subject: [fortran, committed] Remove dead code
Date: Sun, 04 Oct 2015 13:45:00 -0000	[thread overview]
Message-ID: <56112D79.7040009@sfr.fr> (raw)

[-- Attachment #1: Type: text/plain, Size: 99 bytes --]

Hello,

I found an unused variable when working on pr67758.
Committed as revision 228458.

Mikael


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: r228458.diff --]
[-- Type: text/x-patch; name="r228458.diff", Size: 1201 bytes --]

Index: ChangeLog
===================================================================
--- ChangeLog	(révision 228457)
+++ ChangeLog	(révision 228458)
@@ -1,5 +1,9 @@
 2015-10-04  Mikael Morin  <mikael@gcc.gnu.org>
 
+	* match.c (gfc_match_common): Remove dead variable old_blank_common.
+
+2015-10-04  Mikael Morin  <mikael@gcc.gnu.org>
+
 	PR fortran/67758
 	* match.c (gfc_match_common): Delay the common_block pointer
 	assignment after error checking.
Index: match.c
===================================================================
--- match.c	(révision 228457)
+++ match.c	(révision 228458)
@@ -4278,7 +4278,7 @@ match match_common_name (char *name)
 match
 gfc_match_common (void)
 {
-  gfc_symbol *sym, **head, *tail, *other, *old_blank_common;
+  gfc_symbol *sym, **head, *tail, *other;
   char name[GFC_MAX_SYMBOL_LEN + 1];
   gfc_common_head *t;
   gfc_array_spec *as;
@@ -4285,13 +4285,6 @@ gfc_match_common (void)
   gfc_equiv *e1, *e2;
   match m;
 
-  old_blank_common = gfc_current_ns->blank_common.head;
-  if (old_blank_common)
-    {
-      while (old_blank_common->common_next)
-	old_blank_common = old_blank_common->common_next;
-    }
-
   as = NULL;
 
   for (;;)


                 reply	other threads:[~2015-10-04 13:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56112D79.7040009@sfr.fr \
    --to=mikael.morin@sfr.fr \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).