Re: [PATCH] match: Reject non-const internal functions [PR117260]

2024-10-23 Thread Richard Biener
On Wed, Oct 23, 2024 at 8:50 AM Richard Biener wrote: > > On Tue, Oct 22, 2024 at 7:21 PM Andrew Pinski > wrote: > > > > When internal functions support was added to match > > (r6-4979-gc9e926ce2bdc8b), > > the check for ECF_CONST was the builtin function side. Though before > > r15-4503-g8d6d

Re: [PATCH] match: Reject non-const internal functions [PR117260]

2024-10-22 Thread Richard Biener
On Tue, Oct 22, 2024 at 7:21 PM Andrew Pinski wrote: > > When internal functions support was added to match (r6-4979-gc9e926ce2bdc8b), > the check for ECF_CONST was the builtin function side. Though before > r15-4503-g8d6d6d537fdc, > there was no use of maybe_push_res_to_seq with non-const intern

[PATCH] match: Reject non-const internal functions [PR117260]

2024-10-22 Thread Andrew Pinski
When internal functions support was added to match (r6-4979-gc9e926ce2bdc8b), the check for ECF_CONST was the builtin function side. Though before r15-4503-g8d6d6d537fdc, there was no use of maybe_push_res_to_seq with non-const internal functions so the check would not make a difference. This ad