Re: [PATCH] Diagnose earlier invalid inline asm constraints (PR inline-asm/84742)

2018-03-12 Thread H.J. Lu
On Mon, Mar 12, 2018 at 4:18 AM, H.J. Lu wrote: > On Thu, Mar 8, 2018 at 10:19 AM, Jakub Jelinek wrote: >> Hi! >> >> We have many loops that use CONSTRAINT_LEN to skip over various constraint >> characters, but we assume the constraints have valid length and don't walk >> the individual character

Re: [PATCH] Diagnose earlier invalid inline asm constraints (PR inline-asm/84742)

2018-03-12 Thread H.J. Lu
On Thu, Mar 8, 2018 at 10:19 AM, Jakub Jelinek wrote: > Hi! > > We have many loops that use CONSTRAINT_LEN to skip over various constraint > characters, but we assume the constraints have valid length and don't walk > the individual characters to double check this. > > If that is not the case, whe

Re: [PATCH] Diagnose earlier invalid inline asm constraints (PR inline-asm/84742)

2018-03-08 Thread Jeff Law
On 03/08/2018 11:19 AM, Jakub Jelinek wrote: > Hi! > > We have many loops that use CONSTRAINT_LEN to skip over various constraint > characters, but we assume the constraints have valid length and don't walk > the individual characters to double check this. > > If that is not the case, when e.g. 2

[PATCH] Diagnose earlier invalid inline asm constraints (PR inline-asm/84742)

2018-03-08 Thread Jakub Jelinek
Hi! We have many loops that use CONSTRAINT_LEN to skip over various constraint characters, but we assume the constraints have valid length and don't walk the individual characters to double check this. If that is not the case, when e.g. 2 character constraint starting letter is followed by '\0',