mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 08:44:51 +08:00
17d6e514a1
* runtime/fpu.c: Add _GNU_SOURCE definition. * config/fpu-glibc.h: Remove __USE_GNU definition. From-SVN: r105822
22 lines
419 B
C
22 lines
419 B
C
/* This is needed for fpu-glibc.h, before all other includes */
|
|
#ifdef HAVE_FENV_H
|
|
#define _GNU_SOURCE
|
|
#endif
|
|
|
|
#include "libgfortran.h"
|
|
|
|
/* We include the platform-dependent code. */
|
|
#include "fpu-target.h"
|
|
|
|
/* Function called by the front-end to tell us
|
|
when a FPE should be raised. */
|
|
extern void set_fpe (int);
|
|
export_proto(set_fpe);
|
|
|
|
void
|
|
set_fpe (int exceptions)
|
|
{
|
|
options.fpe = exceptions;
|
|
set_fpu ();
|
|
}
|