This is the mail archive of the gcc-patches@gcc.gnu.org mailing 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]

Re: [PATCH] Improved SAVE_EXPR handling in operand_equal_p


 > From: Roger Sayle <roger@eyesopen.com>
 > 
 > Kaveh, is it possible to only enable the "cabs(z) != cabs(z)" tests
 > at optimization levels -O2 and above?  Sorry for the inconvenience.

We can wrap the cabs test with __OPTIMIZE__ which only checks for -O1
and above.  Fortunately that seems to be sufficient at least on
sparc-sun-solaris2.

I'll do that if you can please explain to me why this works with
optimization and not without it.  (And why we can rely on that being
the case.)

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]