public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/100732] [11/12 Regression] ICE with -Wall: in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:824 since r11-959-gb825a22890740f34 Date: Tue, 25 May 2021 07:28:43 +0000 [thread overview] Message-ID: <bug-100732-4-o3bTokUQgU@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-100732-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100732 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |11.2 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- #3 0x0000000001649007 in maybe_warn_pass_by_reference (stmt=0x7ffff7ff5cf0, wlims=...) at /home/rguenther/src/gcc3/gcc/tree-ssa-uninit.c:545 545 ao_ref_init_from_ptr_and_size (&ref, arg, access_size); (gdb) p arg $2 = <ssa_name 0x7ffff6575d80 2> (gdb) p debug_tree (arg) <ssa_name 0x7ffff6575d80 type <integer_type 0x7ffff65835e8 int public SI size <integer_cst 0x7ffff656af18 constant 32> unit-size <integer_cst 0x7ffff656af30 constant 4> align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7ffff65835e8 precision:32 min <integer_cst 0x7ffff656aed0 -2147483648> max <integer_cst 0x7ffff656aee8 2147483647> pointer_to_this <pointer_type 0x7ffff658b9d8>> visited var <parm_decl 0x7ffff66c4000 i> def_stmt GIMPLE_NOP version:2> that's not a pointer. Looks like the code blindly works on call arguments w/o double-checking their type.
next prev parent reply other threads:[~2021-05-25 7:28 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-23 17:07 [Bug c/100732] New: ICE: in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:824 cnsun at uwaterloo dot ca 2021-05-24 7:35 ` [Bug tree-optimization/100732] [11/12 Regression] ICE with -Wall: in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:824 since r11-959-gb825a22890740f34 marxin at gcc dot gnu.org 2021-05-25 7:28 ` rguenth at gcc dot gnu.org [this message] 2021-05-26 23:35 ` msebor at gcc dot gnu.org 2021-06-04 16:50 ` cvs-commit at gcc dot gnu.org 2021-06-04 16:51 ` [Bug tree-optimization/100732] [11 Regression] ICE on sprintf %s with integer argument msebor at gcc dot gnu.org 2021-06-17 20:08 ` cvs-commit at gcc dot gnu.org 2021-06-17 20:10 ` msebor 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-100732-4-o3bTokUQgU@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).