This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Testsuite: fix several ARM tests
- From: Josh Conner <jconner at apple dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 30 Aug 2005 11:17:44 -0700
- Subject: [PATCH] Testsuite: fix several ARM tests
The following g++.dg tests fail on arm-none-elf, all because of the
default behavior of padding structure members to 32-bit boundaries:
* ext/packed8.C (depends on packed struct having a different
layout from an unpacked struct)
* init/array16.C (depends on an array of ~4M classes containing
only a single char each fitting within another 5M array)
* other/crash-4.C (depends on packed struct having a different
layout from an unpacked struct)
The attached patch addresses these issues by adding the -mstructure-
size-boundary=8 option to the command-line for arm-*-* targets.
Verified that this patch addresses the problems on arm-none-elf, and
on i686-pc-linux-gnu that the tests work as before.
OK for mainline?
- Josh
2005-08-30 Josh Conner <jconner@apple.com>
* 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.
Attachment:
mssb.patch
Description: Binary data