[Bug tree-optimization/103456] [12 Regression] gcc/gcc.c:9502:8: runtime error: load of address 0x0000009f5037 with insufficient space for an object of type 'const char' since r12-5548-g4a2007594cff78fba6a29a0ec07fad31a7af19ff

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 1 08:31:15 GMT 2021


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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Siddhesh Poyarekar
<siddhesh@gcc.gnu.org>:

https://gcc.gnu.org/g:da9386f9a70ac494939650c0e0a0e4168a6f76d8

commit r12-5649-gda9386f9a70ac494939650c0e0a0e4168a6f76d8
Author: Siddhesh Poyarekar <siddhesh@gotplt.org>
Date:   Wed Dec 1 12:58:12 2021 +0530

    tree-optimization/103456 - Record only successes from object_sizes_set

    Avoid overwriting osi->changed if object_sizes_set does not update the
    size, so that a previous success in the same pass is not overwritten.
    This fixes the bootstrap-ubsan build config, which was failing due to
    incorrect object size.

    gcc/ChangeLog:

            PR tree-optimization/103456
            * tree-object-size.c (merge_object_sizes): Update osi->changed
            only if object_sizes_set succeeded.

    gcc/testsuite/ChangeLog:

            PR tree-optimization/103456
            * gcc.dg/ubsan/pr103456.c: New test.

    Co-authored-by: Martin Liška <mliska@suse.cz>
    Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>


More information about the Gcc-bugs mailing list