From a978134eac8ab9a3248405b4114cff2e957ed812 Mon Sep 17 00:00:00 2001 From: Prakhar Bahuguna Date: Fri, 19 May 2017 13:04:27 +0000 Subject: [PATCH] [ARM] Only test tls-disable-literal-pool.c if target supports native TLS 2017-05-19 Prakhar Bahuguna gcc/testsuite/ * gcc.target/arm/tls-disable-literal-pool.c: Change require-effective-target to tls_native. Move dg-error to return statement line and change to dg-message. From-SVN: r248270 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/arm/tls-disable-literal-pool.c | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a8adc919506..01319bdceda 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-05-19 Prakhar Bahuguna + + * gcc.target/arm/tls-disable-literal-pool.c: Change + require-effective-target to tls_native. + Move dg-error to return statement line and change to dg-message. + 2017-05-19 Richard Biener PR c++/80593 diff --git a/gcc/testsuite/gcc.target/arm/tls-disable-literal-pool.c b/gcc/testsuite/gcc.target/arm/tls-disable-literal-pool.c index fe14a6b132c..283201fdd97 100644 --- a/gcc/testsuite/gcc.target/arm/tls-disable-literal-pool.c +++ b/gcc/testsuite/gcc.target/arm/tls-disable-literal-pool.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-require-effective-target tls } */ +/* { dg-require-effective-target tls_native } */ /* { dg-require-effective-target arm_cortex_m } */ /* { dg-require-effective-target arm_thumb2_ok } */ /* { dg-options "-mslow-flash-data" } */ @@ -9,7 +9,6 @@ __thread int x = 0; int bar () { - return x; + return x; /* { dg-message "sorry, unimplemented: accessing thread-local storage is not currently supported with -mpure-code or -mslow-flash-data" } */ } -/* { dg-error "accessing thread-local storage is not currently supported with -mpure-code or -mslow-flash-data" "" { target *-*-* } 12 } */ -- 2.30.2