PING: PATCH: Use int64 for x86 options

H.J. Lu hjl.tools@gmail.com
Wed Aug 17 20:41:00 GMT 2011


On Wed, Aug 17, 2011 at 1:35 PM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> On Wed, 17 Aug 2011, H.J. Lu wrote:
>
>> On Wed, Aug 17, 2011 at 12:28 PM, Joseph S. Myers
>> <joseph@codesourcery.com> wrote:
>> > On Sun, 7 Aug 2011, H.J. Lu wrote:
>> >
>> >> HOST_BITS_PER_WIDE_INT isn't defined in target library.
>> >> I need to check if HOST_BITS_PER_WIDE_INT is defined
>> >> first.  Here is the updated patch.
>> >
>> > As I said in <http://gcc.gnu.org/ml/gcc/2011-07/msg00488.html>, you need
>> > to check all CLVC_* uses for cases that need updating for HOST_WIDE_INT
>> > fields.  This patch fails to update option_enabled and get_option_state.
>> >
>>
>> Here is the additional patch.
>
> Thanks.  The target-independent parts of your patch are OK with these
> extra changes, subject to the usual test requirements.
>
> --
> Joseph S. Myers
> joseph@codesourcery.com

I am testing this complete patch.

Richard, Uros, is x86 backend change OK?

Thanks.


-- 
H.J.
----
2011-08-17  H.J. Lu  <hongjiu.lu@intel.com>
	    Igor Zamyatin <igor.zamyatin@intel.com>

	* hwint.h (HOST_WIDE_INT_1): New.

	* opt-functions.awk (switch_bit_fields): Initialize the
	host_wide_int field.
	(host_wide_int_var_name): New.
	(var_type_struct): Check and return HOST_WIDE_INT.

	* opt-read.awk: Handle HOST_WIDE_INT for "Variable".

	* optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.

	* opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
	check masks for HOST_WIDE_INT.

	* opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
	(option_enabled): Likewise.
	(get_option_state): Likewise.

	* opts.h (cl_option): Add cl_host_wide_int.  Change var_value
	to HOST_WIDE_INT.

	* config/i386/i386-c.c (ix86_target_macros_internal): Replace int
	with HOST_WIDE_INT for isa_flag.
	(ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
	isa variables.

	* config/i386/i386.c (ix86_target_string): Replace int with
	HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
	(ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
	(pta_flags): Removed.
	(PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
	(pta): Use HOST_WIDE_INT on flags.
	(builtin_isa): Use HOST_WIDE_INT on isa.
	(ix86_add_new_builtins): Likewise.
	(def_builtin): Use HOST_WIDE_INT on mask.
	(def_builtin_const): Likewise.
	(builtin_description): Likewise.

	* config/i386/i386.opt (ix86_isa_flags): Replace int with
	HOST_WIDE_INT.
	(ix86_isa_flags_explicit): Likewise.
	(x_ix86_isa_flags_explicit): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-x86-int64-8.patch
Type: text/x-diff
Size: 18692 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20110817/639c21aa/attachment.bin>


More information about the Gcc mailing list