patch to fix constant math - first small patch - patch ping for the next stage 1

Kenneth Zadeck zadeck@naturalbridge.com
Wed Feb 27 00:23:00 GMT 2013


Here is the first of my wide int patches with joseph's comments and the 
patch rot removed.

I would like to get these pre approved for the next stage 1.
On 10/05/2012 08:14 PM, Joseph S. Myers wrote:
> On Fri, 5 Oct 2012, Kenneth Zadeck wrote:
>
>> +# define HOST_HALF_WIDE_INT_PRINT "h"
> This may cause problems on hosts not supporting %hd (MinGW?), and there's
> no real need for using "h" here given the promotion of short to int; you
> can just use "" (rather than e.g. needing special handling in xm-mingw32.h
> like is done for HOST_LONG_LONG_FORMAT).
>

-------------- next part --------------
2013-2-26  Kenneth Zadeck <zadeck@naturalbridge.com>

	* hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
	HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
	HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
	HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
	HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
	(sext_hwi, zext_hwi): New functions.
	
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1-3.diff
Type: text/x-patch
Size: 4057 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130227/9770a7d1/attachment.bin>


More information about the Gcc-patches mailing list