Revert "target: support spaces in target attribute."

This reverts commit df592811f950301ed3b10a08e476dad0f2eff26a.
This commit is contained in:
Martin Liska 2021-10-20 14:49:35 +02:00
parent 85d7543a22
commit 39175be0fa
3 changed files with 0 additions and 26 deletions

View File

@ -1146,8 +1146,6 @@ ix86_valid_target_attribute_inner_p (tree fndecl, tree args, char *p_strings[],
next_optstr = NULL;
}
p = strip_whitespaces (p, &len);
/* Recognize no-xxx. */
if (len > 3 && p[0] == 'n' && p[1] == 'o' && p[2] == '-')
{

View File

@ -1305,25 +1305,4 @@ startswith (const char *str, const char *prefix)
return strncmp (str, prefix, strlen (prefix)) == 0;
}
/* Strip white spaces from STRING with LEN length.
A stripped string is returned and LEN is updated accordingly. */
static inline char *
strip_whitespaces (char *string, size_t *len)
{
while (string[0] == ' ' || string[0] == '\t')
{
--(*len);
++string;
}
while (string[*len - 1] == ' ' || string[*len - 1] == '\t')
{
string[*len - 1] = '\0';
--(*len);
}
return string;
}
#endif /* ! GCC_SYSTEM_H */

View File

@ -1,3 +0,0 @@
/* PR target/102374 */
void calculate_sse(void) __attribute__ ((__target__ (" no-avx, sse2 ")));