Re: [PATCH] Use incoming small integer argument value if possible

2025-04-29 Thread Richard Biener
On Tue, Apr 29, 2025 at 3:53 PM H.J. Lu wrote: > > On Tue, Apr 29, 2025 at 9:34 PM Richard Biener > wrote: > > > > On Tue, Apr 29, 2025 at 2:33 PM H.J. Lu wrote: > > > > > > On Tue, Apr 29, 2025 at 6:46 PM Richard Biener > > > wrote: > > > > > > > > On Tue, Apr 29, 2025 at 12:32 PM H.J. Lu wro

Re: [PATCH] Use incoming small integer argument value if possible

2025-04-29 Thread H.J. Lu
On Tue, Apr 29, 2025 at 9:34 PM Richard Biener wrote: > > On Tue, Apr 29, 2025 at 2:33 PM H.J. Lu wrote: > > > > On Tue, Apr 29, 2025 at 6:46 PM Richard Biener > > wrote: > > > > > > On Tue, Apr 29, 2025 at 12:32 PM H.J. Lu wrote: > > > > > > > > On Tue, Apr 29, 2025 at 5:56 PM Richard Biener >

Re: [PATCH] Use incoming small integer argument value if possible

2025-04-29 Thread Richard Biener
On Tue, Apr 29, 2025 at 2:33 PM H.J. Lu wrote: > > On Tue, Apr 29, 2025 at 6:46 PM Richard Biener > wrote: > > > > On Tue, Apr 29, 2025 at 12:32 PM H.J. Lu wrote: > > > > > > On Tue, Apr 29, 2025 at 5:56 PM Richard Biener > > > wrote: > > > > > > > > On Tue, Apr 29, 2025 at 10:48 AM H.J. Lu wr

Re: [PATCH] Use incoming small integer argument value if possible

2025-04-29 Thread H.J. Lu
On Tue, Apr 29, 2025 at 6:46 PM Richard Biener wrote: > > On Tue, Apr 29, 2025 at 12:32 PM H.J. Lu wrote: > > > > On Tue, Apr 29, 2025 at 5:56 PM Richard Biener > > wrote: > > > > > > On Tue, Apr 29, 2025 at 10:48 AM H.J. Lu wrote: > > > > > > > > On Tue, Apr 29, 2025 at 4:25 PM Richard Biener

Re: [PATCH] Use incoming small integer argument value if possible

2025-04-29 Thread Richard Biener
On Tue, Apr 29, 2025 at 12:32 PM H.J. Lu wrote: > > On Tue, Apr 29, 2025 at 5:56 PM Richard Biener > wrote: > > > > On Tue, Apr 29, 2025 at 10:48 AM H.J. Lu wrote: > > > > > > On Tue, Apr 29, 2025 at 4:25 PM Richard Biener > > > wrote: > > > > > > > > On Tue, Apr 29, 2025 at 9:39 AM H.J. Lu wr

Re: [PATCH] Use incoming small integer argument value if possible

2025-04-29 Thread H.J. Lu
On Tue, Apr 29, 2025 at 5:56 PM Richard Biener wrote: > > On Tue, Apr 29, 2025 at 10:48 AM H.J. Lu wrote: > > > > On Tue, Apr 29, 2025 at 4:25 PM Richard Biener > > wrote: > > > > > > On Tue, Apr 29, 2025 at 9:39 AM H.J. Lu wrote: > > > > > > > > For targets, like x86, which define TARGET_PROMO

Re: [PATCH] Use incoming small integer argument value if possible

2025-04-29 Thread Richard Biener
On Tue, Apr 29, 2025 at 10:48 AM H.J. Lu wrote: > > On Tue, Apr 29, 2025 at 4:25 PM Richard Biener > wrote: > > > > On Tue, Apr 29, 2025 at 9:39 AM H.J. Lu wrote: > > > > > > For targets, like x86, which define TARGET_PROMOTE_PROTOTYPES to return > > > true, all integer arguments smaller than in

Re: [PATCH] Use incoming small integer argument value if possible

2025-04-29 Thread H.J. Lu
On Tue, Apr 29, 2025 at 4:25 PM Richard Biener wrote: > > On Tue, Apr 29, 2025 at 9:39 AM H.J. Lu wrote: > > > > For targets, like x86, which define TARGET_PROMOTE_PROTOTYPES to return > > true, all integer arguments smaller than int are passed as int: > > > > [hjl@gnu-tgl-3 pr14907]$ cat x.c > >

Re: [PATCH] Use incoming small integer argument value if possible

2025-04-29 Thread Richard Biener
On Tue, Apr 29, 2025 at 9:39 AM H.J. Lu wrote: > > For targets, like x86, which define TARGET_PROMOTE_PROTOTYPES to return > true, all integer arguments smaller than int are passed as int: > > [hjl@gnu-tgl-3 pr14907]$ cat x.c > extern int baz (char c1); > > int > foo (char c1) > { > return baz (