https://sourceware.org/bugzilla/show_bug.cgi?id=17753

            Bug ID: 17753
           Summary: mep-elf gas SEGVs
           Product: binutils
           Version: 2.25
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: yselkowitz at cygwin dot com
              Host: x86_64-cygwin
            Target: mep-elf
             Build: x86_64-cygwin

Created attachment 8023
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8023&action=edit
result of mep-elf gcc/xgcc -B gcc -S on "int main(void){return 0;}"

mep-elf gas from binutils 2.25 is failing to compile the simplest assembly;
simple test case attached.

$ gdb --args
../cross-binutils/cross-binutils-2.25-1.x86_64/build/mep-elf/gas/.libs/as-new 
mep-ret0.s
GNU gdb (GDB) 7.8
[snip]
Reading symbols from mep-elf/gas/.libs/as-new...done.
(gdb) r
Starting program: mep-elf/gas/.libs/as-new mep-ret0.s
[New Thread 15824.0x27bc]
[New Thread 15824.0x3a54]

Program received signal SIGSEGV, Segmentation fault.
cgen_bitset_copy (mask=mask@entry=0x100000000)
    opcodes/cgen-bitset.c:152
152       newmask = cgen_bitset_create ((mask->length * 8) - 1);
(gdb) bt
#0  cgen_bitset_copy (mask=mask@entry=0x100000000)
    at opcodes/cgen-bitset.c:152
#1  0x000000010042e862 in mep_cgen_cpu_open (arg_type=<optimized out>,
    arg_type@entry=CGEN_CPU_OPEN_MACHS)
    at opcodes/mep-desc.c:6317
#2  0x0000000100424ee5 in md_begin ()
    at gas/config/tc-mep.c:489
#3  0x000000010049fa41 in perform_an_assembly_pass (argv=0x60003aa90, argc=2)
    at gas/as.c:1082
#4  main (argc=2, argv=0x60003aa90)
    at gas/as.c:1226

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to