Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Unified Diff: gcc/libgfortran/runtime/in_unpack_generic.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/libgfortran/runtime/fpu.c ('k') | gcc/libgfortran/runtime/string.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/libgfortran/runtime/in_unpack_generic.c
diff --git a/gcc/libgfortran/runtime/in_unpack_generic.c b/gcc/libgfortran/runtime/in_unpack_generic.c
index 66b5c84b85446137d698982cb84eb7364a231598..3c290cd7ebd69fd937f715f7944b2497b785a83a 100644
--- a/gcc/libgfortran/runtime/in_unpack_generic.c
+++ b/gcc/libgfortran/runtime/in_unpack_generic.c
@@ -162,16 +162,13 @@ internal_unpack (gfc_array_char * d, const void * s)
size = GFC_DESCRIPTOR_SIZE (d);
- if (d->dim[0].stride == 0)
- d->dim[0].stride = 1;
-
dim = GFC_DESCRIPTOR_RANK (d);
dsize = 1;
for (n = 0; n < dim; n++)
{
count[n] = 0;
- stride[n] = d->dim[n].stride;
- extent[n] = d->dim[n].ubound + 1 - d->dim[n].lbound;
+ stride[n] = GFC_DESCRIPTOR_STRIDE(d,n);
+ extent[n] = GFC_DESCRIPTOR_EXTENT(d,n);
if (extent[n] <= 0)
return;
« no previous file with comments | « gcc/libgfortran/runtime/fpu.c ('k') | gcc/libgfortran/runtime/string.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698