]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/29537 (ICE in gfc_match_common for blank common in BLOCK DATA unit)
authorBernhard Fischer <aldot@gcc.gnu.org>
Tue, 31 Oct 2006 23:38:58 +0000 (00:38 +0100)
committerBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Tue, 31 Oct 2006 23:38:58 +0000 (00:38 +0100)
commit4143349751326d2804faad1a7d2cc55e647bd4ad
treec625ef375d766085812e0b32d7cc941024b9531e
parentaf9d09936281796e6341ad77b210f5a9b257aad3
re PR fortran/29537 (ICE in gfc_match_common for blank common in BLOCK DATA unit)

fortran/ChangeLog:
2006-11-01  Bernhard Fischer  <aldot@gcc.gnu.org>

        PR fortran/29537
        * trans-common.c (gfc_trans_common): If the blank common is
        in a procedure or program without a name then proc_name is null, so use
        the locus of the common.
        (gfc_sym_mangled_common_id): Fix whitespace.
        * match.c (gfc_match_common): Emit warning about blank common in
        block data.

testsuite/ChangeLog:
2006-11-01  Bernhard Fischer  <aldot@gcc.gnu.org>

        PR fortran/29537
        * gfortran.dg/blockdata_1.f90: Add warning about blank common in block
data.
        * gfortran.dg/blockdata_2.f90: New testcase.

From-SVN: r118347
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/fortran/trans-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/blockdata_1.f90
gcc/testsuite/gfortran.dg/blockdata_2.f90 [new file with mode: 0644]