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]

Re: spec2000 regression


On Wed, 15 Aug 2001, Jan Hubicka wrote:

> I am now testing following patch. OK to install if it succeeds?

You should add a testcase to the testsuite for this bug.  You can do this
by calling a non-existent function such that the call will be optimised
away if the optimisation succeeds.  (Look e.g. at
gcc.c-torture/execute/builtin-abs-1.c - in this case you'll want to use
'set additional_flags "-fstrict-aliasing"' in the .x file so that the
optimisation works at -O1 (which doesn't include -fstrict-aliasing) and
#ifndef __OPTIMIZE__ is the only test needed for the dummy version of the
function that aborts.)

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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