set_src_cost lying comment

2015-06-21 Thread Alan Modra
set_src_cost says it is supposed to /* Return the cost of moving X into a register, relative to the cost of a register move. SPEED_P is true if optimizing for speed rather than size. */ Now, set_src_cost of a register move (set (reg1) (reg2)), is zero. Why? Well, set_src_cost is used just

gcc-6-20150621 is now available

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

Re: Possible range based 'for' bug

2015-06-21 Thread Jonathan Wakely
On 21 June 2015 at 19:16, Julian Klappenbach wrote: > The issue occurred to me after I sent the email. > > begin() / end() return iterators by value, not reference. > > So, you're correct in identifying the value / reference issue. But to > be precise: you can't return an abstract class type *by

Re: Possible range based 'for' bug

2015-06-21 Thread Julian Klappenbach
The issue occurred to me after I sent the email. begin() / end() return iterators by value, not reference. So, you're correct in identifying the value / reference issue. But to be precise: you can't return an abstract class type *by value* from a function. If the return values of begin() / end

Re: Possible range based 'for' bug

2015-06-21 Thread Jonathan Wakely
On 21 June 2015 at 16:56, Julian Klappenbach wrote: > Version info: > > Configured with: > --prefix=/Applications/Xcode.app/Contents/Developer/usr > --with-gxx-include-dir=/usr/include/c++/4.2.1 > Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) > Target: x86_64-apple-darwin14.3.0

Re: Possible range based 'for' bug

2015-06-21 Thread Julian Klappenbach
Version info: Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) Target: x86_64-apple-darwin14.3.0 Thread model: posix I'm using the default build provided by bre