From 743c11344e3b55bfb0f90983e0bc060c13225054 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 25 Nov 2014 16:43:24 +0000 Subject: [PATCH] re PR middle-end/64065 (CP2K miscompilation at -O3 -flto) 2014-11-25 Richard Biener PR lto/64065 * lto-streamer-out.c (output_struct_function_base): Stream last_clique field. * lto-streamer-in.c (input_struct_function_base): Likewise. From-SVN: r218049 --- gcc/ChangeLog | 7 +++++++ gcc/lto-streamer-in.c | 1 + gcc/lto-streamer-out.c | 1 + 3 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e6052320a10a..76c6497c7341 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-11-25 Richard Biener + + PR lto/64065 + * lto-streamer-out.c (output_struct_function_base): Stream + last_clique field. + * lto-streamer-in.c (input_struct_function_base): Likewise. + 2014-11-25 Martin Liska PR bootstrap/64050 diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index 588fd6ee0cd3..2c9b6a5305ab 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -903,6 +903,7 @@ input_struct_function_base (struct function *fn, struct data_in *data_in, fn->has_simduid_loops = bp_unpack_value (&bp, 1); fn->va_list_fpr_size = bp_unpack_value (&bp, 8); fn->va_list_gpr_size = bp_unpack_value (&bp, 8); + fn->last_clique = bp_unpack_value (&bp, sizeof (short) * 8); /* Input the function start and end loci. */ fn->function_start_locus = stream_input_location (&bp, data_in); diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index 19f59a0ecf84..2446d88dbce3 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -1956,6 +1956,7 @@ output_struct_function_base (struct output_block *ob, struct function *fn) bp_pack_value (&bp, fn->has_simduid_loops, 1); bp_pack_value (&bp, fn->va_list_fpr_size, 8); bp_pack_value (&bp, fn->va_list_gpr_size, 8); + bp_pack_value (&bp, fn->last_clique, sizeof (short) * 8); /* Output the function start and end loci. */ stream_output_location (ob, &bp, fn->function_start_locus);