public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/57503] New: [4.7/4.8 Regression] Expand uses wrong multiply routine Date: Sun, 02 Jun 2013 08:54:00 -0000 [thread overview] Message-ID: <bug-57503-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57503 Bug ID: 57503 Summary: [4.7/4.8 Regression] Expand uses wrong multiply routine Product: gcc Version: 4.7.2 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target: avr Created attachment 30241 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30241&action=edit cecky.c == Test case == #include <stdlib.h> long __attribute__((__noinline__)) rot (unsigned char v) { unsigned vs = v * 255; return (long) vs * 254; } int main (void) { long r = rot (129); if (r != 8355330) abort(); exit (0); } This program hits abort if compiled with 4.7.2 or 4.8.0. == Command line == avr-gcc -mmcu=atmega168 cecky.c -Os -save-temps -dp -funsigned-char -o cecky.elf -fdump-rtl-expand-details == Configure == Configured with: ../../gcc.gnu.org/gcc-4_7-branch/configure --target=avr --prefix=/local/gnu/install/gcc-4.7 --enable-languages=c,c++ --disable-nls --disable-shared --with-dwarf2 --with-avrlibc=yes
next reply other threads:[~2013-06-02 8:54 UTC|newest] Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-06-02 8:54 gjl at gcc dot gnu.org [this message] 2013-06-02 9:00 ` [Bug middle-end/57503] " gjl at gcc dot gnu.org 2013-06-02 9:00 ` gjl at gcc dot gnu.org 2013-06-02 9:02 ` gjl at gcc dot gnu.org 2013-06-02 15:50 ` pinskia at gcc dot gnu.org 2013-06-02 17:34 ` gjl at gcc dot gnu.org 2013-06-03 8:43 ` rguenth at gcc dot gnu.org 2013-09-09 8:14 ` rguenth at gcc dot gnu.org 2013-10-07 9:19 ` gjl at gcc dot gnu.org 2013-10-07 10:18 ` gjl at gcc dot gnu.org 2013-11-22 10:48 ` [Bug middle-end/57503] [4.7/4.8/4.9 " rguenth at gcc dot gnu.org 2014-06-12 13:49 ` [Bug middle-end/57503] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org 2014-12-19 13:33 ` [Bug middle-end/57503] [4.8/4.9/5 " jakub at gcc dot gnu.org 2015-06-23 8:26 ` [Bug middle-end/57503] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org 2015-06-26 20:01 ` [Bug middle-end/57503] [4.9/5/6 " jakub at gcc dot gnu.org 2015-06-26 20:31 ` jakub at gcc dot gnu.org 2022-01-09 0:57 ` [Bug tree-optimization/57503] Missing warning for signed overflow pinskia 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-57503-4@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).