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]

[PATCH][LTO] Stream DECL_RESTRICTED_P


We forget to stream DECL_RESTRICTED_P.

Bootstrapped and tested on x86_64-unknonw-linux-gnu, SPEC 2006
tested, applied to trunk.

Richard.

2009-10-25  Richard Guenther  <rguenther@suse.de>

	* lto-streamer-in.c (unpack_ts_decl_common_value_fields):
	Stream DECL_RESTRICTED_P.
	* lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.

Index: gcc/lto-streamer-in.c
===================================================================
*** gcc/lto-streamer-in.c	(revision 153538)
--- gcc/lto-streamer-in.c	(working copy)
*************** unpack_ts_decl_common_value_fields (stru
*** 1650,1655 ****
--- 1650,1656 ----
        if (TREE_CODE (expr) == VAR_DECL
  	  || TREE_CODE (expr) == PARM_DECL)
  	DECL_HAS_VALUE_EXPR_P (expr) = (unsigned) bp_unpack_value (bp, 1);
+       DECL_RESTRICTED_P (expr) = (unsigned) bp_unpack_value (bp, 1);
      }
  }
  
Index: gcc/lto-streamer-out.c
===================================================================
*** gcc/lto-streamer-out.c	(revision 153538)
--- gcc/lto-streamer-out.c	(working copy)
*************** pack_ts_decl_common_value_fields (struct
*** 433,438 ****
--- 433,439 ----
        if (TREE_CODE (expr) == VAR_DECL
  	  || TREE_CODE (expr) == PARM_DECL)
  	bp_pack_value (bp, DECL_HAS_VALUE_EXPR_P (expr), 1);
+       bp_pack_value (bp, DECL_RESTRICTED_P (expr), 1);
      }
  }
  


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