From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22239 invoked by alias); 3 Nov 2014 07:09:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 22182 invoked by uid 48); 3 Nov 2014 07:09:16 -0000 From: "fd935653 at opayq dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/56888] memcpy implementation optimized as a call to memcpy Date: Mon, 03 Nov 2014 07:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fd935653 at opayq dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg00075.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888 Evan Langlois changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fd935653 at opayq dot com --- Comment #34 from Evan Langlois --- Grub-2.00 (grub-mkimage utility) will crash with -O3 because of this bug, using gcc 4.8.2. GDB shows it going into an infinite loop calling memset() until it segfaults. I added the -fno-tree-loop-distribute-patterns and it created code that doesn't barf on itself. This is definately a bug and a pretty serious one.