+2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
+
+ * doc/sourcebuild.texi (Environment attributes): Add fenv and
+ fenv_exceptions description.
+
2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
PR rtl-optimization/87763
@file{libgfortran/io/unix.c:fd_truncate}; i.e.@: @code{ftruncate} or
@code{chsize}.
+@item fenv
+Target provides @file{fenv.h} include file.
+
+@item fenv_exceptions
+Target supports @file{fenv.h} with all the standard IEEE exceptions
+and floating-point exceptions are raised by arithmetic operations.
+
@item freestanding
Target is @samp{freestanding} as defined in section 4 of the C99 standard.
Effectively, it is a target which supports no extra headers or libraries
+2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
+
+ * lib/target-supports.exp (check_effective_target_fenv): New.
+ * gcc.dg/torture/fp-int-convert-float128-timode-3.c: Add missing
+ fenv effective target.
+ * gcc.dg/torture/fp-int-convert-timode-1.c: Likewise.
+ * gcc.dg/torture/fp-int-convert-timode-2.c: Likewise.
+ * gcc.dg/torture/fp-int-convert-timode-3.c: Likewise.
+ * gcc.dg/torture/fp-int-convert-timode-4.c: Likewise.
+
2019-01-25 Richard Biener <rguenther@suse.de>
PR tree-optimization/86865
/* { dg-require-effective-target __float128 } */
/* { dg-require-effective-target base_quadfloat_support } */
/* { dg-require-effective-target int128 } */
+/* { dg-require-effective-target fenv } */
/* { dg-options "-frounding-math" } */
/* { dg-add-options __float128 } */
float. */
/* { dg-do run } */
/* { dg-require-effective-target int128 } */
+/* { dg-require-effective-target fenv } */
/* { dg-options "-frounding-math" } */
#include <fenv.h>
float. */
/* { dg-do run } */
/* { dg-require-effective-target int128 } */
+/* { dg-require-effective-target fenv } */
/* { dg-options "-frounding-math" } */
#include <fenv.h>
float. */
/* { dg-do run } */
/* { dg-require-effective-target int128 } */
+/* { dg-require-effective-target fenv } */
/* { dg-options "-frounding-math" } */
#include <fenv.h>
float. */
/* { dg-do run } */
/* { dg-require-effective-target int128 } */
+/* { dg-require-effective-target fenv } */
/* { dg-options "-frounding-math" } */
#include <fenv.h>
}
}
+# Return 1 if <fenv.h> is available.
+
+proc check_effective_target_fenv {} {
+ return [check_no_compiler_messages fenv object {
+ #include <fenv.h>
+ } [add_options_for_ieee "-std=gnu99"]]
+}
+
# Return 1 if <fenv.h> is available with all the standard IEEE
# exceptions and floating-point exceptions are raised by arithmetic
# operations. (If the target requires special options for "inexact"