From ebad2eeed903f7c9cf6c55d37be8af8c84f1cf32 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 23 Oct 2019 20:22:40 +0200 Subject: lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar. * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar. (cmp_symbol_files): New. (lto_output): Copy sections in file order. * lto-streamer.h (lto_file_decl_data): Add field order. * lto-common.c (lto_file_finalize): Add order attribute. (lto_create_files_from_ids): Pass order. (lto_file_read): UPdate call of lto_create_files_from_ids. From-SVN: r277346 --- gcc/lto-streamer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/lto-streamer.h') diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h index 9f787c4..3e4308a 100644 --- a/gcc/lto-streamer.h +++ b/gcc/lto-streamer.h @@ -603,6 +603,9 @@ struct GTY(()) lto_file_decl_data /* Linked list used temporarily in reader */ struct lto_file_decl_data *next; + /* Order in which the file appears on the command line. */ + int order; + /* Sub ID for merged objects. */ unsigned HOST_WIDE_INT id; -- cgit v1.1