On Fri, Nov 23, 2018 at 08:22:49AM -0600, Sam Tebbs wrote: > Hi all, > > They AArch64 general attribute handling code uses the strtok function to > separate comma-delimited attributes in a string. This causes problems for and > interfers with attribute-specific handling code that also uses strtok to > separate attribute arguments, since strtok isn't re-entrant. This patch > replaces calls to strtok with strtok_r to avoid these problems when > adding/modifying attribute behaviour in the future. > > Bootstrapped and regression tested on aarch64-none-elf with no regressions. > > OK for trunk?
OK. James > > gcc/ChangeLog: > > 2018-11-23 Sam Tebbs<sam.te...@arm.com> > > * config/aarch64/aarch64.c (aarch64_process_target_attr): Replace > calls to strtok with strtok_r.