Commit 21288963 by Eric Botcazou Committed by Eric Botcazou

trans.c (convert_with_check): Fix typo in the condition guarding the overflow…

trans.c (convert_with_check): Fix typo in the condition guarding the overflow check emitted for the upper...

	* gcc-interface/trans.c (convert_with_check): Fix typo in the condition
	guarding the overflow check emitted for the upper bound of a floating-
	point conversion.

From-SVN: r258277
parent 0d6091d9
2018-03-06 Eric Botcazou <ebotcazou@adacore.com> 2018-03-06 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (convert_with_check): Fix typo in the condition
guarding the overflow check emitted for the upper bound of a floating-
point conversion.
2018-03-06 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (def_builtin_1): Bail out on error_mark_node. * gcc-interface/utils.c (def_builtin_1): Bail out on error_mark_node.
2018-02-28 Eric Botcazou <ebotcazou@adacore.com> 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* * * *
* C Implementation File * * C Implementation File *
* * * *
* Copyright (C) 1992-2017, Free Software Foundation, Inc. * * Copyright (C) 1992-2018, Free Software Foundation, Inc. *
* * * *
* GNAT is free software; you can redistribute it and/or modify it under * * GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- * * terms of the GNU General Public License as published by the Free Soft- *
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* * * *
* C Implementation File * * C Implementation File *
* * * *
* Copyright (C) 1992-2017, Free Software Foundation, Inc. * * Copyright (C) 1992-2018, Free Software Foundation, Inc. *
* * * *
* GNAT is free software; you can redistribute it and/or modify it under * * GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- * * terms of the GNU General Public License as published by the Free Soft- *
...@@ -9381,7 +9381,7 @@ convert_with_check (Entity_Id gnat_type, tree gnu_expr, bool overflow_p, ...@@ -9381,7 +9381,7 @@ convert_with_check (Entity_Id gnat_type, tree gnu_expr, bool overflow_p,
? tree_int_cst_lt (gnu_out_ub, gnu_in_ub) ? tree_int_cst_lt (gnu_out_ub, gnu_in_ub)
: (FLOAT_TYPE_P (gnu_base_type) : (FLOAT_TYPE_P (gnu_base_type)
? real_less (&TREE_REAL_CST (gnu_out_ub), ? real_less (&TREE_REAL_CST (gnu_out_ub),
&TREE_REAL_CST (gnu_in_lb)) &TREE_REAL_CST (gnu_in_ub))
: 1)) : 1))
gnu_cond gnu_cond
= build_binary_op (TRUTH_ORIF_EXPR, boolean_type_node, gnu_cond, = build_binary_op (TRUTH_ORIF_EXPR, boolean_type_node, gnu_cond,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment