Some real-life feedback on -Wmisleading-indentation

2016-01-10 Thread Gerald Pfeifer
Compiling Wine with GCC trunk (to become GCC 6) I noticed four dozen of warnings triggered by -Wmisleading-indentation. Some are simply weird formatting, some may be indicative of real issues -- and I have started to look into them one by one and submitting patches (to Wine). However, there is

Re: C++14 template code working in GCC 5.1 stops working in 5.2 and 5.3

2016-01-10 Thread Yongwei Wu
On 10 January 2016 at 23:29, Jonathan Wakely wrote: > On 10 January 2016 at 14:55, Yongwei Wu wrote: >> Hi GCC gurus, >> >> I have an implementation of Y Combinator in C++, which works in GCC >> 4.9 to 5.1 as well as Clang 3.5 (in C++14 mode). It stops working in >> GCC 5.2 and 5.3. I cannot reall

ipa vrp implementation in gcc

2016-01-10 Thread Kugan
Hi All, I am looking at implementing a ipa vrp pass. Jan Hubicka also talks about this in 2013 GNU Cauldron as one of the optimization he would like to see in gcc. So my question is, is any one implementing it. If not we would like to do that. I also looked at the ipa-cp implementation to see how

How to determine source location of pragma?

2016-01-10 Thread Vanush Vaswani
I am new to GCC internals. I'm trying to create a plugin to operate on pragmas. Currently have this working using c_register_pragma with a callback. The callback performs pragma_lex and is able to retrieve the string token of the pragma based on this example. https://github.com/wh5a/gcc-plugin/bl

gcc-6-20160110 is now available

2016-01-10 Thread gccadmin
Snapshot gcc-6-20160110 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/6-20160110/ 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: C++14 template code working in GCC 5.1 stops working in 5.2 and 5.3

2016-01-10 Thread Jonathan Wakely
On 10 January 2016 at 14:55, Yongwei Wu wrote: > Hi GCC gurus, > > I have an implementation of Y Combinator in C++, which works in GCC > 4.9 to 5.1 as well as Clang 3.5 (in C++14 mode). It stops working in > GCC 5.2 and 5.3. I cannot really whether it is a GCC bug or not, but > it looks like GCC is

C++14 template code working in GCC 5.1 stops working in 5.2 and 5.3

2016-01-10 Thread Yongwei Wu
Hi GCC gurus, I have an implementation of Y Combinator in C++, which works in GCC 4.9 to 5.1 as well as Clang 3.5 (in C++14 mode). It stops working in GCC 5.2 and 5.3. I cannot really whether it is a GCC bug or not, but it looks like GCC is being too eager in template instantiation. Would you plea