From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41858 invoked by alias); 21 Apr 2015 08:30:21 -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 41814 invoked by uid 48); 21 Apr 2015 08:30:17 -0000 From: "nickc at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65649] gcc generates overlarge constants for microblaze-linux-gnu Date: Tue, 21 Apr 2015 08:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nickc at redhat dot com X-Bugzilla-Status: UNCONFIRMED 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 attachments.created 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: 2015-04/txt/msg01694.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65649 Nick Clifton changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nickc at redhat dot com --- Comment #3 from Nick Clifton --- Created attachment 35373 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35373&action=edit Use %lx/%ld to print long types Hi Guys, Here is a patch to fix this problem. The bug is that in a couple of places the microblaze backend is using %llx to print out the value of a long type. On a 64-bit host this does not matter, but compiling on a 32-bit host the result is extra garbage digits in the output. Cheers Nick