[RFC][PATCH] -d_lines

Andrew Pinski pinskia@physics.uc.edu
Wed Aug 17 20:20:00 GMT 2005


On Aug 17, 2005, at 3:54 PM, Tobias Schlüter wrote:

> +  /* Find end of file name.  */
> +  i = 0;
> +  while ((i < PATH_MAX) && (filename[i] != '\0'))
> +    i++;
> +
> +  /* Improperly terminated or too-long filename.  */
> +  if (i == PATH_MAX)
> +    return FORM_UNKNOWN;

You are introducing a depend on PATH_MAX which is not correct.
If the filename is not ending in 0, well let the compiler crash
because there is something wrong inside the compiler.

All uses of PATH_MAX should be removed from the fortran front-end.
I thought there was a patch to do just that.

-- Pinski



More information about the Fortran mailing list