diff mbox

[testsuite] PATCH: Correct target selector in gcc.target/i386/nop-mcount.c

Message ID 20150112003132.GB6051@gmail.com
State New
Headers show

Commit Message

H.J. Lu Jan. 12, 2015, 12:31 a.m. UTC
nonpic in target selector in gcc.target/i386/nop-mcount.c is ignored
since {} is misplaced.  This patch properly places {} in target selector.
Tested on Linux/x86.  OK for trunk?

Thanks.

H.J.
---
 gcc/testsuite/gcc.target/i386/nop-mcount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

2015-01-11  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.target/i386/nop-mcount.c: Properly place {} in target
	selector.

Comments

Uros Bizjak Jan. 12, 2015, 8:52 a.m. UTC | #1
On Mon, Jan 12, 2015 at 1:31 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> nonpic in target selector in gcc.target/i386/nop-mcount.c is ignored
> since {} is misplaced.  This patch properly places {} in target selector.
> Tested on Linux/x86.  OK for trunk?
>
> Thanks.
>
> H.J.
> ---
>  gcc/testsuite/gcc.target/i386/nop-mcount.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 2015-01-11  H.J. Lu  <hongjiu.lu@intel.com>
>
>         * gcc.target/i386/nop-mcount.c: Properly place {} in target
>         selector.

This counts as obvious, so OK.

Thanks,
Uros.

> diff --git a/gcc/testsuite/gcc.target/i386/nop-mcount.c b/gcc/testsuite/gcc.target/i386/nop-mcount.c
> index 561792f..139fbb0 100644
> --- a/gcc/testsuite/gcc.target/i386/nop-mcount.c
> +++ b/gcc/testsuite/gcc.target/i386/nop-mcount.c
> @@ -1,5 +1,5 @@
>  /* Test -mnop-mcount */
> -/* { dg-do compile { target { *-*-linux* } && { nonpic } } } */
> +/* { dg-do compile { target { { *-*-linux* } && nonpic } } } */
>  /* { dg-options "-pg -mfentry -mrecord-mcount -mnop-mcount" } */
>  /* { dg-final { scan-assembler-not "__fentry__" } } */
>  /* Origin: Andi Kleen */
> --
> 1.9.3
>
diff mbox

Patch

diff --git a/gcc/testsuite/gcc.target/i386/nop-mcount.c b/gcc/testsuite/gcc.target/i386/nop-mcount.c
index 561792f..139fbb0 100644
--- a/gcc/testsuite/gcc.target/i386/nop-mcount.c
+++ b/gcc/testsuite/gcc.target/i386/nop-mcount.c
@@ -1,5 +1,5 @@ 
 /* Test -mnop-mcount */
-/* { dg-do compile { target { *-*-linux* } && { nonpic } } } */
+/* { dg-do compile { target { { *-*-linux* } && nonpic } } } */
 /* { dg-options "-pg -mfentry -mrecord-mcount -mnop-mcount" } */
 /* { dg-final { scan-assembler-not "__fentry__" } } */
 /* Origin: Andi Kleen */