diff options
author | Richard Guenther <rguenther@suse.de> | 2010-05-07 15:53:40 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-05-07 15:53:40 +0000 |
commit | 5cd0e96b0e8248436fa6f743feb057114abd2f62 (patch) | |
tree | 29dabebed4129e0cb07c2120a2171cf6005fa4b9 /gcc/lto | |
parent | 40bb78ad246919ee068382c3a2cdf6f299e412c9 (diff) | |
download | gcc-5cd0e96b0e8248436fa6f743feb057114abd2f62.zip gcc-5cd0e96b0e8248436fa6f743feb057114abd2f62.tar.gz gcc-5cd0e96b0e8248436fa6f743feb057114abd2f62.tar.bz2 |
re PR lto/43857 (-fresolution causes an ICE)
2010-05-07 Richard Guenther <rguenther@suse.de>
* gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
the linker plugin.
(store_arg): Queue temp_filename for deletion instead of
the whole argument.
lto/
PR lto/43857
PR lto/43371
* lang.opt (fresolution): Change to ...
(fresolution=): ... this.
* lto-lang.c (lto_handle_option): Adjust.
lto-plugin/
* lto-plugin.c (free_2): Do not free resolution_file.
(write_resolution): Check that we were passed a resolution file.
(all_symbols_read_handler): Adjust.
(cleanup_handler): Do not remove the resolution file.
(process_option): Handle -fresolution=.
From-SVN: r159159
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/lto/lang.opt | 4 | ||||
-rw-r--r-- | gcc/lto/lto-lang.c | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 5bbb2e3..2496d66 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,11 @@ +2010-05-07 Richard Guenther <rguenther@suse.de> + + PR lto/43857 + PR lto/43371 + * lang.opt (fresolution): Change to ... + (fresolution=): ... this. + * lto-lang.c (lto_handle_option): Adjust. + 2010-05-07 Richard Guenther <rguenther@suse.de> * lto.c (DUMPBASE_SUFFIX): Remove. diff --git a/gcc/lto/lang.opt b/gcc/lto/lang.opt index a8b7916..53ab8e8 100644 --- a/gcc/lto/lang.opt +++ b/gcc/lto/lang.opt @@ -36,8 +36,8 @@ fwpa LTO Report Var(flag_wpa) Optimization Run the link-time optimizer in whole program analysis (WPA) mode. -fresolution -LTO Separate +fresolution= +LTO Joined The resolution file ; This comment is to ensure we retain the blank line above. diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c index 4c90721..72149082 100644 --- a/gcc/lto/lto-lang.c +++ b/gcc/lto/lto-lang.c @@ -624,7 +624,7 @@ lto_handle_option (size_t scode, const char *arg, switch (code) { - case OPT_fresolution: + case OPT_fresolution_: resolution_file_name = arg; result = 1; break; |