Re: [PATCH] tree-inline: Add __builtin_stack_{save,restore} pair about inline calls with calls to alloca [PR113596]

2024-05-03 Thread Richard Biener
On Fri, 3 May 2024, Jakub Jelinek wrote: > Hi! > > The following patch adds save_NNN = __builtin_stack_save (); ... > __builtin_stack_restore (save_NNN); > pair around inline calls which call alloca (alloca calls because of > VLA vars are ignored in that decision). > The patch doesn't change anyt

[PATCH] tree-inline: Add __builtin_stack_{save,restore} pair about inline calls with calls to alloca [PR113596]

2024-05-03 Thread Jakub Jelinek
Hi! The following patch adds save_NNN = __builtin_stack_save (); ... __builtin_stack_restore (save_NNN); pair around inline calls which call alloca (alloca calls because of VLA vars are ignored in that decision). The patch doesn't change anything on whether we try to inline such calls or not, it j