Patchwork Require alias support for gcc.target/i386/alias-1.c testcase

login
register
mail settings
Submitter Jack Howarth
Date Nov. 14, 2010, 8:52 p.m.
Message ID <20101114205250.GA2243@bromo.med.uc.edu>
Download mbox | patch
Permalink /patch/71149/
State New
Headers show

Comments

Jack Howarth - Nov. 14, 2010, 8:52 p.m.
The attached patch eliminates the failures of the new gcc.target/i386/alias-1.c
testcase...

FAIL: gcc.target/i386/alias-1.c (test for excess errors)
FAIL: gcc.target/i386/alias-1.c scan-assembler wobbly
FAIL: gcc.target/i386/alias-1.c scan-assembler jelly

on targets like darwin which lack alias support in their object file format
by addition of dg-require-alias to the testcase. Tested on x86_64-appledarwin10.
Okay for gcc trunk?
        Jack

2011-11-14  Jack Howarth  <howarth@bromo.med.uc.edu>

	* gcc.target/i386/alias-1.c: Require alias support.
Richard Guenther - Nov. 14, 2010, 10:35 p.m.
On Sun, Nov 14, 2010 at 9:52 PM, Jack Howarth <howarth@bromo.med.uc.edu> wrote:
>  The attached patch eliminates the failures of the new gcc.target/i386/alias-1.c
> testcase...
>
> FAIL: gcc.target/i386/alias-1.c (test for excess errors)
> FAIL: gcc.target/i386/alias-1.c scan-assembler wobbly
> FAIL: gcc.target/i386/alias-1.c scan-assembler jelly
>
> on targets like darwin which lack alias support in their object file format
> by addition of dg-require-alias to the testcase. Tested on x86_64-appledarwin10.
> Okay for gcc trunk?
>        Jack

Ok.

Thanks,
Richard.

> 2011-11-14  Jack Howarth  <howarth@bromo.med.uc.edu>
>
>        * gcc.target/i386/alias-1.c: Require alias support.
>
>
> Index: gcc/testsuite/gcc.target/i386/alias-1.c
> ===================================================================
> --- gcc/testsuite/gcc.target/i386/alias-1.c     (revision 166736)
> +++ gcc/testsuite/gcc.target/i386/alias-1.c     (working copy)
> @@ -1,4 +1,5 @@
>  /* { dg-do compile } */
> +/* { dg-require-alias "" } */
>
>  int yum;
>  void dessert (void) { ++yum; }
>
IainS - Nov. 23, 2010, 2:58 p.m.
On 14 Nov 2010, at 22:35, Richard Guenther wrote:

> On Sun, Nov 14, 2010 at 9:52 PM, Jack Howarth <howarth@bromo.med.uc.edu 
> > wrote:
>>  The attached patch eliminates the failures of the new gcc.target/ 
>> i386/alias-1.c
>> testcase...
>>
>> FAIL: gcc.target/i386/alias-1.c (test for excess errors)
>> FAIL: gcc.target/i386/alias-1.c scan-assembler wobbly
>> FAIL: gcc.target/i386/alias-1.c scan-assembler jelly
>>
>> on targets like darwin which lack alias support in their object  
>> file format
>> by addition of dg-require-alias to the testcase. Tested on x86_64- 
>> appledarwin10.
>> Okay for gcc trunk?
>>        Jack
>
> Ok.
applied as r167079
Iain

Patch

Index: gcc/testsuite/gcc.target/i386/alias-1.c
===================================================================
--- gcc/testsuite/gcc.target/i386/alias-1.c	(revision 166736)
+++ gcc/testsuite/gcc.target/i386/alias-1.c	(working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-do compile } */
+/* { dg-require-alias "" } */
 
 int yum;
 void dessert (void) { ++yum; }