This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: spec2000 regression
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: spec2000 regression
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Wed, 15 Aug 2001 14:40:15 +0100 (BST)
- cc: <gcc-patches at gcc dot gnu dot org>
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