diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2008-10-10 07:22:32 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2008-10-10 07:22:32 +0000 |
commit | 09775c40fd00101061a4f7599403b252a05910b6 (patch) | |
tree | 5b5a15e15103035096e0369237f632628710386b /gcc | |
parent | fd9fffd1e90ae7361d6d19ad85d68a6020594941 (diff) | |
download | gcc-09775c40fd00101061a4f7599403b252a05910b6.zip gcc-09775c40fd00101061a4f7599403b252a05910b6.tar.gz gcc-09775c40fd00101061a4f7599403b252a05910b6.tar.bz2 |
trans-types.c (gfc_get_nodesc_array_type): Don't vary types depending on debug info.
* fortran/trans-types.c (gfc_get_nodesc_array_type): Don't
vary types depending on debug info.
From-SVN: r141021
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fortran/trans-types.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e539356..340f30c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2008-10-10 Alexandre Oliva <aoliva@redhat.com> + * fortran/trans-types.c (gfc_get_nodesc_array_type): Don't + vary types depending on debug info. + +2008-10-10 Alexandre Oliva <aoliva@redhat.com> + * c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME before ensuring it's already computed. diff --git a/gcc/fortran/trans-types.c b/gcc/fortran/trans-types.c index c3d2a91..c4c8314 100644 --- a/gcc/fortran/trans-types.c +++ b/gcc/fortran/trans-types.c @@ -1415,10 +1415,10 @@ gfc_get_nodesc_array_type (tree etype, gfc_array_spec * as, gfc_packed packed) mpz_clear (stride); mpz_clear (delta); - /* In debug info represent packed arrays as multi-dimensional - if they have rank > 1 and with proper bounds, instead of flat - arrays. */ - if (known_offset && write_symbols != NO_DEBUG) + /* Represent packed arrays as multi-dimensional if they have rank > + 1 and with proper bounds, instead of flat arrays. This makes for + better debug info. */ + if (known_offset) { tree gtype = etype, rtype, type_decl; |