Re: Switching to C++ by default in 4.8

2012-04-04 Thread Tristan Gingold
On Apr 3, 2012, at 7:37 PM, Diego Novillo wrote: > > We would like to start the process to make GCC 4.8 build in C++ mode by > default. > > The mechanics of the change are simple enough. I volunteer to test changing > the default on all primary targets (assuming I can get them from the GCC

Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option

2012-04-04 Thread Stefano Lattarini
On 04/03/2012 10:39 PM, Tom Tromey wrote: >> "Stefano" == Stefano Lattarini writes: > > Stefano> On a second though, by double-checking the existing code, I > Stefano> couldn't see how the 'cygnus' option could possibly influence > Stefano> the location of the generated info files -- and it t

Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option

2012-04-04 Thread Stefano Lattarini
On 04/04/2012 01:53 AM, Miles Bader wrote: > Pedro Alves writes: >>> OK, you've all made clear you have your sensible reasons to have the '.info' >> >> ... >>> it available only though the new, undocumented option named (literally) >>> "hack!info-in-builddir". I hope this is acceptable to you. >>

Re: Proposed gcc plugin plugin API mk 2 (this time without camel case!)

2012-04-04 Thread Richard Guenther
On Tue, Apr 3, 2012 at 8:15 PM, Romain Geissler wrote: > > Le 3 avr. 2012 à 18:02, David Malcolm a écrit : > >> On Tue, 2012-04-03 at 15:23 +0200, Richard Guenther wrote: >>> On Tue, Apr 3, 2012 at 12:03 PM, Richard Guenther >>> wrote: On Mon, Apr 2, 2012 at 7:21 PM, David Malcolm wrote: >>

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Gabriel Dos Reis
On Tue, Apr 3, 2012 at 8:13 PM, David Edelsohn wrote: > On Tue, Apr 3, 2012 at 1:37 PM, Diego Novillo wrote: >> >> We would like to start the process to make GCC 4.8 build in C++ mode by >> default. >> >> The mechanics of the change are simple enough.  I volunteer to test changing >> the default

Re: Proposed gcc plugin plugin API mk 2 (this time without camel case!)

2012-04-04 Thread Richard Guenther
On Tue, Apr 3, 2012 at 6:02 PM, David Malcolm wrote: > On Tue, 2012-04-03 at 15:23 +0200, Richard Guenther wrote: >> On Tue, Apr 3, 2012 at 12:03 PM, Richard Guenther >> wrote: >> > On Mon, Apr 2, 2012 at 7:21 PM, David Malcolm wrote: >> >> I wrote a script and ported my proposed API for GCC plu

Re: Why can't copy renaming capture this assignment?

2012-04-04 Thread Richard Guenther
On Wed, Apr 4, 2012 at 1:27 AM, Jiangning Liu wrote: > >> So I suppose for this specific case a pass that performs type >> promotion/demotion >> (as was discussed repeatedly) would be a better thing, and an enablement >> of trivial redundancy removal. >> > This case is from a real  benchmark and t

Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option

2012-04-04 Thread Pedro Alves
On 04/04/2012 12:53 AM, Miles Bader wrote: > I suspect there are better, cleaner, ways to accomplish the underlying > goal, but I suppose the gcc maintainers don't want to spend the time > fiddling around with their build infrastructure for such a minor > issue... Why speculate? I haven't seen

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Richard Guenther
On Wed, Apr 4, 2012 at 10:32 AM, Gabriel Dos Reis wrote: > On Tue, Apr 3, 2012 at 8:13 PM, David Edelsohn wrote: >> On Tue, Apr 3, 2012 at 1:37 PM, Diego Novillo wrote: >>> >>> We would like to start the process to make GCC 4.8 build in C++ mode by >>> default. >>> >>> The mechanics of the chang

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 4:06 AM, Richard Guenther wrote: > (not sure that I can veto anything - heh) I found out that is the only power a Release Manager has -- apart from fixing the bug himself or herself ;-p -- Gaby

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 4:06 AM, Richard Guenther wrote: > On Wed, Apr 4, 2012 at 10:32 AM, Gabriel Dos Reis > wrote: >> On Tue, Apr 3, 2012 at 8:13 PM, David Edelsohn wrote: >>> On Tue, Apr 3, 2012 at 1:37 PM, Diego Novillo wrote: We would like to start the process to make GCC 4.8 bui

RFC: -Wall by default

2012-04-04 Thread Gabriel Dos Reis
Hi, For GCC-4.8, I would like to turn on -Wall by default. Comments? -- Gaby

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Richard Guenther
On Wed, Apr 4, 2012 at 11:15 AM, Gabriel Dos Reis wrote: > On Wed, Apr 4, 2012 at 4:06 AM, Richard Guenther > wrote: >> On Wed, Apr 4, 2012 at 10:32 AM, Gabriel Dos Reis >> wrote: >>> On Tue, Apr 3, 2012 at 8:13 PM, David Edelsohn wrote: On Tue, Apr 3, 2012 at 1:37 PM, Diego Novillo wrote

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Richard Guenther
On Wed, Apr 4, 2012 at 11:59 AM, Richard Guenther wrote: > On Wed, Apr 4, 2012 at 11:15 AM, Gabriel Dos Reis > wrote: >> On Wed, Apr 4, 2012 at 4:06 AM, Richard Guenther >> wrote: >>> On Wed, Apr 4, 2012 at 10:32 AM, Gabriel Dos Reis >>> wrote: On Tue, Apr 3, 2012 at 8:13 PM, David Edelsoh

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Diego Novillo
On 4/4/12 5:06 AM, Richard Guenther wrote: Btw, I think we should only start forcing C++ when 1) there is a branch/patch out that shows benefit from using C++. I previously mentioned that I'd like to see 2) a patch that _properly_ wraps a C++ class for consumption by our garbage collector (thus

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Diego Novillo
On 4/3/12 9:13 PM, David Edelsohn wrote: I appreciate the motivation, but this may cause major problems on non-GNU/Linux platforms. Testing on all primary targets is not enough. I can test on other targets, as well. What targets do you have in mind? If I don't have access to them, I'll nee

