diff options
author | pault <pault@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-12-09 09:17:24 +0000 |
---|---|---|
committer | pault <pault@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-12-09 09:17:24 +0000 |
commit | a2f51d5f09a1394e3a45c7052c5223c1517c65ea (patch) | |
tree | 20e58b82c3459ec5c5b1e896dcce5b3ad27987fb /gcc/fortran/dump-parse-tree.c | |
parent | 4995f9f98a8e8cf1e1150baa6e9ae505a00a103b (diff) | |
download | gcc-a2f51d5f09a1394e3a45c7052c5223c1517c65ea.tar.gz |
2007-12-09 Paul Thomas <pault@gcc.gnu.org>
PR fortran/32129
* dump-parse-tree.c (gfc_show_expr_n): New function for
debugging.
* gfortran.h : Add prototype for gfc_show_expr_n.
* expr.c (simplify_constructor): Copy the constructor
expression and try to simplify that. If success, replace the
original. Otherwise discard the copy, keep going through
the structure and return success.
PR fortran/31487
* decl.c (build_struct): Pad out default initializers with
spaces to the component character length.
2007-12-09 Paul Thomas <pault@gcc.gnu.org>
PR fortran/32129
* gfortran.dg/derived_comp_array_ref_6.f90: New test.
* gfortran.dg/derived_comp_array_ref_7.f90: New test.
PR fortran/31487
* gfortran.dg/char_component_initializer_1.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130719 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/dump-parse-tree.c')
-rw-r--r-- | gcc/fortran/dump-parse-tree.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c index e1e463f7fcd..f9c92b272e6 100644 --- a/gcc/fortran/dump-parse-tree.c +++ b/gcc/fortran/dump-parse-tree.c @@ -540,6 +540,15 @@ gfc_show_expr (gfc_expr *p) } } +/* Show an expression for diagnostic purposes. */ +void +gfc_show_expr_n (const char * msg, gfc_expr *e) +{ + if (msg) + gfc_status (msg); + gfc_show_expr (e); + gfc_status_char ('\n'); +} /* Show symbol attributes. The flavor and intent are followed by whatever single bit attributes are present. */ |