summaryrefslogtreecommitdiff
path: root/gcc/fortran/trans.h
diff options
context:
space:
mode:
authormikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-03 23:31:32 +0000
committermikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-03 23:31:32 +0000
commitf53dc1beca14933ff21b68564c9ff4f93eb882ac (patch)
tree6ec2157829ee7f05e68abf4e587f9b8b1a85d27a /gcc/fortran/trans.h
parent13d8bc14db87f1f59ee25ad7e39a40c464cb43df (diff)
downloadgcc-f53dc1beca14933ff21b68564c9ff4f93eb882ac.tar.gz
* trans.h (struct gfc_ss): New field nested_ss.
* trans-expr.c (gfc_advance_se_ss_chain): Update assertion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180893 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/trans.h')
-rw-r--r--gcc/fortran/trans.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/fortran/trans.h b/gcc/fortran/trans.h
index 53c5ce25fa4..06088797f64 100644
--- a/gcc/fortran/trans.h
+++ b/gcc/fortran/trans.h
@@ -249,6 +249,11 @@ typedef struct gfc_ss
/* Non-null if the ss is part of a nested loop. */
struct gfc_ss *parent;
+ /* If the evaluation of an expression requires a nested loop (for example
+ if the sum intrinsic is evaluated inline), this points to the nested
+ loop's gfc_ss. */
+ struct gfc_ss *nested_ss;
+
/* The loop this gfc_ss is in. */
struct gfc_loopinfo *loop;