Allow HOST_WIDE_INT for option variable.
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 18 Aug 2011 14:52:06 +0000 (14:52 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 18 Aug 2011 14:52:06 +0000 (07:52 -0700)
commit99114bbfa1de1c286fffef4b0dff20a360066e2a
tree281491eb9469913e27f7aa1d7338b708f181d46f
parent5b880ea61c107da98ea87a5ffad4520445d60007
Allow HOST_WIDE_INT for option variable.

2011-08-18  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.

Co-Authored-By: Igor Zamyatin <igor.zamyatin@intel.com>
From-SVN: r177864
gcc/ChangeLog
gcc/hwint.h
gcc/opt-functions.awk
gcc/opt-read.awk
gcc/optc-save-gen.awk
gcc/opth-gen.awk
gcc/opts-common.c
gcc/opts.h