public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107994] [12/13 Regression] ICE in fold_convert_loc, at fold-const.cc:2606 Date: Tue, 06 Dec 2022 19:09:22 +0000 [thread overview] Message-ID: <bug-107994-4-jGoxXIXNNr@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107994-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107994 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This should fix the issue (have not tested it yet): diff --git a/gcc/gimplify.cc b/gcc/gimplify.cc index 02415cb1b5c..ae13f9fd9e6 100644 --- a/gcc/gimplify.cc +++ b/gcc/gimplify.cc @@ -17098,6 +17098,9 @@ gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p, memcmp for them would be very inefficient at best, and is plain wrong if bitfields are involved. */ { + if (error_operand_p (TREE_OPERAND (*expr_p, 1)) + return GS_ERROR; + tree type = TREE_TYPE (TREE_OPERAND (*expr_p, 1)); /* Vector comparisons need no boolification. */
next prev parent reply other threads:[~2022-12-06 19:09 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-12-06 18:04 [Bug c/107994] New: " gscfq@t-online.de 2022-12-06 18:08 ` [Bug c/107994] " pinskia at gcc dot gnu.org 2022-12-06 19:09 ` pinskia at gcc dot gnu.org [this message] 2022-12-21 12:13 ` cvs-commit at gcc dot gnu.org 2023-01-24 14:27 ` [Bug c/107994] [12 " cvs-commit at gcc dot gnu.org 2023-01-24 14:27 ` 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-107994-4-jGoxXIXNNr@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).