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: "Kaveh R. Ghazi"
- Cc: pinskia at physics dot uc dot edu, dnovillo at redhat dot com, gcc at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Wed, 02 Nov 2005 18:47:10 -0700
- Subject: Re: -Wuninitialized issues
- References: <200511030052.jA30qAY8005364@earth.phy.uc.edu> <200511030135.jA31Z0CX023166@caipclassic.rutgers.edu>
- Reply-to: law at redhat dot com
On Wed, 2005-11-02 at 20:35 -0500, Kaveh R. Ghazi wrote:
Have another option to detect variables which are set but their values are not used (this was in one of the -Wuninitialized bugs and has been asked before). The EDG front-end implements this option. Andrew Pinski
The sgi compiler detects this also. I'd really like gcc to have it, but it seems to be an orthogonal project. I'd be real curious to know how they did this. Particularly since it plays into a lot of the same questions. OK, not curious enough to go look at their code myself :-)
For example, if the only use was inside an unreachable hunk of code, does that count as a use or not?
jeff
- Follow-Ups:
- Re: -Wuninitialized issues
* From: Mark Mitchell
- Re: -Wuninitialized issues
- References:
- Re: -Wuninitialized issues
* From: Andrew Pinski - Re: -Wuninitialized issues
* From: Kaveh R. Ghazi
- Re: -Wuninitialized issues
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |