Commit a079f50a by Kyrylo Tkachov Committed by Kyrylo Tkachov

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
parent 27bd251b
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.
......
/* { 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" } } */
/* { 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" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment