public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/60468] New: ./fpu-target.h:93:3: error: unknown type name 'choke'
@ 2014-03-08 23:20 danglin at gcc dot gnu.org
2014-06-07 10:50 ` [Bug libfortran/60468] " fxcoudert at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: danglin at gcc dot gnu.org @ 2014-03-08 23:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60468
Bug ID: 60468
Summary: ./fpu-target.h:93:3: error: unknown type name 'choke'
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libfortran
Assignee: unassigned at gcc dot gnu.org
Reporter: danglin at gcc dot gnu.org
Host: hppa1.1-hp-hpux10.20
Target: hppa1.1-hp-hpux10.20
Build: hppa1.1-hp-hpux10.20
Build of libgfortran fails here:
libtool: compile: /xxx/gnu/gcc/objdir/./gcc/xgcc -B/xxx/gnu/gcc/objdir/./gcc/
-
B/opt/gnu/gcc/gcc-4.9/hppa1.1-hp-hpux10.20/bin/
-B/opt/gnu/gcc/gcc-4.9/hppa1.1-h
p-hpux10.20/lib/ -isystem /opt/gnu/gcc/gcc-4.9/hppa1.1-hp-hpux10.20/include
-isystem /opt/gnu/gcc/gcc-4.9/hppa1.1-hp-hpux10.20/sys-include -DHAVE_CONFIG_H
-I. -
I../../../gcc/libgfortran -iquote../../../gcc/libgfortran/io
-I../../../gcc/libg
fortran/../gcc -I../../../gcc/libgfortran/../gcc/config
-I../../../gcc/libgfortr
an/../libquadmath -I../.././gcc -I../../../gcc/libgfortran/../libgcc
-I../libgcc
-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definitio
n -Wextra -Wwrite-strings -fcx-fortran-rules -g -O2 -MT fpu.lo -MD -MP -MF
.deps
/fpu.Tpo -c ../../../gcc/libgfortran/runtime/fpu.c -fPIC -DPIC -o .libs/fpu.o
In file included from ../../../gcc/libgfortran/runtime/fpu.c:29:0:
./fpu-target.h: In function 'get_fpu_except_flags':
./fpu-target.h:93:3: error: unknown type name 'choke'
choke me ^
Problem is sysv version of fpu-target.h has been selected because configure
found fpsetmask but it didn't find fp_except or fp_rnd because they are
defined in <math.h>, not <ieeefp.h>. The fp routines are also declared
in <math.h>.
On hpux11, this doesn't happen because fpsetmask is gone. As a result,
generic support is selected. This is probably not optimal but
that's another issue.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/60468] ./fpu-target.h:93:3: error: unknown type name 'choke'
2014-03-08 23:20 [Bug libfortran/60468] New: ./fpu-target.h:93:3: error: unknown type name 'choke' danglin at gcc dot gnu.org
@ 2014-06-07 10:50 ` fxcoudert at gcc dot gnu.org
2014-06-07 10:50 ` fxcoudert at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-06-07 10:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60468
Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
Status|UNCONFIRMED |NEW
URL| |https://gcc.gnu.org/ml/fort
| |ran/2014-06/msg00082.html
Last reconfirmed| |2014-06-07
CC| |fxcoudert at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
Patch proposed here to fix the issue on hpux10:
https://gcc.gnu.org/ml/fortran/2014-06/msg00082.html
For hpux11, what should be used for FPU control? Googl'ing suggests that HP/UX
has moved to fenv.h support, with additional fegettrapenable/fesettrapenable
function calls. Would you be able to confirm this, and point me to
documentation for hpux11 fenv's documentation? If so, I'm willing to add
support for that platform.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/60468] ./fpu-target.h:93:3: error: unknown type name 'choke'
2014-03-08 23:20 [Bug libfortran/60468] New: ./fpu-target.h:93:3: error: unknown type name 'choke' danglin at gcc dot gnu.org
2014-06-07 10:50 ` [Bug libfortran/60468] " fxcoudert at gcc dot gnu.org
@ 2014-06-07 10:50 ` fxcoudert at gcc dot gnu.org
2014-06-07 15:43 ` dave.anglin at bell dot net
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-06-07 10:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60468
Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/60468] ./fpu-target.h:93:3: error: unknown type name 'choke'
2014-03-08 23:20 [Bug libfortran/60468] New: ./fpu-target.h:93:3: error: unknown type name 'choke' danglin at gcc dot gnu.org
2014-06-07 10:50 ` [Bug libfortran/60468] " fxcoudert at gcc dot gnu.org
2014-06-07 10:50 ` fxcoudert at gcc dot gnu.org
@ 2014-06-07 15:43 ` dave.anglin at bell dot net
2014-06-15 9:44 ` fxcoudert at gcc dot gnu.org
2014-06-15 16:05 ` fxcoudert at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: dave.anglin at bell dot net @ 2014-06-07 15:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60468
--- Comment #2 from dave.anglin at bell dot net ---
On 7-Jun-14, at 6:49 AM, fxcoudert at gcc dot gnu.org wrote:
> For hpux11, what should be used for FPU control? Googl'ing suggests
> that HP/UX
> has moved to fenv.h support, with additional fegettrapenable/
> fesettrapenable
> function calls. Would you be able to confirm this, and point me to
> documentation for hpux11 fenv's documentation? If so, I'm willing to
> add
> support for that platform.
Correct. fenv.h is available from 11.00 onward. The following calls
are defined:
extern void feclearexcept(int);
extern void fegetexceptflag(fexcept_t *, int);
extern void feraiseexcept(int);
extern void fesetexceptflag(const fexcept_t *, int);
extern int fetestexcept(int);
extern int fegetround(void);
extern int fesetround(int);
extern void fegetenv(fenv_t *);
extern int feholdexcept(fenv_t *);
extern void fesetenv(const fenv_t *);
extern void feupdateenv(const fenv_t *);
extern int fegetflushtozero(void);
extern void fesetflushtozero(int);
extern int fegettrapenable(void);
extern void fesettrapenable(int);
In addition, ia64 has:
extern int fegetprec(void);
extern int fesetprec(int);
Documentation is getting harder to get online. The following link is
for ia64 but should be mostly
relevant :
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=0008a22194f02110a22194f02110275d6e10RCRD
I have an older pdf version that is parisc specific.
It seems HP no longer has man pages online, so third-party links are
all that's available:
http://www.polarhome.com/service/man/generic.php?qf=feclearexcept&type=2&of=HP-UX&sf=3m
Thanks,
Dave
--
John David Anglin dave.anglin@bell.net
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/60468] ./fpu-target.h:93:3: error: unknown type name 'choke'
2014-03-08 23:20 [Bug libfortran/60468] New: ./fpu-target.h:93:3: error: unknown type name 'choke' danglin at gcc dot gnu.org
` (2 preceding siblings ...)
2014-06-07 15:43 ` dave.anglin at bell dot net
@ 2014-06-15 9:44 ` fxcoudert at gcc dot gnu.org
2014-06-15 16:05 ` fxcoudert at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-06-15 9:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60468
--- Comment #3 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
Author: fxcoudert
Date: Sun Jun 15 09:44:04 2014
New Revision: 211685
URL: https://gcc.gnu.org/viewcvs?rev=211685&root=gcc&view=rev
Log:
PR libfortran/60468
* configure.ac: Include <math.h> when checking for
fp_except_t and fp_rnd_t types.
* configure: Regenerate.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/configure
trunk/libgfortran/configure.ac
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libfortran/60468] ./fpu-target.h:93:3: error: unknown type name 'choke'
2014-03-08 23:20 [Bug libfortran/60468] New: ./fpu-target.h:93:3: error: unknown type name 'choke' danglin at gcc dot gnu.org
` (3 preceding siblings ...)
2014-06-15 9:44 ` fxcoudert at gcc dot gnu.org
@ 2014-06-15 16:05 ` fxcoudert at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-06-15 16:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60468
Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
Fixed on trunk.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-06-15 16:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-08 23:20 [Bug libfortran/60468] New: ./fpu-target.h:93:3: error: unknown type name 'choke' danglin at gcc dot gnu.org
2014-06-07 10:50 ` [Bug libfortran/60468] " fxcoudert at gcc dot gnu.org
2014-06-07 10:50 ` fxcoudert at gcc dot gnu.org
2014-06-07 15:43 ` dave.anglin at bell dot net
2014-06-15 9:44 ` fxcoudert at gcc dot gnu.org
2014-06-15 16:05 ` fxcoudert at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).