This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Remove non-portable tests from 20031003-1.c
- From: Mark Mitchell <mitchell at doubledemon dot codesourcery dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 13 Oct 2003 22:22:03 -0700
- Subject: Re: [PATCH] Remove non-portable tests from 20031003-1.c
- Organization: CodeSourcery, LLC
- References: <Pine.LNX.4.44.0310132003100.1055-100000@www.eyesopen.com>
- Reply-to: mark at codesourcery dot com
On Mon, 2003-10-13 at 19:42, Roger Sayle wrote:
> Mark asked me to investigate the failure of my testcase for PR opt/9325,
> gcc.c-torture/execute/20031003-1.c, on ia64-hp-hpux11.22. The failures
> are the two tests f3 and f4, which were intended to check GCC's RTL-level
> floating-point to integer constant folding.
Your fix (removing the "bogus" tests) seems fine to me. I agree that
testing for certain behavior in situations that is undefined in C
doesn't seem like a good idea.
If some port maintainer really, really wants to test for this behavior,
the test can be added back with appropriate dg-do conditionalization.
Go ahead and check in your change.
Thanks,
-- Mark