Bug 31828 - FAIL: gcc.dg/float-range-[3-5].c (test for excess errors)
Summary: FAIL: gcc.dg/float-range-[3-5].c (test for excess errors)
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-05 00:07 UTC by John David Anglin
Modified: 2007-10-02 02:19 UTC (History)
2 users (show)

See Also:
Host: hppa*-hp-hpux10*
Target: hppa*-hp-hpux10*
Build: hppa*-hp-hpux10*
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2007-05-05 00:07:56 UTC
FAIL: gcc.dg/float-range-3.c (test for excess errors)
Excess errors:
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/float-range-3.c:10: error: 'FP_INFINITE'
undeclared (first use in this function)
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/float-range-3.c:10: error: (Each undeclar
ed identifier is reported only once
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/float-range-3.c:10: error: for each funct
ion it appears in.)
Comment 1 Steve Ellcey 2007-06-06 17:48:14 UTC
Subject: Bug 31828

Author: sje
Date: Wed Jun  6 17:48:03 2007
New Revision: 125496

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125496
Log:
	PR testsuite/31828
	* inclhack.def (hppa_hpux_fp_macros): New.
	* fixincl.x: Regenerate.
	* * tests/base/math.h: Update.

Modified:
    trunk/fixincludes/ChangeLog
    trunk/fixincludes/fixincl.x
    trunk/fixincludes/inclhack.def
    trunk/fixincludes/tests/base/math.h

Comment 2 Steve Ellcey 2007-06-07 17:29:24 UTC
This is fixed on HP-UX 11.* systems but is still an issue on HP-UX 10.* systems.
Comment 3 John David Anglin 2007-09-28 02:45:45 UTC
Is the use of macro FP_INFINITE in these tests a typo?  It seems to me
that the tests should be using the C99 macro INFINITY.  In which case,
the tests should be conditional on c99_runtime.
Comment 4 John David Anglin 2007-09-28 03:01:38 UTC
On the otherhand, maybe the tests should use __builtin_inff.
Comment 5 John David Anglin 2007-10-02 02:18:04 UTC
Subject: Bug 31828

Author: danglin
Date: Tue Oct  2 02:17:50 2007
New Revision: 128947

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128947
Log:
	PR testsuite/31828
	gcc.dg/float-range-3.c (INFINITY): Define if not defined.
	(overflow): Use INFINITY, not FP_INFINITE.
	gcc.dg/float-range-4.c: Likewise.
	gcc.dg/float-range-5.c: Likewise.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/float-range-3.c
    trunk/gcc/testsuite/gcc.dg/float-range-4.c
    trunk/gcc/testsuite/gcc.dg/float-range-5.c

Comment 6 John David Anglin 2007-10-02 02:19:37 UTC
Fixed.