Commit d04295d2 by Martin Liska Committed by Martin Liska

Add to same comdate group only if set (PR middle-end/90899)

2019-07-03  Martin Liska  <mliska@suse.cz>

	PR middle-end/90899
	* multiple_target.c (create_dispatcher_calls): Add to comdat
	group only if set for ifunc.
2019-07-03  Martin Liska  <mliska@suse.cz>

	PR middle-end/90899
	* gcc.target/i386/pr90899.c: New test.

From-SVN: r272992
parent 22dfc3e8
2019-07-03 Martin Liska <mliska@suse.cz> 2019-07-03 Martin Liska <mliska@suse.cz>
PR middle-end/90899
* multiple_target.c (create_dispatcher_calls): Add to comdat
group only if set for ifunc.
2019-07-03 Martin Liska <mliska@suse.cz>
PR target/88056 PR target/88056
* config/i386/host-mingw32.c (mingw32_gt_pch_use_address): * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
Define local_object_name in outer scope in order to handle Define local_object_name in outer scope in order to handle
......
...@@ -158,7 +158,8 @@ create_dispatcher_calls (struct cgraph_node *node) ...@@ -158,7 +158,8 @@ create_dispatcher_calls (struct cgraph_node *node)
{ {
symtab_node *source = ref->referring; symtab_node *source = ref->referring;
source->create_reference (inode, IPA_REF_ALIAS); source->create_reference (inode, IPA_REF_ALIAS);
source->add_to_same_comdat_group (inode); if (inode->get_comdat_group ())
source->add_to_same_comdat_group (inode);
} }
else else
gcc_unreachable (); gcc_unreachable ();
......
2019-07-03 Martin Liska <mliska@suse.cz>
PR middle-end/90899
* gcc.target/i386/pr90899.c: New test.
2019-07-03 Jakub Jelinek <jakub@redhat.com> 2019-07-03 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/91033 PR tree-optimization/91033
......
/* PR middle-end/90899 */
/* { dg-do compile } */
/* { dg-require-ifunc "" } */
__attribute__ ((target_clones ("default", "arch=slm"))) static int f () { return 0; }
__attribute__ ((alias ("f"))) __typeof (f) g;
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