[PATCH][GCC][AARCH64] Replace calls to strtok with strtok_r in aarch64 attribute handling code

James Greenhalgh james.greenhalgh@arm.com
Wed Nov 28 16:55:00 GMT 2018


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.tebbs@arm.com>
> 
> 	* config/aarch64/aarch64.c (aarch64_process_target_attr): Replace
> 	calls to strtok with strtok_r.



More information about the Gcc-patches mailing list