summaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-out.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-08 22:10:35 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-08 22:10:35 +0000
commit43f418e78cde465b04610d23837c385e666ef8fb (patch)
treef78b68891e4e416d52e41263d2ee4dd14d689473 /gcc/lto-streamer-out.c
parent644862129cc88b912042299ddc560da2df06b3ff (diff)
downloadgcc-43f418e78cde465b04610d23837c385e666ef8fb.tar.gz
* lto-streamer-out.c (lto_output_location): Stream
reserved locations correctly. * lto-streamer-in.c (lto_output_location): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224251 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r--gcc/lto-streamer-out.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index e14761bf64a..9ee43120080 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -196,8 +196,10 @@ lto_output_location (struct output_block *ob, struct bitpack_d *bp,
expanded_location xloc;
loc = LOCATION_LOCUS (loc);
- bp_pack_value (bp, loc == UNKNOWN_LOCATION, 1);
- if (loc == UNKNOWN_LOCATION)
+ bp_pack_int_in_range (bp, 0, RESERVED_LOCATION_COUNT,
+ loc < RESERVED_LOCATION_COUNT
+ ? loc : RESERVED_LOCATION_COUNT);
+ if (loc < RESERVED_LOCATION_COUNT)
return;
xloc = expand_location (loc);