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

--- Comment #11 from seurer at gcc dot gnu.org ---
The dump came from here:

 /home/seurer/gcc/build/gcc-test2/gcc/testsuite/g++/../../lto1 -quiet -dumpdir
./ -dumpbase vla-1.exe.ltrans0 -mcpu=power8 -mcpu=power8 -auxbase-strip
/tmp/vla-1.exe.q5WGk7.ltrans0.ltrans.o -O2 -O2 -version
-fdiagnostics-color=never -fno-openmp -fno-openacc -fno-pie
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fmessage-length=0 -fuse-linker-plugin -fno-fat-lto-objects
-fsanitize=undefined -fltrans @/tmp/ccQ2h1Pd -o /tmp/ccNPVUpG.s
GNU GIMPLE (GCC) version 10.0.0 20190725 (experimental) [trunk revision 273783]
(powerpc64-unknown-linux-gnu)
        compiled by GNU C version 7.2.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU GIMPLE (GCC) version 10.0.0 20190725 (experimental) [trunk revision 273783]
(powerpc64-unknown-linux-gnu)
        compiled by GNU C version 7.2.0, GMP version 6.1.0, MPFR version 3.1.4,
MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
 <mem_ref 0x3fffb5e1d570
    type <integer_type 0x3fffb5c80738 int public SI
        size <integer_cst 0x3fffb5c51068 constant 32>
        unit-size <integer_cst 0x3fffb5c51080 constant 4>
        align:32 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type
0x3fffb5c80738 precision:32 min <integer_cst 0x3fffb5c51020 -2147483648> max
<integer_cst 0x3fffb5c51038 2147483647>
        pointer_to_this <pointer_type 0x3fffb5c81ae8>>

    arg:0 <addr_expr 0x3fffb5c685a0
        type <pointer_type 0x3fffb5e48dc0 type <array_type 0x3fffb5e48d18>
            unsigned DI
            size <integer_cst 0x3fffb5c50e28 constant 64>
            unit-size <integer_cst 0x3fffb5c50e40 constant 8>
            align:64 warn_if_not_align:0 symtab:0 alias-set -1
structural-equality>

        arg:0 <var_decl 0x3fffb7fd2370 D.3146 type <array_type 0x3fffb5e48d18>
            addressable used ignored SI
/home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ubsan/vla-1.C:9:5 size
<integer_cst 0x3fffb5c51068 32> unit-size <integer_cst 0x3fffb5c51080 4>
            align:32 warn_if_not_align:0 context <function_decl 0x3fffb5e5f100
main>>>
    arg:1 <integer_cst 0x3fffb5c5b2b0 type <pointer_type 0x3fffb5c81ae8>
constant 0>>
 <mem_ref 0x3fffb5e1d5c0
    type <integer_type 0x3fffb5c80738 int public SI
        size <integer_cst 0x3fffb5c51068 constant 32>
        unit-size <integer_cst 0x3fffb5c51080 constant 4>
        align:32 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type
0x3fffb5c80738 precision:32 min <integer_cst 0x3fffb5c51020 -2147483648> max
<integer_cst 0x3fffb5c51038 2147483647>
        pointer_to_this <pointer_type 0x3fffb5c81ae8>>

    arg:0 <addr_expr 0x3fffb5c68560
        type <pointer_type 0x3fffb5e48dc0 type <array_type 0x3fffb5e48d18>
            unsigned DI
            size <integer_cst 0x3fffb5c50e28 constant 64>
            unit-size <integer_cst 0x3fffb5c50e40 constant 8>
            align:64 warn_if_not_align:0 symtab:0 alias-set -1
structural-equality>

        arg:0 <var_decl 0x3fffb7fd2370 D.3146 type <array_type 0x3fffb5e48d18>
            addressable used ignored SI
/home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ubsan/vla-1.C:9:5 size
<integer_cst 0x3fffb5c51068 32> unit-size <integer_cst 0x3fffb5c51080 4>
            align:32 warn_if_not_align:0 context <function_decl 0x3fffb5e5f100
main>>>
    arg:1 <integer_cst 0x3fffb5c5b268 type <pointer_type 0x3fffb5c81ae8>
constant 4>>
In function 'f',
    inlined from 'main' at
/home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ubsan/vla-1.C:11:4:
/home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ubsan/vla-1.C:6:24: warning:
writing 4 bytes into a region of size 0 [-Wstringop-overflow=]

Reply via email to