Re: [PATCH v3 2/7] Add expand_promote_outgoing_argument

2024-11-20 Thread H.J. Lu
On Wed, Nov 20, 2024 at 10:18 PM Richard Biener wrote: > On Sun, Nov 10, 2024 at 1:55 PM H.J. Lu wrote: > > > > Since the C/C++/Ada frontends no longer promote integer argument smaller > > than int, add expand_promote_outgoing_argument to promote it when > expanding > > builtin functions. > > I

Re: [PATCH v3 2/7] Add expand_promote_outgoing_argument

2024-11-20 Thread Richard Biener
On Sun, Nov 10, 2024 at 1:55 PM H.J. Lu wrote: > > Since the C/C++/Ada frontends no longer promote integer argument smaller > than int, add expand_promote_outgoing_argument to promote it when expanding > builtin functions. I wonder if we should instead handle this in the generic builtin expansion

[PATCH v3 2/7] Add expand_promote_outgoing_argument

2024-11-10 Thread H.J. Lu
Since the C/C++/Ada frontends no longer promote integer argument smaller than int, add expand_promote_outgoing_argument to promote it when expanding builtin functions. PR middle-end/14907 * expr.cc (expand_promote_outgoing_argument): New function. * expr.h (expand_promote_o