This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bct_p *is* used in loop.c:strength_reduction
- To: law at cygnus dot com
- Subject: Re: bct_p *is* used in loop.c:strength_reduction
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Thu, 15 Oct 1998 14:45:11 -0400
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, egcs at cygnus dot com, egcs-patches at cygnus dot com
>>>>> Jeffrey A Law writes:
Jeff> "possibly unused" from an optimizer standpoint means that you can't depend on
Jeff> it being unused. It also sounds pretty clearly to me like it was meant to
Jeff> describe the exact situation we're encountering -- we have a variable that
Jeff> may or may not be used depending on a variety of compile-time decisions.
When we were adding these types of attributes to rs6000.c, we went
to the extreme of two different declarations for the two different ifdef
cases -- one using the parameters, the other not.
If this attribute is not dangerous and we want to use it in this
manner just to remove warnings and not to imply anything to the compiler,
then that is fine with me. However, as part of this process of adding
these attributes and removing warnings, we have implemented two different
policies of how and where to use them. We should be consistent about
using this attribute throughout EGCS to avoid this type of confusion.
David