Commit 0dc48e89 by Ben Elliston Committed by Ben Elliston

ppc-sdata-1.c: Update to consider the possibility of the compiler referring to register 0 when...

	* gcc.dg/ppc-sdata-1.c: Update to consider the possibility of the
	compiler referring to register 0 when accessing sdata.  The linker
	now patches things up.

From-SVN: r89195
parent 0ca541aa
2004-10-18 Ben Elliston <bje@au.ibm.com>
* gcc.dg/ppc-sdata-1.c: Update to consider the possibility of the
compiler referring to register 0 when accessing sdata. The linker
now patches things up.
2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
PR c/17529
......
......@@ -2,8 +2,8 @@
/* { dg-options "-O2 -fno-common -G 8 -meabi -msdata=eabi" } */
/* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata," } } */
/* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata2," } } */
/* { dg-final { scan-assembler "sdat@sdarel\\(13\\)" } } */
/* { dg-final { scan-assembler "sdat2@sda21\\(2\\)" } } */
/* { dg-final { scan-assembler "sdat@sda21\\((13|0)\\)" } } */
/* { dg-final { scan-assembler "sdat2@sda21\\((2|0)\\)" } } */
int sdat = 2;
......
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