Jeffrey A Law - Re: -Wuninitialized issues (original) (raw)
This is the mail archive of the gcc@gcc.gnu.orgmailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] |
- From: Jeffrey A Law
- To: Mark Mitchell
- Cc: Diego Novillo , gcc at gcc dot gnu dot org
- Date: Wed, 02 Nov 2005 10:45:22 -0700
- Subject: Re: -Wuninitialized issues
- References: 4365CA5E.3070401@codesourcery.com <200511011106.49922.dnovillo@redhat.com> <1130869072.19967.232.camel@localhost.localdomain> <200511011326.07838.dnovillo@redhat.com> <4367D669.70009@codesourcery.com>
- Reply-to: law at redhat dot com
On Tue, 2005-11-01 at 12:56 -0800, Mark Mitchell wrote:
Diego Novillo wrote:
We won't get perfect answers, which is fine given the nature of the problem. However, I would like, to get consistent answers.
Yes, I agree that's very important. In fact, I'd like to generalize that to say that -- as much as possible -- the same code should generate the same warnings across architectures, optimization levels, and releases as well. If -O3 causes us to say "might have been uninitialized, but we removed it" while -O0 just says "uninitialized" that's probably OK. But, having warnings not appear at -O0, or go away completely with higher levels of optimization isn't good. I'm OK with this, as long as it's option controlled separate from -Wuninitialized or it's enabled with something like -Wuninitialized-blah
I don't have terribly strong opinions on whether or not the warning text changes. It's cool that we can distinguish the cases, but there are more important things in life :-)
It's certainly easier to implement a switch that just changes when we run the maybe-uninitialized code than it is to implement the changes necessary to issue the more precise warnings in the two-pass approach.
Jeff
- References:
- Re: -Wuninitialized issues
* From: Diego Novillo - Re: -Wuninitialized issues
* From: Jeffrey A Law - Re: -Wuninitialized issues
* From: Diego Novillo - Re: -Wuninitialized issues
* From: Mark Mitchell
- Re: -Wuninitialized issues
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |