X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libgfortran%2Fgenerated%2Fshape_i4.c;h=cd446f5f31365f29b6bcc762b18a76c23cc89266;hb=4d8cd3a26294ce35abb17668eac2b6c38dd23bd0;hp=fa2d4ebe2ebbabf6e5381629278cafb7e36218ba;hpb=c944d49b3bd3667c65c299afd3b1d756084203f4;p=platform%2Fupstream%2Fgcc48.git diff --git a/libgfortran/generated/shape_i4.c b/libgfortran/generated/shape_i4.c index fa2d4eb..cd446f5 100644 --- a/libgfortran/generated/shape_i4.c +++ b/libgfortran/generated/shape_i4.c @@ -1,8 +1,8 @@ /* Implementation of the SHAPE intrinsic - Copyright 2002, 2006, 2007, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2002-2013 Free Software Foundation, Inc. Contributed by Paul Brook -This file is part of the GNU Fortran 95 runtime library (libgfortran). +This file is part of the GNU Fortran runtime library (libgfortran). Libgfortran is free software; you can redistribute it and/or modify it under the terms of the GNU General Public @@ -45,11 +45,11 @@ shape_4 (gfc_array_i4 * const restrict ret, rank = GFC_DESCRIPTOR_RANK (array); - if (ret->data == NULL) + if (ret->base_addr == NULL) { GFC_DIMENSION_SET(ret->dim[0], 0, rank - 1, 1); ret->offset = 0; - ret->data = internal_malloc_size (sizeof (GFC_INTEGER_4) * rank); + ret->base_addr = xmalloc (sizeof (GFC_INTEGER_4) * rank); } stride = GFC_DESCRIPTOR_STRIDE(ret,0); @@ -60,7 +60,7 @@ shape_4 (gfc_array_i4 * const restrict ret, for (n = 0; n < rank; n++) { extent = GFC_DESCRIPTOR_EXTENT(array,n); - ret->data[n * stride] = extent > 0 ? extent : 0 ; + ret->base_addr[n * stride] = extent > 0 ? extent : 0 ; } }