wi::max_value() of a boolean is not 1

2017-08-20 Thread Aldy Hernandez
Hi folks. Calling wi::max_value() of a boolean_type creates a wide_int with all bits set, not just the least significant bit. tree type = boolean_type_node; wide_int x = wi::max_value (TYPE_PRECISION (type), TYPE_SIGN (type)); (gdb) print x.dump() [0x], precision = 1 However,

Re: wi::max_value() of a boolean is not 1

2017-08-20 Thread Richard Biener
On August 20, 2017 10:46:54 AM GMT+02:00, Aldy Hernandez wrote: >Hi folks. > >Calling wi::max_value() of a boolean_type creates a wide_int with all >bits set, not just the least significant bit. > >tree type = boolean_type_node; >wide_int x = wi::max_value (TYPE_PRECISION (type), TYPE_SIGN (type

gcc-8-20170820 is now available

2017-08-20 Thread gccadmin
Snapshot gcc-8-20170820 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/8-20170820/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 8 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/trunk revision

DragonEgg for GCC v8.x and LLVM v6.x is just able to work

2017-08-20 Thread Leslie Zhai
Hi LLVM and GCC developers, My sincere thanks will goto: * Duncan, the core developer of llvm-gcc and dragonegg http://llvm.org/devmtg/2009-10/Sands_LLVMGCCPlugin.pdf * David, the innovator and developer of GCC https://dmalcolm.fedorapeople.org/gcc/global-state/requirements.html and others