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
This commit is contained in:
Martin Liska 2017-04-07 13:20:01 +02:00 committed by Martin Liska
parent 70cd23c019
commit 3b6cb9e37e
4 changed files with 18 additions and 3 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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);

View File

@ -1,3 +1,8 @@
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

View File

@ -1,4 +1,4 @@
// { 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)))