Re: RFC: -Wall by default

2012-04-04 Thread Rick Hodgin
An idea whose time has come. --- On Wed, 4/4/12, Gabriel Dos Reis wrote: > For GCC-4.8, I would like to turn on -Wall by default. > Comments?

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Richard Guenther
On Wed, Apr 4, 2012 at 1:20 PM, Diego Novillo wrote: > On 4/4/12 5:06 AM, Richard Guenther wrote: > >> Btw, I think we should only start forcing C++ when 1) there is a >> branch/patch out >> that shows benefit from using C++.  I previously mentioned that I'd like >> to see >> 2) a patch that _prop

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Bernd Schmidt
On 04/04/2012 11:06 AM, Richard Guenther wrote: > So - I'll veto the switch unless I see 1) and 2). 1) and 2) can be combined > by transitioning vec.h to a C++ template class, with proper GC support. > (not sure that I can veto anything - heh) I don't think I can veto anything, but I'll go on the

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Richard Guenther
On Wed, Apr 4, 2012 at 1:50 PM, Bernd Schmidt wrote: > On 04/04/2012 11:06 AM, Richard Guenther wrote: >> So - I'll veto the switch unless I see 1) and 2).  1) and 2) can be combined >> by transitioning vec.h to a C++ template class, with proper GC support. >> (not sure that I can veto anything -

Re: RFC: -Wall by default

2012-04-04 Thread Andrew Haley
On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: > For GCC-4.8, I would like to turn on -Wall by default. > Comments? Umm, should this really happen at exactly the same time as C++ by default? Andrew.

Re: RFC: -Wall by default

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 7:08 AM, Andrew Haley wrote: > On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: >> For GCC-4.8, I would like to turn on -Wall by default. >> Comments? > > Umm, should this really happen at exactly the same time as C++ > by default? I consider it a separate issue. -Wall is a

