https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66038

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikestump at comcast dot net
   Target Milestone|---                         |5.2
            Summary|[5.1.0 regression] (stage   |[5 regression] (stage 2)
                   |2) build/genmatch segfaults |build/genmatch segfaults in
                   |in operand::gen_transform   |operand::gen_transform
                   |(gcc/hash-table.h:223)      |(gcc/hash-table.h:223)

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Douglas Mencken from comment #5)
> (In reply to rguent...@suse.de from comment #4)
> > Can you build stage2 with debuginfo?  (--without-build-config at 
> > configure)
> > 
> > That should imrpove the backtrace.
> > 
> > Thanks,
> > Richard.
> 
> Sure I can. Here you go:
> 
> (gdb) bt
> #0  0x0000e208 in operand::gen_transform () at
> ../../gcc-5.1.0/gcc/hash-table.h:223
> #1  0x00008530 in get_operator (id=0x808bec "tcc_comparison") at
> ../../gcc-5.1.0/gcc/genmatch.c:1495
> #2  0x00009ef8 in parser::parse_operator_list (this=0xbffff698) at
> ../../gcc-5.1.0/gcc/genmatch.c:2941
> #3  0x0000d190 in parser::parse_pattern (this=0xbffff698) at
> ../../gcc-5.1.0/gcc/hash-table.h:223
> #4  0x0000e19c in parser::parser (this=0xbffff698, r_=0xbffff4f8) at
> ../../gcc-5.1.0/gcc/hash-table.h:223
> #5  0x0005f3ac in main (argc=3146720, argv=0xbffff4f8) at
> ../../gcc-5.1.0/gcc/genmatch.c:3711
> Current language:  auto; currently c++

Huh, the line numbers don't make any sense.

I wonder what

ld warning: atom sorting error for operand::gen_transform(__sFILE*, char
const*, bool, int, char const*, capture_info*, dt_operand**, bool) and
hash_table<id_base, xcallocator, false>::find_with_hash(id_base const*,
unsigned int) in build/genmatch.o

means and if that explains things?  Like it ends up calling the wrong
function because of a linker bug?  Can you paste the linker command for
linking stage2 build/genmatch and the output when -v -Wl,-v -Wl,-debug is
appended?

As far as I understand ld on ppc-darwin is a GNU ld variant, correct?
I can't find anything in current binutils though.  Mike?

Reply via email to