Commit 3b6cb9e3 by Martin Liska Committed by Martin Liska

Error message on target attribute on aarch64 target (PR target/79889).

2017-04-07  Martin Liska  <mliska@suse.cz>

	PR target/79889
	* g++.dg/ext/mv8.C: Add aarch64* targets.
2017-04-07  Martin Liska  <mliska@suse.cz>

	PR target/79889
	* config/aarch64/aarch64.c (aarch64_process_target_attr):
	Show error message instead of an ICE.

From-SVN: r246760
parent 70cd23c0
2017-04-07 Martin Liska <mliska@suse.cz>
PR target/79889
* config/aarch64/aarch64.c (aarch64_process_target_attr):
Show error message instead of an ICE.
2017-04-07 Martin Liska <mliska@suse.cz>
PR ipa/80212
* ipa-split.c (split_function): Add function part to a same comdat
group.
......
......@@ -9530,8 +9530,12 @@ aarch64_process_target_attr (tree args, const char* pragma_or_attr)
return true;
}
/* We expect to find a string to parse. */
gcc_assert (TREE_CODE (args) == STRING_CST);
if (TREE_CODE (args) != STRING_CST)
{
error ("attribute %<target%> argument not a string");
return false;
}
size_t len = strlen (TREE_STRING_POINTER (args));
char *str_to_check = (char *) alloca (len + 1);
......
2017-04-07 Martin Liska <mliska@suse.cz>
PR target/79889
* g++.dg/ext/mv8.C: Add aarch64* targets.
2017-04-07 Martin Liska <mliska@suse.cz>
PR ipa/80212
* g++.dg/ipa/pr80212.C: New test.
......
// { dg-do compile { target i?86-*-* x86_64-*-* powerpc*-*-* } }
// { dg-do compile { target i?86-*-* x86_64-*-* powerpc*-*-* aarch64*-*-* } }
// { dg-options "" }
__attribute__((target (11,12)))
......
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