re PR fortran/17675 ([Regression w.r.t. g77] Alignment constraints not honored in...
authorPaul Brook <paul@codesourcery.com>
Sun, 9 Jan 2005 22:57:45 +0000 (22:57 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Sun, 9 Jan 2005 22:57:45 +0000 (22:57 +0000)
commit832ef1ce869dc9568c7f91ff00987d53194738b1
treec22196ec02502cd35005a6f2c53a95eb645eafdb
parent351bae3d7df284c94babb81e1b5bb6142c5963a8
re PR fortran/17675 ([Regression w.r.t. g77] Alignment constraints not honored in EQUIVALENCE)

2005-01-09  Paul Brook  <paul@codesourcery.com>

PR fortran/17675
* trans-common.c (current_common, current_offset): Remove.
(create_common): Add head argument.
(align_segment): New function.
(apply_segment_offset): New function.
(translate_common): Merge code from new_segment.  Handle alignment.
(new_segment): Remove.
(finish_equivalences): Ensure proper alignment.
testsuite/
* gfortran.dg/common_2.f90: New file.
* gfortran.dg/common_3.f90: New file.

From-SVN: r93122
gcc/fortran/ChangeLog
gcc/fortran/trans-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/common_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/common_3.f90 [new file with mode: 0644]