bct_p *is* used in loop.c:strength_reduction

Jason Merrill jason@cygnus.com
Thu Oct 15 12:19:00 GMT 1998


>>>>> Jeffrey A Law <law@cygnus.com> writes:

 >   In message < 9810151702.AA40664@marc.watson.ibm.com >you write:
 >> 	I have removed the ATTRIBUTE_UNUSED designation from the bct_p
 >> parameter in loop.c:strength_reduce().  That parameter *is* used depending
 >> on ifdef's.

 > An ATTRIBUTE_UNUSED shouldn't cause problems if the parameter is actually
 > used.  At least that's been my understanding.  I've always been under the
 > impression that it meant the varable/parameter *might* be unused, not that
 > is absolutely is unused and you can optimize based on that information.

Right.  It actually works by setting TREE_USED on the decl.

Jason



More information about the Gcc mailing list