com.c (ffecom_lookup_label): Set DECL_CONTEXT for FORMAT label to current_function_decl.
authorMark Mitchell <mark@codesourcery.com>
Mon, 15 Jan 2001 16:52:49 +0000 (16:52 +0000)
committerToon Moene <toon@gcc.gnu.org>
Mon, 15 Jan 2001 16:52:49 +0000 (16:52 +0000)
2001-01-15  Mark Mitchell  <mark@codesourcery.com>

* com.c (ffecom_lookup_label): Set DECL_CONTEXT for FORMAT
label to current_function_decl.

From-SVN: r39042

gcc/f/ChangeLog
gcc/f/com.c

index eb154fd..7fa1853 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-15  Mark Mitchell  <mark@codesourcery.com>
+
+       * com.c (ffecom_lookup_label): Set DECL_CONTEXT for FORMAT
+       label to current_function_decl.
+
 Fri Jan 12 17:21:33 2001  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * g77spec.c (lang_specific_driver): Update copyright year to 2001.
index 719df1f..67b09b3 100644 (file)
@@ -12264,7 +12264,7 @@ ffecom_lookup_label (ffelab label)
                                                   1, 0));
          TREE_CONSTANT (glabel) = 1;
          TREE_STATIC (glabel) = 1;
-         DECL_CONTEXT (glabel) = 0;
+         DECL_CONTEXT (glabel) = current_function_decl;
          DECL_INITIAL (glabel) = NULL;
          make_decl_rtl (glabel, NULL);
          expand_decl (glabel);