aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2005-05-13 17:34:45 +0000
committerJulian Brown <jules@gcc.gnu.org>2005-05-13 17:34:45 +0000
commit967bfd2c59732d550bec70d00f9b6f1b3416c1ae (patch)
tree0b755cd06886fd2f0d07b9afcb3cc4ffc6c3e80f
parent52c9ce2ea289fe5eb3b6e4c1491b6207eef69a1e (diff)
downloadgcc-967bfd2c59732d550bec70d00f9b6f1b3416c1ae.zip
gcc-967bfd2c59732d550bec70d00f9b6f1b3416c1ae.tar.gz
gcc-967bfd2c59732d550bec70d00f9b6f1b3416c1ae.tar.bz2
20041218-2.c: Add __attribute__((packed)).
* gcc.c-torture/execute/20041218-2.c: Add __attribute__((packed)). * gcc.dg/intmax_t-1.c: Disable on *arm*-*-*elf*. From-SVN: r99672
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20041218-2.c2
-rw-r--r--gcc/testsuite/gcc.dg/intmax_t-1.c2
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 44abb23..47c6771 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-13 Julian Brown <julian@codesourcery.com>
+
+ * gcc.c-torture/execute/20041218-2.c: Add __attribute__((packed)).
+ * gcc.dg/intmax_t-1.c: Disable on *arm*-*-*elf*.
+
2005-05-13 Jan Hubicka <jh@suse.cz>
* gcc.dg/builtins-43.c: Use gimple dump instead of generic.
diff --git a/gcc/testsuite/gcc.c-torture/execute/20041218-2.c b/gcc/testsuite/gcc.c-torture/execute/20041218-2.c
index c4b3627..d44b54d 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20041218-2.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20041218-2.c
@@ -2,7 +2,7 @@ extern void abort (void);
int test(int n)
{
- struct s { char b[n]; };
+ struct s { char b[n]; } __attribute__((packed));
n++;
return sizeof(struct s);
}
diff --git a/gcc/testsuite/gcc.dg/intmax_t-1.c b/gcc/testsuite/gcc.dg/intmax_t-1.c
index 38e42f5..6c9820a 100644
--- a/gcc/testsuite/gcc.dg/intmax_t-1.c
+++ b/gcc/testsuite/gcc.dg/intmax_t-1.c
@@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-Wall" } */
-/* { dg-error "" "" { target *-*-solaris2.5.1 mmix-*-* mips*-*-elf* } 0 } */
+/* { dg-error "" "" { target *-*-solaris2.5.1 mmix-*-* mips*-*-elf* *arm*-*-*elf* } 0 } */
/* Compile with -Wall to get a warning if built-in and system intmax_t don't
match. */