diff gcc/jit/jit-builtins.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
line wrap: on
line diff
--- a/gcc/jit/jit-builtins.c	Fri Oct 27 22:46:09 2017 +0900
+++ b/gcc/jit/jit-builtins.c	Thu Oct 25 07:37:49 2018 +0900
@@ -1,5 +1,5 @@
 /* jit-builtins.c -- Handling of builtin functions during JIT-compilation.
-   Copyright (C) 2014-2017 Free Software Foundation, Inc.
+   Copyright (C) 2014-2018 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -76,24 +76,20 @@
   if (debug)
     fprintf (stderr, "seen builtin: %s\n", bd.name);
 
-  if (0 == strcmp (bd.name, in_name))
-    {
-      return true;
-    }
+  if (strcmp (bd.name, in_name) == 0)
+    return true;
 
   if (bd.both_p)
     {
       /* Then the macros in builtins.def gave a "__builtin_"
 	 prefix to bd.name, but we should also recognize the form
 	 without the prefix.  */
-      gcc_assert (0 == strncmp (bd.name, prefix, prefix_len));
+      gcc_assert (strncmp (bd.name, prefix, prefix_len) == 0);
       if (debug)
 	fprintf (stderr, "testing without prefix as: %s\n",
 		 bd.name + prefix_len);
-      if (0 == strcmp (bd.name + prefix_len, in_name))
-	{
-	  return true;
-	}
+      if (strcmp (bd.name + prefix_len, in_name) == 0)
+	return true;
     }
 
   return false;