Re: RFC: -Wall by default

2012-04-04 Thread Andrew Haley
On 04/04/2012 01:11 PM, Gabriel Dos Reis wrote: > On Wed, Apr 4, 2012 at 7:08 AM, Andrew Haley wrote: >> On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: >>> For GCC-4.8, I would like to turn on -Wall by default. >>> Comments? >> >> Umm, should this really happen at exactly the same time as C++ >>

Re: RFC: -Wall by default

2012-04-04 Thread Richard Guenther
On Wed, Apr 4, 2012 at 2:14 PM, Andrew Haley wrote: > On 04/04/2012 01:11 PM, Gabriel Dos Reis wrote: >> On Wed, Apr 4, 2012 at 7:08 AM, Andrew Haley wrote: >>> On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: For GCC-4.8, I would like to turn on -Wall by default. Comments? >>> >>> Umm,

Re: RFC: -Wall by default

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 7:19 AM, Richard Guenther wrote: > On Wed, Apr 4, 2012 at 2:14 PM, Andrew Haley wrote: >> On 04/04/2012 01:11 PM, Gabriel Dos Reis wrote: >>> On Wed, Apr 4, 2012 at 7:08 AM, Andrew Haley wrote: On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: > For GCC-4.8, I would

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Ian Lance Taylor
Tristan Gingold writes: > On Apr 3, 2012, at 7:37 PM, Diego Novillo wrote: > >> >> We would like to start the process to make GCC 4.8 build in C++ mode by >> default. >> >> The mechanics of the change are simple enough. I volunteer to test changing >> the default on all primary targets (assu

Re: bug#11034: Binutils, GDB, GCC and Automake's 'cygnus' option

2012-04-04 Thread Joseph S. Myers
On Sat, 31 Mar 2012, Stefano Lattarini wrote: > Note there's nothing I'm planning to do, nor I should do, in this regard: > the two setups described above are both already supported by the current > automake implementation (but the last one is not encouraged, even though > it makes perfect sense i

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Tristan Gingold
On Apr 4, 2012, at 3:12 PM, Ian Lance Taylor wrote: > Tristan Gingold writes: > >> On Apr 3, 2012, at 7:37 PM, Diego Novillo wrote: >> >>> >>> We would like to start the process to make GCC 4.8 build in C++ mode by >>> default. >>> >>> The mechanics of the change are simple enough. I volun

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Tom Tromey
> "Richard" == Richard Guenther writes: Richard> Oh, and did we address all the annoyances of debugging gcc when it's Richard> compiled by a C++ compiler? ... If you mean gdb problems, please file bugs. Tom

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 8:32 AM, Tristan Gingold wrote: > For Alpha, gas crashes during libstdc++ build.  From initial investigation, > this looks manageable.  But Alpha object format is quite old, and has no > support for comdat (but weak symbols should work). I believe weak symbols should suf

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Richard Guenther
On Wed, Apr 4, 2012 at 4:12 PM, Tom Tromey wrote: >> "Richard" == Richard Guenther writes: > > Richard> Oh, and did we address all the annoyances of debugging gcc when it's > Richard> compiled by a C++ compiler? ... > > If you mean gdb problems, please file bugs. I think I filed the most ann

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Richard Guenther
On Wed, Apr 4, 2012 at 4:45 PM, Richard Guenther wrote: > On Wed, Apr 4, 2012 at 4:12 PM, Tom Tromey wrote: >>> "Richard" == Richard Guenther writes: >> >> Richard> Oh, and did we address all the annoyances of debugging gcc when it's >> Richard> compiled by a C++ compiler? ... >> >> If you m

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Tristan Gingold
On Apr 4, 2012, at 4:37 PM, Gabriel Dos Reis wrote: > On Wed, Apr 4, 2012 at 8:32 AM, Tristan Gingold wrote: > >> For Alpha, gas crashes during libstdc++ build. From initial investigation, >> this looks manageable. But Alpha object format is quite old, and has no >> support for comdat (but

Re: RFC: -Wall by default

2012-04-04 Thread Ian Lance Taylor
Andrew Haley writes: > On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: >> For GCC-4.8, I would like to turn on -Wall by default. >> Comments? > > Umm, should this really happen at exactly the same time as C++ > by default? I assume that Gaby is talking about making -Wall the default for users of

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Diego Novillo
On 4/4/12 8:04 AM, Richard Guenther wrote: I agree for the idea of converting all of GCC to C++ (whatever that means). Right. The conversion that does happen, can be gradual. One other big advantage I see in this effort, is the transition to commonly used programming idioms and patterns.

Re: RFC: -Wall by default

2012-04-04 Thread Andrew Haley
On 04/04/2012 03:56 PM, Ian Lance Taylor wrote: > Andrew Haley writes: > >> On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: >>> For GCC-4.8, I would like to turn on -Wall by default. >>> Comments? >> >> Umm, should this really happen at exactly the same time as C++ >> by default? > > I assume th

Re: RFC: -Wall by default

2012-04-04 Thread Ian Lance Taylor
Andrew Haley writes: > On 04/04/2012 03:56 PM, Ian Lance Taylor wrote: >> Andrew Haley writes: >> >>> On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: For GCC-4.8, I would like to turn on -Wall by default. Comments? >>> >>> Umm, should this really happen at exactly the same time as C++

Re: RFC: -Wall by default

2012-04-04 Thread Jeff Law
On 04/04/2012 08:56 AM, Ian Lance Taylor wrote: Andrew Haley writes: On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: For GCC-4.8, I would like to turn on -Wall by default. Comments? Umm, should this really happen at exactly the same time as C++ by default? I assume that Gaby is talking ab

Re: Switching to C++ by default in 4.8

2012-04-04 Thread Lawrence Crowl
On 4/4/12, Richard Guenther wrote: > On Apr 4, 2012 Bernd Schmidt wrote: > > On 04/04/2012 11:06 AM, Richard Guenther wrote: > > > So - I'll veto the switch unless I see 1) and 2). 1) and 2) > > > can be combined by transitioning vec.h to a C++ template class, > > > with proper GC support. (not

Re: RFC: -Wall by default

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 9:56 AM, Ian Lance Taylor wrote: > Andrew Haley writes: > >> On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: >>> For GCC-4.8, I would like to turn on -Wall by default. >>> Comments? >> >> Umm, should this really happen at exactly the same time as C++ >> by default? > > I as

Re: RFC: -Wall by default

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 10:07 AM, Andrew Haley wrote: > On 04/04/2012 03:56 PM, Ian Lance Taylor wrote: >> Andrew Haley writes: >> >>> On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: For GCC-4.8, I would like to turn on -Wall by default. Comments? >>> >>> Umm, should this really happen a

Re: RFC: -Wall by default

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 10:17 AM, Jeff Law wrote: > On 04/04/2012 08:56 AM, Ian Lance Taylor wrote: >> >> Andrew Haley  writes: >> >>> On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: For GCC-4.8, I would like to turn on -Wall by default. Comments? >>> >>> >>> Umm, should this really

Re: RFC: -Wall by default

2012-04-04 Thread Jeff Law
On 04/04/2012 12:04 PM, Gabriel Dos Reis wrote: On Wed, Apr 4, 2012 at 10:17 AM, Jeff Law wrote: On 04/04/2012 08:56 AM, Ian Lance Taylor wrote: Andrew Haleywrites: On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote: For GCC-4.8, I would like to turn on -Wall by default. Comments? Umm,

Re: RFC: -Wall by default

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 1:06 PM, Jeff Law wrote: > On 04/04/2012 12:04 PM, Gabriel Dos Reis wrote: >> >> On Wed, Apr 4, 2012 at 10:17 AM, Jeff Law  wrote: >>> >>> On 04/04/2012 08:56 AM, Ian Lance Taylor wrote: Andrew Haley    writes: > On 04/04/2012 10:44 AM, Gabriel Dos Re

Re: RFC: -Wall by default

2012-04-04 Thread Dominique Dhumieres
> >> We do have regular requests for this, so it is not just out of thin > >> air. > > > > Perhaps, but I think that changing the default like this is far too > > invasive. ?GCC should do what it's told, if a user asks for warnings, > > give them, if they don't, then don't. > > It is hard to defi

Re: RFC: -Wall by default

2012-04-04 Thread Andrew Haley
On 04/04/2012 07:11 PM, Gabriel Dos Reis wrote: > Really? Such as what? Such as "I wrote a perfectly legal C program, and gcc spewed out a ton of messages." Andrew.

Re: GSoC proposal: Provide optimizations feedback through post-compilation messages

2012-04-04 Thread Tomasz Borowik
On Mon, 2 Apr 2012 19:57:20 + Thibault Raffaillac wrote: > Bump! > > Let me renew my interest in contributing through GSoC with post-compilation > feedback (This was not an early april joke). Do you think it could lead to an > acceptable GSoC proposal? (mentor interested?) Feedback can be s

Re: RFC: -Wall by default

2012-04-04 Thread Robert Dewar
Sometimes, we have to be brave to challenge tradition. The world around us is moving and we definitely want GCC to remain competitive. It is hard to define what "it's told" means without tripping over. The interesting thing about -Wall is that it is pretty safe, for the most part, in terms of

Re: RFC: -Wall by default

2012-04-04 Thread Robert Dewar
On 4/4/2012 2:02 PM, Gabriel Dos Reis wrote: The interesting thing about -Wall is that it is pretty safe, for the most part, in terms of false positives. And, for the record, I find lots of false positives, the front end of GNAT has a lot of junk initialiations marked "keep back end quiet".

Re: RFC: -Wall by default

2012-04-04 Thread Robert Dewar
On 4/4/2012 2:34 PM, Dominique Dhumieres wrote: IMO only the warnings in C that are likely errors should be the default as it is in gfortran (don't ask for examples of such warnings for C, I am quasi-illiterate). That's also the default philosophy in GNAT, there never should be false positives

RFC: X32 TLS specification

2012-04-04 Thread H.J. Lu
Hi, X32 support has been checked into Linux kernel v3.4-rc1. I started submitting x32 glibc and GDB patches. I added TLS specification to x32 psABI: https://sites.google.com/site/x32abi/documents/abi.pdf?attredirects=0&d=1 I am planning to submit x32 extension to x86-64 psABI soon if there are n

RE: [GCC Steering Committee] Android sub-port reviewer

2012-04-04 Thread Fu, Chao-Ying
Maxim Kuvyrkov wrote: > I encourage you to submit the MIPS Android patches to > gcc-patches@. And, as long as your changes preserve the > status quo of mips-*-* being big-endian by default and > mipsel-*-* being little-endian by default, there should be no > major obstacles to merge those in.

Re: RFC: -Wall by default

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 1:34 PM, Dominique Dhumieres wrote: >> >> We do have regular requests for this, so it is not just out of thin >> >> air. >> > >> > Perhaps, but I think that changing the default like this is far too >> > invasive.  ?GCC should do what it's told, if a user asks for warnings,

Re: RFC: -Wall by default

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 4:21 PM, Robert Dewar wrote: > On 4/4/2012 2:34 PM, Dominique Dhumieres wrote: > >> IMO only the warnings in C that are likely errors should be the default as >> it is in gfortran (don't ask for examples of such warnings for C, I am >> quasi-illiterate). > > > That's also th

Re: RFC: -Wall by default

2012-04-04 Thread Eric Botcazou
> The trouble is that most users find it an annoyance and don't > remember. And they ask: if it is so simple, why isn't it included by > default? Huh? -Wall is supposed to be simple to remember, but its implementation and effects are of course not simple at all. -- Eric Botcazou

Re: RFC: -Wall by default

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 5:56 PM, Eric Botcazou wrote: >> The trouble is that most users find it an annoyance and don't >> remember.  And they ask: if it is so simple, why isn't it included by >> default? > > Huh?  -Wall is supposed to be simple to remember, but its implementation and > effects are

question about the constraint modifier '+'

2012-04-04 Thread Handong Ye
Hi, I'm new in gcc, and maybe misunderstand the constraint modifier '+'. As the internal document says, '+' means an inout parameter. In my mind, it means the instruction both reads and writes the pseudo register. Assuming I have a pattern like: (define_insn "lssu" [(set (match_operand:m1 0 ..

Re: question about the constraint modifier '+'

2012-04-04 Thread Ian Lance Taylor
Handong Ye writes: > Hi, I'm new in gcc, and maybe misunderstand the constraint modifier '+'. > As the internal document says, '+' means an inout parameter. In my > mind, it means the instruction both reads and writes the pseudo > register. > > Assuming I have a pattern like: > > (define_insn "ls

Re: RFC: -Wall by default

2012-04-04 Thread Robert Dewar
On 4/4/2012 7:03 PM, Gabriel Dos Reis wrote: Again, this proposal does not come out of a whim. But it does seem to come out of a few anecdotal requests for a change, and you always have to be careful in considering such input, because of course people who agree with the status quo do not write

Re: RFC: -Wall by default

2012-04-04 Thread Robert Dewar
On 4/4/2012 6:42 PM, Gabriel Dos Reis wrote: On Wed, Apr 4, 2012 at 4:21 PM, Robert Dewar wrote: On 4/4/2012 2:34 PM, Dominique Dhumieres wrote: IMO only the warnings in C that are likely errors should be the default as it is in gfortran (don't ask for examples of such warnings for C, I am qu

Re: RFC: -Wall by default

2012-04-04 Thread Miles Bader
domi...@lps.ens.fr (Dominique Dhumieres) writes: > PS -Wall is a simple enough option to be remembered by all users who > need it As is -Wno-all, of course. > (if they don't use it, they don't want it). That isn't necessarily the case. In my experience, there seem to be a lot of developers who

Re: RFC: -Wall by default

2012-04-04 Thread Miles Bader
Robert Dewar writes: > We have run into people running benchmarks where they were > specifically prohibited from using other than the default > options, and gcc fared badly in such comparisons. Yeah, there was the silly "benchmark" at phoronix where they came to the conclusion that tcc was a bett

Re: RFC: -Wall by default

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 8:19 PM, Robert Dewar wrote: > On 4/4/2012 7:03 PM, Gabriel Dos Reis wrote: > >> Again, this proposal does not come out of a whim. > > > But it does seem to come out of a few anecdotal requests > for a change, It does appear very disturbing that you would dismiss repeated r

Re: RFC: -Wall by default

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 8:27 PM, Robert Dewar wrote: > On 4/4/2012 6:42 PM, Gabriel Dos Reis wrote: >> >> On Wed, Apr 4, 2012 at 4:21 PM, Robert Dewar  wrote: >>> >>> On 4/4/2012 2:34 PM, Dominique Dhumieres wrote: >>> IMO only the warnings in C that are likely errors should be the default >>>

Re: RFC: -Wall by default

2012-04-04 Thread Gabriel Dos Reis
On Wed, Apr 4, 2012 at 11:11 PM, Miles Bader wrote: > For instance, how about adding -Wall to the default options now, and > then re-evaluate the issue based on any complaints that come in from > people using snapshots? I believe this would offer far more evidence for/against the notion of the c

Re: RFC: -Wall by default

2012-04-04 Thread Miles Bader
Miles Bader writes: > For instance, how about adding -Wall to the default options now, and > then re-evaluate the issue based on any complaints that come in from > people using snapshots? That's hardly a perfect method, as the sort > of people who run compiler snapshots are maybe not entirely > r

Re: RFC: -Wall by default

2012-04-04 Thread Arnaud Charlet
Can someone summarize what the most useful warnings people are expecting that -Wall would bring? I suspect not all of -Wall would actually be welcome/a good idea by default, and we might be looking for a better compromise where most warnings are enabled by default, but not "all". In particular, I