Re: [PATCH] Fix target_clones attribute handling (PR middle-end/78419)

2016-11-18 Thread Richard Biener
On November 18, 2016 10:41:06 PM GMT+01:00, Jakub Jelinek wrote: >Hi! > >The following testcase ICEs because of buffer overflow in the >expand_target_clones function. The main bug is that get_attr_str >doesn't count the commas in the strings, so while it handles >__attribute__((target_clones ("a

[PATCH] Fix target_clones attribute handling (PR middle-end/78419)

2016-11-18 Thread Jakub Jelinek
Hi! The following testcase ICEs because of buffer overflow in the expand_target_clones function. The main bug is that get_attr_str doesn't count the commas in the strings, so while it handles __attribute__((target_clones ("avx", "foo", "avx2", "avx512f", "default"))) it doesn't handle __attribute