OSDN Git Service

PR debug/43166
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Feb 2010 10:50:24 +0000 (10:50 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Feb 2010 10:50:24 +0000 (10:50 +0000)
commit5d713e67a59aaff7ca333177fd088f5482d9439d
tree8c563f765e4c4c2d824bc55f8a32342fd34a9066
parent406aed5db7dd809344bc80fc27444540f4d9ad73
PR debug/43166
* cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
BLKmode, assert op0 is a MEM and just adjust its mode.

* trans-common.c (build_common_decl): Also update DECL_MODE,
and DECL_SIZE when encountering a larger common block and call
layout_decl.

* gfortran.dg/debug/pr43166.f: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157063 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgexpand.c
gcc/fortran/ChangeLog
gcc/fortran/trans-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/debug/pr43166.f [new file with mode: 0644]