This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: [Patch, libgfortran] Add const restrict to intrinsic functions


On Sat, Nov 26, 2005 at 02:58:30PM +0200, Janne Blomqvist wrote:
> Hi,
> 
> the attached patch adds const restrict to the arguments for the
> intrinsic functions in the m4/ directory.

I believe this is incorrect for cases like eoshift1, which has:

  if (ret->data == NULL)
    {
      int i;

      ret->data = internal_malloc_size (size * size0 ((array_t *)array));
      ret->offset = 0;
      ret->dtype = array->dtype;

You can't declare ret as "const" in this case.

	Thomas


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