On Wed, Jul 27, 2011 at 2:37 PM, H.J. Lu <hjl.to...@gmail.com> wrote: > On Wed, Jul 27, 2011 at 2:23 PM, Joseph S. Myers > <jos...@codesourcery.com> wrote: >> On Wed, 27 Jul 2011, H.J. Lu wrote: >> >>> ; Maximum number of mask bits in a variable. >>> MaxMaskBits >>> ix86_isa_flags = 64 >>> >>> It mark ix86_isa_flags as 64bit. Any comments? >> >> The patch won't work as is. set_option, for example, casts a pointer to >> (int *), and stores a mask that came from option->var_value, which is an >> int, so this won't work with option fields not of type int or values that >> don't fit in int; you'd need to check all uses of CLVC_BIT_CLEAR and >> CLVC_BIT_SET in the source tree to adapt things for the possibility of >> wider mask fields, and track the type of each such field. > > We will prepare a separate patch. > >> Independently, I approve of setting need_64bit_hwint for all x86 targets, >> but your patch doesn't achieve the expected simplification. In >> config.gcc, there are settings for various individual targets that should >> be removed once it's set in one place for all x86 targets. In >> libcpp/configure.ac, similarly the cases for i[34567]86-*-darwin* >> i[34567]86-*-solaris2.1[0-9]* x86_64-*-solaris2.1[0-9]* >> i[34567]86-w64-mingw* i[34567]86-*-linux* (the last only if >> --enable-targets=all) should all be removed as obsolete once >> i[34567]86-*-* is there along with x86_64-*-*. >> > > Is this patch OK for trunk? > > Thanks. > > H.J. > ---- > gcc/ > > 2011-07-27 H.J. Lu <hongjiu...@intel.com> > > * config.gcc: Set need_64bit_hwint to yes for x86 targets. > > libcpp/ > > 2011-07-27 H.J. Lu <hongjiu...@intel.com> > > * configure.ac: Set need_64bit_hwint to yes for x86 targets. > * configure: Regenerated. >
Bootstrapped on Linux/ia32. I am checking it in. Thanks. -- H.J.