public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/106331] [12/13 Regression] Whole array assignment of empty string segfaults with -Og since r12-2633-ge5e164effa30fd2b Date: Tue, 19 Jul 2022 03:37:31 +0000 [thread overview] Message-ID: <bug-106331-4-3p7pPdXOBY@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-106331-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106331 --- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> --- Breakpoint 6, expand_builtin_memset_args (dest=0x7ffff7b6f1a0, val=0x7ffff7f86978, len=0x7ffff7f86960, target=0x7ffff7da7400, mode=E_VOIDmode, orig_exp=0x7ffff7da9d38) at /export/gnu/import/git/gitlab/x86-gcc/gcc/builtins.cc:4200 4200 dest_mem = get_memory_rtx (dest, len); (gdb) call debug_tree (dest) <save_expr 0x7ffff7b6f1a0 type <pointer_type 0x7ffff7f93738 type <array_type 0x7ffff7f932a0 type <integer_type 0x7ffff7db9348 character(kind=1)> string-flag BLK size <integer_cst 0x7ffff7dc00c0 constant 192> unit-size <integer_cst 0x7ffff7dc0090 constant 24> align:8 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type 0x7ffff7f932a0 domain <integer_type 0x7ffff7f931f8> pointer_to_this <pointer_type 0x7ffff7f93738>> public unsigned DI size <integer_cst 0x7ffff7da1c00 constant 64> unit-size <integer_cst 0x7ffff7da1c18 constant 8> align:64 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type 0x7ffff7f93738> side-effects arg:0 <addr_expr 0x7ffff7f79e00 type <pointer_type 0x7ffff7f93738> arg:0 <array_ref 0x7ffff7dabf50 type <array_type 0x7ffff7f932a0> arg:0 <var_decl 0x7ffff7dadb40 a> arg:1 <ssa_name 0x7ffff7da97e0 type <integer_type 0x7ffff7db9738 integer(kind=8)> visited def_stmt _1 = S.0_3 + -1; version:1> x.f90:3:6 start: x.f90:3:6 finish: x.f90:3:6> x.f90:3:6 start: x.f90:3:6 finish: x.f90:3:6> x.f90:3:6 start: x.f90:3:6 finish: x.f90:3:6> (gdb) next 4201 val_mode = TYPE_MODE (unsigned_char_type_node); (gdb) call debug_rtx (dest_mem) (mem/c:BLK (reg:DI 92 [ D.4232 ]) [0 MEM <c_char[0:]> [(void *)&a]+0 A128]) (gdb) Alignment on dest_mem is wrong since array reference isn't constant.
next prev parent reply other threads:[~2022-07-19 3:37 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-07-17 0:59 [Bug fortran/106331] New: Whole array assignment of empty string segfaults with -Og stuart_mentzer at objexx dot com 2022-07-17 19:26 ` [Bug fortran/106331] [12/13 Regression] " anlauf at gcc dot gnu.org 2022-07-18 7:21 ` tkoenig at gcc dot gnu.org 2022-07-18 8:10 ` rguenth at gcc dot gnu.org 2022-07-18 8:56 ` [Bug fortran/106331] [12/13 Regression] Whole array assignment of empty string segfaults with -Og since r12-2633-ge5e164effa30fd2b marxin at gcc dot gnu.org 2022-07-18 14:34 ` hjl.tools at gmail dot com 2022-07-18 14:43 ` hjl.tools at gmail dot com 2022-07-19 3:37 ` hjl.tools at gmail dot com [this message] 2022-07-19 7:41 ` rguenth at gcc dot gnu.org 2022-07-19 9:17 ` cvs-commit at gcc dot gnu.org 2022-07-19 9:18 ` [Bug middle-end/106331] [10/11/12 " rguenth at gcc dot gnu.org 2022-07-19 11:38 ` cvs-commit at gcc dot gnu.org 2022-07-19 11:43 ` [Bug middle-end/106331] [10/11 " rguenth at gcc dot gnu.org 2022-10-11 13:04 ` cvs-commit at gcc dot gnu.org 2022-10-14 10:47 ` [Bug middle-end/106331] [10 " cvs-commit at gcc dot gnu.org 2022-10-14 10:48 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-106331-4-3p7pPdXOBY@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).