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 middle-end/94539] [10 Regression] gcc.dg/alias-14.c fails on gcc 10, succeeds on gcc 9, when turned into an execution test Date: Tue, 14 Apr 2020 11:15:42 +0000 [thread overview] Message-ID: <bug-94539-4-9jX2YP7jAO@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-94539-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94539 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Like diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index df9ba0de0d6..2850141303e 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -831,6 +831,15 @@ same_type_for_tbaa (tree type1, tree type2) && TREE_CODE (type2) == ARRAY_TYPE) return -1; + /* void * is compatible with all other pointers. */ + if (POINTER_TYPE_P (type1) + && POINTER_TYPE_P (type2) + && (TREE_CODE (TREE_TYPE (type1)) == VOID_TYPE + || TYPE_STRUCTURAL_EQUALITY_P (TREE_TYPE (type1)) + || TREE_CODE (TREE_TYPE (type2)) == VOID_TYPE + || TYPE_STRUCTURAL_EQUALITY_P (TREE_TYPE (type2)))) + return -1; + /* ??? In Ada, an lvalue of an unconstrained type can be used to access an object of one of its constrained subtypes, e.g. when a function with an unconstrained parameter passed by reference is called on an object and
next prev parent reply other threads:[~2020-04-14 11:15 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-04-09 12:37 [Bug middle-end/94539] New: " ppalka at gcc dot gnu.org 2020-04-09 13:28 ` [Bug middle-end/94539] [10 Regression] " rguenth at gcc dot gnu.org 2020-04-09 14:02 ` hubicka at gcc dot gnu.org 2020-04-09 16:37 ` ppalka at gcc dot gnu.org 2020-04-14 6:14 ` rguenth at gcc dot gnu.org 2020-04-14 6:14 ` rguenth at gcc dot gnu.org 2020-04-14 11:15 ` rguenth at gcc dot gnu.org [this message] 2020-04-15 7:19 ` cvs-commit at gcc dot gnu.org 2020-04-15 7:20 ` 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-94539-4-9jX2YP7jAO@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).