mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-22 21:51:36 +08:00
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:
parent
a75ea627dd
commit
9145559717
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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")));
|
||||
|
Loading…
x
Reference in New Issue
Block a user