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

            Bug ID: 84637
           Summary: gcc/dbxout.c:684:14: runtime error: negation of
                    -9223372036854775808 cannot be represented in type
                    'long int'; cast to an unsigned type to negate this
                    value to itself
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

UBSAN boostrap compiler sees:

$  UBSAN_OPTIONS="print_stacktrace=1" ./xgcc -B. 
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/debug/trivial.c -c -gstabs
-fno-diagnostics-show-caret -fdiagnostics-color=never -gstabs -S -o trivial.S
../../gcc/dbxout.c:684:14: runtime error: negation of -9223372036854775808
cannot be represented in type 'long int'; cast to an unsigned type to negate
this value to itself
    #0 0xd673a5 in stabstr_D ../../gcc/dbxout.c:684
    #1 0xd73400 in dbxout_range_type ../../gcc/dbxout.c:1745
    #2 0xd6eba8 in dbxout_type ../../gcc/dbxout.c:2042
    #3 0xd75c43 in dbxout_symbol(tree_node*, int) ../../gcc/dbxout.c:2865
    #4 0xd783b2 in dbxout_init ../../gcc/dbxout.c:1079
    #5 0x74faa0 in lang_dependent_init ../../gcc/toplev.c:1920
    #6 0x74faa0 in do_compile ../../gcc/toplev.c:2118
    #7 0x74faa0 in toplev::main(int, char**) ../../gcc/toplev.c:2267
    #8 0x751cba in main ../../gcc/main.c:39
    #9 0x7fb2075a06e4 in __libc_start_main (/lib64/libc.so.6+0x206e4)
    #10 0x751de8 in _start
(/home/marxin/Programming/gcc/objdir/gcc/cc1+0x751de8)

Reply via email to