http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55247

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-09 05:08:29 
UTC ---
[hjl@gnu-tools-1 gcc]$ cat /export/gnu/import/delta-2006.08.03/x.c
typedef unsigned int uint32_t;
typedef unsigned int uintptr_t;
typedef uint32_t Elf32_Word;
typedef uint32_t Elf32_Addr;
typedef struct {
  Elf32_Word st_name;
  Elf32_Addr st_value;
  Elf32_Word st_size;
  unsigned char st_other;
} Elf32_Sym;
typedef struct {
  Elf32_Word r_info;
}
Elf32_Rela;
typedef struct {
  union     {
    Elf32_Addr d_ptr;
  }
  d_un;
} Elf32_Dyn;
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;
  symbind32 (&sym);
}
[hjl@gnu-tools-1 gcc]$ ./xgcc -B./ -mx32 -mtune=generic -march=x86-64
-maddress-mode=long -c -std=gnu99 -fgnu89-inline  -O3    -fPIC  -mno-sse
-mno-mmx    /export/gnu/import/delta-2006.08.03/x.c 
/export/gnu/import/delta-2006.08.03/x.c: In function ‘_dl_profile_fixup’:
/export/gnu/import/delta-2006.08.03/x.c:35:1: internal compiler error: Max.
number of generated reload insns per insn is achieved (90)

 }
 ^
0x8d78cd lra_constraints(bool)
    /export/gnu/import/git/gcc/gcc/lra-constraints.c:3381
0x8c8169 lra(_IO_FILE*)
    /export/gnu/import/git/gcc/gcc/lra.c:2274
0x87dc24 do_reload
    /export/gnu/import/git/gcc/gcc/ira.c:4624
0x87de32 rest_of_handle_reload
    /export/gnu/import/git/gcc/gcc/ira.c:4737
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
[hjl@gnu-tools-1 gcc]$ ./xgcc -B./ -mx32 -mtune=generic -march=x86-64
-maddress-mode=long -c -std=gnu99 -fgnu89-inline  -O3    -fPIC  -mno-sse
-mno-mmx    /export/gnu/import/delta-2006.08.03/x.c -mno-lra
[hjl@gnu-tools-1 gcc]$

Reply via email to