This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[lto] fix thinko
- From: Nathan Froyd <froydnj at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: zadeck at naturalbridge dot com
- Date: Thu, 15 Nov 2007 13:58:18 -0800
- Subject: [lto] fix thinko
Self-explanatory, really...
-Nathan
* lto.c (lto_read_subroutine_type_subprogram_DIE): Fix thinko'd
DECL_CONTEXT.
Index: gcc/lto/lto.c
===================================================================
--- gcc/lto/lto.c (revision 130209)
+++ gcc/lto/lto.c (working copy)
@@ -2597,7 +2597,7 @@ lto_read_subroutine_type_subprogram_DIE
DECL_RESULT (result)
= build_decl (RESULT_DECL, NULL_TREE,
TYPE_MAIN_VARIANT (ret_type));
- TREE_CONTEXT (DECL_RESULT (result)) = result;
+ DECL_CONTEXT (DECL_RESULT (result)) = result;
#if 0
DECL_SOURCE_LOCATION (result) = { input_filename, line };
#endif