mips.c (mips_in_small_data_p): Return false if TARGET_ABICALLS.

* config/mips/mips.c (mips_in_small_data_p): Return false if
	TARGET_ABICALLS.

testsuite/
	* gcc.dg/torture/mips-sdata-1.c: Restrict to mips*-*-elf*.

From-SVN: r79060
This commit is contained in:
Richard Sandiford 2004-03-07 10:50:11 +00:00 committed by Richard Sandiford
parent a75ea627dd
commit 9145559717
4 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-03-07 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.c (mips_in_small_data_p): Return false if
TARGET_ABICALLS.
2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
* config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push

View File

@ -7303,6 +7303,11 @@ mips_in_small_data_p (tree decl)
if (TREE_CODE (decl) == STRING_CST || TREE_CODE (decl) == FUNCTION_DECL)
return false;
/* We don't yet generate small-data references for -mabicalls. See related
-G handling in override_options. */
if (TARGET_ABICALLS)
return false;
if (TREE_CODE (decl) == VAR_DECL && DECL_SECTION_NAME (decl) != 0)
{
const char *name;

View File

@ -1,3 +1,7 @@
2004-03-07 Richard Sandiford <rsandifo@redhat.com>
* gcc.dg/torture/mips-sdata-1.c: Restrict to mips*-*-elf*.
2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
* gcc.dg/20040306-1.c: New test.

View File

@ -1,6 +1,6 @@
/* Check that sdata-accesses are applied regardless of size or ABI. */
/* { dg-options -mexplicit-relocs } */
/* { dg-do compile { target mips*-*-* } } */
/* { dg-do compile { target mips*-*-elf* } } */
struct s { int x[4]; };
struct s my_struct __attribute__((__section__(".sdata")));