This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gfortran, patch for PR 20788


coudert@lcp.u-psud.fr wrote:
> Regtested on i686-linux. OK for mainline?

No, because you're allowing signs in the middle of the number.

> @@ -109,7 +109,7 @@ init_integer (variable * v)
>      goto set_default;
>  
>    for (q = p; *q; q++)
> -    if (!isdigit (*q))
> +    if (!isdigit (*q) && *q != '-')
>        {
>  	v->bad = 1;
>  	goto set_default;

With that fixed this is ok (supposed negative unit numbers don't work, I
remember you had a patch for that a few days ago?)

- Tobi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]