Richard Henderson - Re: [RFC] PR/24900: computed but not used cast values (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: Richard Henderson
- To: Joe Buck
- Cc: Ian Lance Taylor , Aldy Hernandez , gcc at gcc dot gnu dot org, joseph at codesourcery dot com
- Date: Thu, 17 Nov 2005 15🔞42 -0800
- Subject: Re: [RFC] PR/24900: computed but not used cast values
- References: <20051117213300.GA15008@redhat.com> <m3br0j0w8b.fsf@gossamer.airs.com> <20051117225448.GA21279@redhat.com> <20051117230042.GP15434@synopsys.com>
On Thu, Nov 17, 2005 at 03:00:42PM -0800, Joe Buck wrote:
As in the example, these cases will usually arise in macros, where under some circumstances some computation will be wasted.
Which is no different from f()+1, for which no one is arguing that the warning we give is incorrect. If you've got such cases, you simply should be asking for this warning, IMO.
r~
- References:
- [RFC] PR/24900: computed but not used cast values
* From: Aldy Hernandez - Re: [RFC] PR/24900: computed but not used cast values
* From: Ian Lance Taylor - Re: [RFC] PR/24900: computed but not used cast values
* From: Richard Henderson - Re: [RFC] PR/24900: computed but not used cast values
* From: Joe Buck
- [RFC] PR/24900: computed but not used cast values
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |