Re: [PATCH] Fix patchable_function_entry attribute handling (PR c/89946)

2019-04-12 Thread Richard Biener
On Fri, 12 Apr 2019, Jakub Jelinek wrote: > Hi! > > The following patch fixes various issues in patchable_function_entry > handling: > 1) most importantly, it adds a warning if the argument(s) aren't integer >constants or if they are negative and drops the attribute > 2) if (tree_fits_uhwi_p

[PATCH] Fix patchable_function_entry attribute handling (PR c/89946)

2019-04-12 Thread Jakub Jelinek
Hi! The following patch fixes various issues in patchable_function_entry handling: 1) most importantly, it adds a warning if the argument(s) aren't integer constants or if they are negative and drops the attribute 2) if (tree_fits_uhwi_p (x)) y = tree_to_uhwi (x); else gcc_unreachable (); ma