c-output-mod-2.c: Fix for -fPIC.

[gcc/testsuite/]
2013-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* gcc.target/aarch64/c-output-mod-2.c: Fix for -fPIC.
	* gcc.target/aarch64/c-output-mod-3.c: Likewise.

From-SVN: r204019
This commit is contained in:
Kyrylo Tkachov 2013-10-24 14:44:00 +00:00 committed by Kyrylo Tkachov
parent 27bd251b64
commit a079f50a72
3 changed files with 10 additions and 16 deletions

View File

@ -1,3 +1,8 @@
2013-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gcc.target/aarch64/c-output-mod-2.c: Fix for -fPIC.
* gcc.target/aarch64/c-output-mod-3.c: Likewise.
2013-10-24 Nick Clifton <nickc@redhat.com>
* gcc.dg/20020312-2.c: No PIC register for RL78 or MSP430.

View File

@ -1,15 +1,9 @@
/* { dg-do compile } */
struct tracepoint {
int dummy;
int state;
};
static struct tracepoint tp;
void
test (void)
{
__asm__ ("@ %c0" : : "i" (&tp));
__asm__ ("@ %c0" : : "S" (test));
}
/* { dg-final { scan-assembler "@ tp" } } */
/* { dg-final { scan-assembler "@ test" } } */

View File

@ -1,15 +1,10 @@
/* { dg-do compile } */
struct tracepoint {
int dummy;
int state;
};
static struct tracepoint tp;
/* { dg-options "-Wno-pointer-arith" } */
void
test (void)
{
__asm__ ("@ %c0" : : "i" (&tp.state));
__asm__ ("@ %c0" : : "S" (&test + 4));
}
/* { dg-final { scan-assembler "@ tp\\+4" } } */
/* { dg-final { scan-assembler "@ test\\+4" } } */