diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2012-11-10 18:54:58 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2012-11-10 10:54:58 -0800 |
commit | c76b1db623ae94949458510830ef89d0cd0dd158 (patch) | |
tree | 1ea83be8c2f92549b86f23cbdc3d08a335e48aed | |
parent | 01a88d3557518085b013f14551f641a7dbddf25c (diff) | |
download | gcc-c76b1db623ae94949458510830ef89d0cd0dd158.zip gcc-c76b1db623ae94949458510830ef89d0cd0dd158.tar.gz gcc-c76b1db623ae94949458510830ef89d0cd0dd158.tar.bz2 |
Compile pr55247.c with -mno-sse -mno-mmx
* gcc.target/i386/pr55247.c: Require maybe_x32 target. Add
-mno-sse -mno-mmx to dg-options. Reformat.
From-SVN: r193394
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr55247.c | 15 |
2 files changed, 11 insertions, 9 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 85133e9..c472765 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-11-10 H.J. Lu <hongjiu.lu@intel.com> + + * gcc.target/i386/pr55247.c: Require maybe_x32 target. Add + -mno-sse -mno-mmx to dg-options. Reformat. + 2012-11-10 David Edelsohn <dje.gcc@gmail.com> * c-c++-common/scal-to-vec2.c: Ignore non-standard ABI message. diff --git a/gcc/testsuite/gcc.target/i386/pr55247.c b/gcc/testsuite/gcc.target/i386/pr55247.c index 4b5e626..6259ea4 100644 --- a/gcc/testsuite/gcc.target/i386/pr55247.c +++ b/gcc/testsuite/gcc.target/i386/pr55247.c @@ -1,8 +1,8 @@ /* { dg-do compile { target { ! { ia32 } } } } */ -/* { dg-options "-O2 -mx32 -maddress-mode=long -mno-sse" } */ +/* { dg-require-effective-target maybe_x32 } */ +/* { dg-options "-O2 -mno-sse -mno-mmx -mx32 -maddress-mode=long" } */ typedef unsigned int uint32_t; -typedef unsigned int uintptr_t; typedef uint32_t Elf32_Word; typedef uint32_t Elf32_Addr; typedef struct { @@ -16,7 +16,7 @@ typedef struct { } Elf32_Rela; typedef struct { - union { + union { Elf32_Addr d_ptr; } d_un; @@ -24,15 +24,12 @@ typedef struct { struct link_map { Elf32_Dyn *l_info[34]; }; -typedef struct link_map *lookup_t; extern void symbind32 (Elf32_Sym *); void _dl_profile_fixup (struct link_map *l, Elf32_Word reloc_arg) { - const Elf32_Sym *const symtab = (const void *) (l)->l_info[6]->d_un.d_ptr; - const Elf32_Rela *const reloc = (const void *) ((l)->l_info[23]->d_un.d_ptr + reloc_arg * sizeof (Elf32_Rela)); - const Elf32_Sym *refsym = &symtab[((reloc->r_info) >> 8)]; - const Elf32_Sym *defsym = refsym; - Elf32_Sym sym = *defsym; + const Elf32_Sym *const symtab = (const void *) l->l_info[6]->d_un.d_ptr; + const Elf32_Rela *const reloc = (const void *) (l->l_info[23]->d_un.d_ptr + reloc_arg * sizeof (Elf32_Rela)); + Elf32_Sym sym = symtab[(reloc->r_info) >> 8]; symbind32 (&sym); } |