diff options
author | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-12 20:21:31 +0000 |
---|---|---|
committer | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-12 20:21:31 +0000 |
commit | 8c84a5de8ea015ec2e463b480ec81f03671b1e43 (patch) | |
tree | af4f5409e807606750191918d192516dcd170012 /libgfortran/Makefile.in | |
parent | be33d898b8e30d6aaa6779d133f05b38880c8877 (diff) | |
download | gcc-8c84a5de8ea015ec2e463b480ec81f03671b1e43.tar.gz |
* gfortran.h: Add bitmasks for different FPE traps. Add fpe
member to options_t.
* invoke.texi: Document the new -ffpe-trap option.
* lang.opt: Add -ffpe-trap option.
* options.c (gfc_init_options): Initialize the FPE option.
(gfc_handle_fpe_trap_option): New function to parse the argument
of the -ffpe-trap option.
(gfc_handle_option): Add case for -ffpe-trap.
* trans-decl.c: Declare a tree for the set_fpe library function.
(gfc_build_builtin_function_decls): Build this tree.
(gfc_generate_function_code): Generate a call to set_fpe at
the beginning of the main program.
* trans.h: New tree for the set_fpe library function.
* Makefile.am: Add fpu.c to the build process, and
target-dependent code as fpu-target.h.
* Makefile.in: Regenerate.
* configure.ac: Add call to configure.host to set
FPU_HOST_HEADER.
* configure: Regenerate.
* config.h.in: Regenerate.
* aclocal.m4: Regenerate.
* configure.host: New script to determine which host-dependent
code should go in.
* libgfortran.h: Add fpe option, remove previous fpu_ options.
Add bitmasks for different FPE traps. Add prototype for set_fpu.
* runtime/environ.c: Remove environment variables to control
fpu behaviour.
* runtime/fpu.c (set_fpe): New function for the front-end.
* runtime/main.c (init): Set FPU state.
* config: New directory to store host-dependent code.
* config/fpu-387.h: New file with code handling the i387 FPU.
* config/fpu-glibc.h: New file with code for glibc systems.
* config/fpu-generic.h: Fallback for the most generic host. Issue
warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105328 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/Makefile.in')
-rw-r--r-- | libgfortran/Makefile.in | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libgfortran/Makefile.in b/libgfortran/Makefile.in index c4d3be6ef11..5ed436f41ae 100644 --- a/libgfortran/Makefile.in +++ b/libgfortran/Makefile.in @@ -66,7 +66,7 @@ am__installdirs = "$(DESTDIR)$(toolexeclibdir)" toolexeclibLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(toolexeclib_LTLIBRARIES) libgfortran_la_LIBADD = -am__objects_1 = compile_options.lo environ.lo error.lo main.lo \ +am__objects_1 = compile_options.lo environ.lo error.lo fpu.lo main.lo \ memory.lo pause.lo stop.lo string.lo select.lo am__objects_2 = all_l4.lo all_l8.lo all_l16.lo am__objects_3 = any_l4.lo any_l8.lo any_l16.lo @@ -276,6 +276,7 @@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FC = @FC@ FCFLAGS = @FCFLAGS@ +FPU_HOST_HEADER = @FPU_HOST_HEADER@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ @@ -357,7 +358,6 @@ libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` libgfortranbegin_la_SOURCES = fmain.c libgfortranbegin_la_LDFLAGS = -static AM_CPPFLAGS = -iquote$(srcdir)/io -libgfortranincludedir = $(includedir)/gforio gfor_io_src = \ io/close.c \ io/file_pos.c \ @@ -435,6 +435,7 @@ gfor_src = \ runtime/compile_options.c \ runtime/environ.c \ runtime/error.c \ +runtime/fpu.c \ runtime/main.c \ runtime/memory.c \ runtime/pause.c \ @@ -771,7 +772,7 @@ gfor_built_src = $(i_all_c) $(i_any_c) $(i_count_c) $(i_maxloc0_c) \ $(i_exponent_c) $(i_fraction_c) $(i_nearest_c) $(i_set_exponent_c) \ $(i_pow_c) \ selected_int_kind.inc selected_real_kind.inc kinds.h \ - kinds.inc c99_protos.inc + kinds.inc c99_protos.inc fpu-target.h # Machine generated specifics @@ -1394,6 +1395,9 @@ environ.lo: runtime/environ.c error.lo: runtime/error.c $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o error.lo `test -f 'runtime/error.c' || echo '$(srcdir)/'`runtime/error.c +fpu.lo: runtime/fpu.c + $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o fpu.lo `test -f 'runtime/fpu.c' || echo '$(srcdir)/'`runtime/fpu.c + main.lo: runtime/main.c $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o main.lo `test -f 'runtime/main.c' || echo '$(srcdir)/'`runtime/main.c @@ -2699,6 +2703,9 @@ selected_int_kind.inc: $(srcdir)/mk-sik-inc.sh selected_real_kind.inc: $(srcdir)/mk-srk-inc.sh $(SHELL) $(srcdir)/mk-srk-inc.sh '$(FCCOMPILE)' > $@ +fpu-target.h: $(srcdir)/$(FPU_HOST_HEADER) + cp $(srcdir)/$(FPU_HOST_HEADER) $@ + @MAINTAINER_MODE_TRUE@$(i_all_c): m4/all.m4 $(I_M4_DEPS1) @MAINTAINER_MODE_TRUE@ m4 -Dfile=$@ -I$(srcdir)/m4 all.m4 > $(srcdir)/$@ |