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

Unified Diff: gcc/libgfortran/intrinsics/dtime.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/intrinsics/cshift0.c ('k') | gcc/libgfortran/intrinsics/etime.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/libgfortran/intrinsics/dtime.c
diff --git a/gcc/libgfortran/intrinsics/dtime.c b/gcc/libgfortran/intrinsics/dtime.c
index 868f724f12641d195fc051dbac95c3d45a8c91d5..d1eb9121ab81c383304621393c044345c06b6a24 100644
--- a/gcc/libgfortran/intrinsics/dtime.c
+++ b/gcc/libgfortran/intrinsics/dtime.c
@@ -43,7 +43,7 @@ dtime_sub (gfc_array_r4 *t, GFC_REAL_4 *result)
static long us = 0, uu = 0, ss = 0 , su = 0;
GFC_REAL_4 tu, ts, tt;
- if (((t->dim[0].ubound + 1 - t->dim[0].lbound)) < 2)
+ if (((GFC_DESCRIPTOR_EXTENT(t,0))) < 2)
runtime_error ("Insufficient number of elements in TARRAY.");
__gthread_mutex_lock (&dtime_update_lock);
@@ -67,7 +67,7 @@ dtime_sub (gfc_array_r4 *t, GFC_REAL_4 *result)
tp = t->data;
*tp = tu;
- tp += t->dim[0].stride;
+ tp += GFC_DESCRIPTOR_STRIDE(t,0);
*tp = ts;
*result = tt;
__gthread_mutex_unlock (&dtime_update_lock);
« no previous file with comments | « gcc/libgfortran/intrinsics/cshift0.c ('k') | gcc/libgfortran/intrinsics/etime.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698