summaryrefslogtreecommitdiff
path: root/gcc/tree-streamer-in.c
diff options
context:
space:
mode:
authorIlya Enkovich <ilya.enkovich@intel.com>2014-11-26 13:53:38 +0000
committerIlya Enkovich <ienkovich@gcc.gnu.org>2014-11-26 13:53:38 +0000
commit3c350d48a595d93c3e6336b79091d7f506a5fb03 (patch)
tree578191479f36668a1e05dffbefd71e9a3b6f881b /gcc/tree-streamer-in.c
parent5e4683dc2f63cca81ce2a3ffcbbf338149a77cbe (diff)
downloadgcc-3c350d48a595d93c3e6336b79091d7f506a5fb03.tar.gz
re PR lto/64075 (ICE: in bp_pack_value, at data-streamer.h:106)
gcc/ PR lto/64075 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use proper size for function_code bitfield. (pack_ts_function_decl_value_fields): Likewise. gcc/testsuite/ PR lto/64075 * gcc.dg/pr64075.c: New. From-SVN: r218083
Diffstat (limited to 'gcc/tree-streamer-in.c')
-rw-r--r--gcc/tree-streamer-in.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-streamer-in.c b/gcc/tree-streamer-in.c
index 99448dd33f3..eb205edb700 100644
--- a/gcc/tree-streamer-in.c
+++ b/gcc/tree-streamer-in.c
@@ -333,7 +333,7 @@ unpack_ts_function_decl_value_fields (struct bitpack_d *bp, tree expr)
if (DECL_BUILT_IN_CLASS (expr) != NOT_BUILT_IN)
{
DECL_FUNCTION_CODE (expr) = (enum built_in_function) bp_unpack_value (bp,
- 11);
+ 12);
if (DECL_BUILT_IN_CLASS (expr) == BUILT_IN_NORMAL
&& DECL_FUNCTION_CODE (expr) >= END_BUILTINS)
fatal_error ("machine independent builtin code out of range");