diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-17 09:37:35 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-17 09:37:35 +0000 |
commit | 3a1880ee4ccdec00ad149122ebd2481f29169304 (patch) | |
tree | 2bf956ce7b37fb76192a0ca38fdae6823d5b6e0e /gcc/ipa-icf.c | |
parent | 30ab103b01a95bb8ddde392662a8421715ecacfb (diff) | |
download | gcc-3a1880ee4ccdec00ad149122ebd2481f29169304.tar.gz |
Temporary fix for PR63566.
* ipa-icf.c (sem_function::merge): Local flags are set to false
to enforce equal calling convention to be used.
* opts.c (common_handle_option): Indentation fix.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216386 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-icf.c')
-rw-r--r-- | gcc/ipa-icf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index f7510b33975..0e6bd9a6073 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -630,6 +630,11 @@ sem_function::merge (sem_item *alias_item) cgraph_node::create_alias (alias_func->decl, decl); alias->resolve_alias (original); + /* Workaround for PR63566 that forces equal calling convention + to be used. */ + alias->local.local = false; + original->local.local = false; + if (dump_file) fprintf (dump_file, "Callgraph alias has been created.\n\n"); } |