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.

Reply via email to