public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/99212] [11 Regression] gcc.dg/analyzer/data-model-1.c line 971 Date: Fri, 02 Jul 2021 19:22:19 +0000 [thread overview] Message-ID: <bug-99212-4-MzP4Hmccs8@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-99212-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99212 --- Comment #22 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by David Malcolm <dmalcolm@gcc.gnu.org>: https://gcc.gnu.org/g:21b470a9c976f3db7cce6d58a07c58a58676f93c commit r11-8681-g21b470a9c976f3db7cce6d58a07c58a58676f93c Author: David Malcolm <dmalcolm@redhat.com> Date: Fri Jul 2 15:19:46 2021 -0400 analyzer: fix bitfield endianness issues [PR99212,PR101082] Looks like my patch for PR analyzer/99212 implicitly assumed little-endian, which the following patch fixes. Fixes bitfields-1.c on: - armeb-none-linux-gnueabihf - cris-elf - powerpc64-darwin - s390-linux-gnu gcc/analyzer/ChangeLog: PR analyzer/99212 PR analyzer/101082 * engine.cc: Include "target.h". (impl_run_checkers): Log BITS_BIG_ENDIAN, BYTES_BIG_ENDIAN, and WORDS_BIG_ENDIAN. * region-model-manager.cc (region_model_manager::maybe_fold_binop): Move support for masking via ARG0 & CST into... (region_model_manager::maybe_undo_optimize_bit_field_compare): ...this new function. Flatten by converting from nested conditionals to a series of early return statements to reject failures. Reject if type is not unsigned_char_type_node. Handle BYTES_BIG_ENDIAN when determining which bits are bound in the binding_map. * region-model.h (region_model_manager::maybe_undo_optimize_bit_field_compare): New decl. * store.cc (bit_range::dump): New function. * store.h (bit_range::dump): New decl. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
next prev parent reply other threads:[~2021-07-02 19:22 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-02-23 3:35 [Bug analyzer/99212] New: " hp at gcc dot gnu.org 2021-02-23 8:27 ` [Bug analyzer/99212] " rguenth at gcc dot gnu.org 2021-02-23 14:49 ` hp at gcc dot gnu.org 2021-02-25 23:02 ` dmalcolm at gcc dot gnu.org 2021-02-25 23:03 ` dmalcolm at gcc dot gnu.org 2021-02-26 12:58 ` rguenth at gcc dot gnu.org 2021-02-26 14:23 ` dmalcolm at gcc dot gnu.org 2021-02-26 14:33 ` dmalcolm at gcc dot gnu.org 2021-04-04 21:57 ` hp at gcc dot gnu.org 2021-04-09 8:24 ` rguenth at gcc dot gnu.org 2021-04-09 23:11 ` hp at gcc dot gnu.org 2021-04-10 17:45 ` dmalcolm at gcc dot gnu.org 2021-04-12 12:59 ` dmalcolm at gcc dot gnu.org 2021-04-13 2:23 ` hp at gcc dot gnu.org 2021-04-13 2:23 ` cvs-commit at gcc dot gnu.org 2021-04-27 11:40 ` [Bug analyzer/99212] [11/12 " jakub at gcc dot gnu.org 2021-05-04 12:32 ` rguenth at gcc dot gnu.org 2021-06-08 18:46 ` cvs-commit at gcc dot gnu.org 2021-06-08 19:30 ` [Bug analyzer/99212] [11 " dmalcolm at gcc dot gnu.org 2021-06-15 8:05 ` stefansf at linux dot ibm.com 2021-06-15 14:28 ` dmalcolm at gcc dot gnu.org 2021-06-15 21:54 ` cvs-commit at gcc dot gnu.org 2021-06-18 7:36 ` stefansf at linux dot ibm.com 2021-07-02 19:22 ` cvs-commit at gcc dot gnu.org 2021-07-02 19:22 ` cvs-commit at gcc dot gnu.org [this message] 2021-07-02 19:31 ` dmalcolm 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-99212-4-MzP4Hmccs8@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).