dhowells pushed to cross-gcc (master). "Microblaze: Emitted hex constants need prefixing with "0x""

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 21 13:34:51 UTC 2015


>From 03165d639477d73f21906e71fc3a93a32093d7f5 Mon Sep 17 00:00:00 2001
From: David Howells <dhowells at redhat.com>
Date: Tue, 21 Apr 2015 14:34:10 +0100
Subject: Microblaze: Emitted hex constants need prefixing with "0x"


diff --git a/cross-gcc-microblaze.patch b/cross-gcc-microblaze.patch
index c7107d3..0a142cd 100644
--- a/cross-gcc-microblaze.patch
+++ b/cross-gcc-microblaze.patch
@@ -7,7 +7,7 @@ Fix for Microblaze gcc misrendering long hex constants [gcc bz 65649]
  	  REAL_VALUE_FROM_CONST_DOUBLE (value, op);
  	  REAL_VALUE_TO_TARGET_SINGLE (value, value_long);
 -	  fprintf (file, HOST_WIDE_INT_PRINT_HEX, value_long);
-+         fprintf (file, "%lx", value_long);
++         fprintf (file, "0x%lx", value_long);
  	}
        else
  	{
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/cross-gcc.git/commit/?h=master&id=03165d639477d73f21906e71fc3a93a32093d7f5


More information about the scm-commits mailing list