From 9c70f610465a6e904a1b9c0fdc39439629b392c7 Mon Sep 17 00:00:00 2001 From: Josh Conner Date: Wed, 31 Aug 2005 17:08:40 +0000 Subject: [PATCH] packed8.C: Add -mstructure-size-boundary=8 to command-line options for arm-*-* targets. * g++.dg/ext/packed8.C: Add -mstructure-size-boundary=8 to command-line options for arm-*-* targets. * g++.dg/init/array16.C: Likewise. * g++.dg/other/crash-4.C: Likewise. From-SVN: r103688 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/g++.dg/ext/packed8.C | 4 ++++ gcc/testsuite/g++.dg/init/array16.C | 4 ++++ gcc/testsuite/g++.dg/other/crash-4.C | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9c34189466f..6e96b8d0e20 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2005-08-31 Josh Conner + + * g++.dg/ext/packed8.C: Add -mstructure-size-boundary=8 to + command-line options for arm-*-* targets. + * g++.dg/init/array16.C: Likewise. + * g++.dg/other/crash-4.C: Likewise. + 2005-08-31 Andrew Pinski PR obj-c++/23640 diff --git a/gcc/testsuite/g++.dg/ext/packed8.C b/gcc/testsuite/g++.dg/ext/packed8.C index a68fa2c8a41..61d248e9928 100644 --- a/gcc/testsuite/g++.dg/ext/packed8.C +++ b/gcc/testsuite/g++.dg/ext/packed8.C @@ -1,4 +1,8 @@ // PR c++/18378 +// NOTE: This test assumes packed structure layout differs from unpacked +// structure layout. This isn't true, e.g., with the default +// arm-none-elf options. +// { dg-options "-mstructure-size-boundary=8" { target arm-*-* } } class A { diff --git a/gcc/testsuite/g++.dg/init/array16.C b/gcc/testsuite/g++.dg/init/array16.C index fa4c1b65088..bcffa71c347 100644 --- a/gcc/testsuite/g++.dg/init/array16.C +++ b/gcc/testsuite/g++.dg/init/array16.C @@ -1,4 +1,5 @@ // { dg-do run } +// { dg-options "-mstructure-size-boundary=8" { target arm-*-* } } // Copyright (C) 2004 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 8 Dec 2004 @@ -6,6 +7,9 @@ // PR 16681 too much memory used // Origin: Matt LaFary +// NOTE: This test assumes that 4M instances of struct ELT can fit into +// a 5MB array. This isn't true, e.g., with the default +// arm-none-elf options. struct elt { diff --git a/gcc/testsuite/g++.dg/other/crash-4.C b/gcc/testsuite/g++.dg/other/crash-4.C index 986c498e654..900afb7f90b 100644 --- a/gcc/testsuite/g++.dg/other/crash-4.C +++ b/gcc/testsuite/g++.dg/other/crash-4.C @@ -4,6 +4,11 @@ // PR 20678: ICE on error message // Origin: Andrew Pinski pinskia@gcc.gnu.org +// NOTE: This test assumes packed structure layout differs from unpacked +// structure layout. This isn't true, e.g., with the default +// arm-none-elf options. +// { dg-options "-mstructure-size-boundary=8" { target arm-*-* } } + struct a { int m;