[testsuite]: Skip tests for targets with int < 32 bits

Jakub Jelinek jakub@redhat.com
Mon Jun 13 19:09:00 GMT 2011


On Thu, Jun 09, 2011 at 06:27:56PM +0200, Georg-Johann Lay wrote:
> This patch fixes testsuite failures because the testcases assume
> sizeof(int) >= 4.
> 
> 	* gcc.c-torture/compile/pr49029.c: Add dg-require-effective-target
> 	int32plus
> 	* gcc.c-torture/compile/pr49163.c: Ditto.

> Index: gcc.c-torture/compile/pr49029.c
> ===================================================================
> --- gcc.c-torture/compile/pr49029.c	(Revision 174701)
> +++ gcc.c-torture/compile/pr49029.c	(Arbeitskopie)
> @@ -1,3 +1,4 @@
> +/* { dg-require-effective-target int32plus } */
>  /* PR middle-end/49029 */
>  struct S { volatile unsigned f : 11; signed g : 30; } __attribute__((packed));
>  struct T { volatile struct S h; } __attribute__((packed)) a;

Please keep the PR number comment as the first thing in the files.

> Index: gcc.c-torture/compile/pr49163.c
> ===================================================================
> --- gcc.c-torture/compile/pr49163.c	(Revision 174701)
> +++ gcc.c-torture/compile/pr49163.c	(Arbeitskopie)
> @@ -1,3 +1,4 @@
> +/* { dg-require-effective-target int32plus } */
>  /* PR target/49163 */
>  struct S1
>  {


	Jakub



More information about the Gcc-patches mailing list