aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2011-10-09 21:37:47 +0200
committerTobias Burnus <burnus@gcc.gnu.org>2011-10-09 21:37:47 +0200
commit7de61dc6ac5ec699bffb6af49636db501f436004 (patch)
tree38807adc0309dc6dbf59b746024f9e1cbd0017d2 /gcc/testsuite
parent0cc8903520c9aff729ed624d4ae4510cb721e7ba (diff)
downloadgcc-7de61dc6ac5ec699bffb6af49636db501f436004.zip
gcc-7de61dc6ac5ec699bffb6af49636db501f436004.tar.gz
gcc-7de61dc6ac5ec699bffb6af49636db501f436004.tar.bz2
re PR fortran/45044 (Different named COMMON block size: No warning)
2011-10-09 Tobias Burnus <burnus@net-b.de> PR fortran/45044 * trans-common.c (translate_common): Fix -Walign-commons check. 2011-10-09 Tobias Burnus <burnus@net-b.de> PR fortran/45044 * gfortran.dg/common_14.f90: Compile with -Wno-align-commons. * gfortran.dg/common_16.f90: New. From-SVN: r179729
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gfortran.dg/common_14.f901
-rw-r--r--gcc/testsuite/gfortran.dg/common_16.f9012
3 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c5717fe..bef6c34 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,11 @@
2011-10-09 Tobias Burnus <burnus@net-b.de>
+ PR fortran/45044
+ * gfortran.dg/common_14.f90: Compile with -Wno-align-commons.
+ * gfortran.dg/common_16.f90: New.
+
+2011-10-09 Tobias Burnus <burnus@net-b.de>
+
* gfortran.dg/iso_c_binding_param_1.f90: New.
* gfortran.dg/iso_c_binding_param_2.f90: New.
* gfortran.dg/c_sizeof_2.f90: Update dg-error.
diff --git a/gcc/testsuite/gfortran.dg/common_14.f90 b/gcc/testsuite/gfortran.dg/common_14.f90
index aced168..892e4a5 100644
--- a/gcc/testsuite/gfortran.dg/common_14.f90
+++ b/gcc/testsuite/gfortran.dg/common_14.f90
@@ -1,4 +1,5 @@
! { dg-do compile }
+! { dg-options "-Wno-align-commons" }
!
! PR fortran/45044
!
diff --git a/gcc/testsuite/gfortran.dg/common_16.f90 b/gcc/testsuite/gfortran.dg/common_16.f90
new file mode 100644
index 0000000..3314e80
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/common_16.f90
@@ -0,0 +1,12 @@
+! { dg-do compile }
+! { dg-options "-pedantic -mdalign" { target sh*-*-* } }
+!
+! PR fortran/50273
+!
+subroutine test()
+ character :: a
+ integer :: b
+ character :: c
+ common /global_var/ a, b, c ! { dg-warning "Padding of 3 bytes required before 'b' in COMMON" }
+ print *, a, b, c
+end subroutine test