This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix folding of finite () for modes that dont have NaNs and Infs


It's a typo appearantly, but I didn't succeed in creating a testcase that
feeds a mode into it that _doesnt_ have NaNs or Infs.  Maybe that needs
some special target or whatever.

I'm going to commit this as obvious if nobody objects to that and the
patch has been sitting in my tree until the next bootstrap/regtest
cycle.

Richard.


2006-08-24  Richard Guenther  <rguenther@suse.de>

	* builtins.c (fold_builtin_classify): Fix typo.

Index: builtins.c
===================================================================
*** builtins.c	(revision 116373)
--- builtins.c	(working copy)
*************** fold_builtin_classify (tree fndecl, tree
*** 8473,8479 ****
      case BUILT_IN_FINITE:
        if (!MODE_HAS_NANS (TYPE_MODE (TREE_TYPE (arg)))
  	  && !MODE_HAS_INFINITIES (TYPE_MODE (TREE_TYPE (arg))))
! 	return omit_one_operand (type, integer_zero_node, arg);
  
        if (TREE_CODE (arg) == REAL_CST)
  	{
--- 8473,8479 ----
      case BUILT_IN_FINITE:
        if (!MODE_HAS_NANS (TYPE_MODE (TREE_TYPE (arg)))
  	  && !MODE_HAS_INFINITIES (TYPE_MODE (TREE_TYPE (arg))))
! 	return omit_one_operand (type, integer_one_node, arg);
  
        if (TREE_CODE (arg) == REAL_CST)
  	{


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]