Commit ea989a1f by Richard Guenther Committed by Richard Biener

re PR lto/41791 (LTO warnings with -Winline)

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

	PR lto/41791
	* lto-streamer-out.c (lto_output_location): Stream the
	system header flag.
	* lto-streamer-in.c (lto_input_location): Likewise.

	* g++.dg/lto/20091022-2_0.C: New testcase.

From-SVN: r153459
parent 48710229
2009-10-22 Richard Guenther <rguenther@suse.de>
PR lto/41791
* lto-streamer-out.c (lto_output_location): Stream the
system header flag.
* lto-streamer-in.c (lto_input_location): Likewise.
2009-10-22 Razya Ladelsky <razya@il.ibm.com> 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
* cfgloopmanip.c (duplicate_subloops): Export. * cfgloopmanip.c (duplicate_subloops): Export.
...@@ -283,13 +283,14 @@ lto_input_location (struct lto_input_block *ib, struct data_in *data_in) ...@@ -283,13 +283,14 @@ lto_input_location (struct lto_input_block *ib, struct data_in *data_in)
xloc.file = canon_file_name (xloc.file); xloc.file = canon_file_name (xloc.file);
xloc.line = lto_input_sleb128 (ib); xloc.line = lto_input_sleb128 (ib);
xloc.column = lto_input_sleb128 (ib); xloc.column = lto_input_sleb128 (ib);
xloc.sysp = lto_input_sleb128 (ib);
if (data_in->current_file != xloc.file) if (data_in->current_file != xloc.file)
{ {
if (data_in->current_file) if (data_in->current_file)
linemap_add (line_table, LC_LEAVE, false, NULL, 0); linemap_add (line_table, LC_LEAVE, false, NULL, 0);
linemap_add (line_table, LC_ENTER, false, xloc.file, xloc.line); linemap_add (line_table, LC_ENTER, xloc.sysp, xloc.file, xloc.line);
} }
else if (data_in->current_line != xloc.line) else if (data_in->current_line != xloc.line)
linemap_line_start (line_table, xloc.line, xloc.column); linemap_line_start (line_table, xloc.line, xloc.column);
......
...@@ -618,6 +618,7 @@ lto_output_location (struct output_block *ob, location_t loc) ...@@ -618,6 +618,7 @@ lto_output_location (struct output_block *ob, location_t loc)
output_string (ob, ob->main_stream, xloc.file); output_string (ob, ob->main_stream, xloc.file);
output_sleb128 (ob, xloc.line); output_sleb128 (ob, xloc.line);
output_sleb128 (ob, xloc.column); output_sleb128 (ob, xloc.column);
output_sleb128 (ob, xloc.sysp);
ob->current_file = xloc.file; ob->current_file = xloc.file;
ob->current_line = xloc.line; ob->current_line = xloc.line;
......
2009-10-22 Richard Guenther <rguenther@suse.de> 2009-10-22 Richard Guenther <rguenther@suse.de>
PR lto/41791
* g++.dg/lto/20091022-2_0.C: New testcase.
2009-10-22 Richard Guenther <rguenther@suse.de>
PR lto/41730 PR lto/41730
* g++.dg/lto/20091022-1_0.C: New testcase. * g++.dg/lto/20091022-1_0.C: New testcase.
......
// { dg-lto-do link }
// { dg-lto-options {{-O3 -flto -Winline}} }
#include <string>
int
main()
{
std::string i;
i = "abc";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment