diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2016-01-04 08:06:52 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2016-01-04 08:06:52 +0000 |
commit | e8d65a35d50c59fa657329032943b0e5ec241147 (patch) | |
tree | a77c71990adc9cda31f16828e902fe34644d1a47 /gcc/testsuite | |
parent | a10f2c253c47da0a0d8ba7266f8e89174d9b1879 (diff) | |
download | gcc-e8d65a35d50c59fa657329032943b0e5ec241147.zip gcc-e8d65a35d50c59fa657329032943b0e5ec241147.tar.gz gcc-e8d65a35d50c59fa657329032943b0e5ec241147.tar.bz2 |
re PR target/69072 (ICE in function_arg_record_value on 7th packed structure)
PR target/69072
* config/sparc/sparc.c (scan_record_type): Take into account subfields
to compute the PACKED_P predicate.
(function_arg_record_value): Minor tweaks.
From-SVN: r232049
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/sparc/20160104-1.c | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 91499e3d..148ac10 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-01-04 Eric Botcazou <ebotcazou@adacore.com> + + * gcc.target/sparc/20160104-1.c: New test. + 2016-01-03 Paul Thomas <pault@gcc.gnu.org> PR fortran/65045 diff --git a/gcc/testsuite/gcc.target/sparc/20160104-1.c b/gcc/testsuite/gcc.target/sparc/20160104-1.c new file mode 100644 index 0000000..0cc617a --- /dev/null +++ b/gcc/testsuite/gcc.target/sparc/20160104-1.c @@ -0,0 +1,16 @@ +/* PR target/69072 */ +/* Reported by Zdenek Sojka <zsojka@seznam.cz> */ + +/* { dg-do compile } */ + +typedef struct +{ + struct + { + double d; + } __attribute__((packed)) a; +} S; + +void +foo (S s1, S s2, S s3, S s4, S s5, S s6, S s7) +{} |