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 middle-end/94206] Wrong optimization: memset of n-bit integer types (from bit-fields) is truncated to n bits (instead of sizeof) Date: Thu, 02 Apr 2020 14:49:29 +0000 [thread overview] Message-ID: <bug-94206-4-2v9NyF4ctt@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-94206-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94206 --- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Richard Biener <rguenth@gcc.gnu.org>: https://gcc.gnu.org/g:4b1087f8dc7505997dc475b554b5b86a06c78d69 commit r9-8443-g4b1087f8dc7505997dc475b554b5b86a06c78d69 Author: Richard Biener <rguenther@suse.de> Date: Wed Mar 18 13:11:30 2020 +0100 middle-end/94206 fix memset folding to avoid types with padding This makes sure that the store a memset is folded to uses a type covering all bits. 2020-03-18 Richard Biener <rguenther@suse.de> PR middle-end/94206 * gimple-fold.c (gimple_fold_builtin_memset): Avoid using partial int modes or not mode-precision integer types for the store. * gcc.dg/torture/pr94206.c: New testcase.
next prev parent reply other threads:[~2020-04-02 14:49 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-03-17 21:15 [Bug middle-end/94206] New: " ch3root at openwall dot com 2020-03-17 21:22 ` [Bug middle-end/94206] " pinskia at gcc dot gnu.org 2020-03-18 8:12 ` rguenth at gcc dot gnu.org 2020-03-18 12:12 ` cvs-commit at gcc dot gnu.org 2020-03-18 12:13 ` rguenth at gcc dot gnu.org 2020-04-02 14:49 ` cvs-commit at gcc dot gnu.org [this message] 2020-04-15 9:59 ` 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-94206-4-2v9NyF4ctt@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).