+2018-11-28 Sam Tebbs <sam.tebbs@arm.com>
+
+ * config/aarch64/aarch64.c (aarch64_process_target_attr): Replace
+ calls to strtok with strtok_r.
+
2018-11-28 Richard Biener <rguenther@suse.de>
PR tree-optimization/88223
unsigned int num_commas = num_occurences_in_str (',', str_to_check);
/* Handle multiple target attributes separated by ','. */
- char *token = strtok (str_to_check, ",");
+ char *token = strtok_r (str_to_check, ",", &str_to_check);
unsigned int num_attrs = 0;
while (token)
return false;
}
- token = strtok (NULL, ",");
+ token = strtok_r (NULL, ",", &str_to_check);
}
if (num_attrs != num_commas + 1)