See <https://gcc.gnu.org/ml/gcc-patches/2015-05/msg01977.html> for
authorMarek Polacek <polacek@redhat.com>
Thu, 21 May 2015 15:30:09 +0000 (15:30 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 21 May 2015 15:30:09 +0000 (15:30 +0000)
the rationale.

Bootstrapped/regtested on x86_64-linux, applying to trunk.

2015-05-21  Marek Polacek  <polacek@redhat.com>

* c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
DECL_BUILT_IN.

diff --git gcc/c/c-typeck.c gcc/c/c-typeck.c
index ba8797b..f55d4c6 100644
--- gcc/c/c-typeck.c
+++ gcc/c/c-typeck.c
@@ -2853,9 +2853,10 @@ build_function_call (location_t loc, tree function, tree params)

 /* Give a note about the location of the declaration of DECL.  */

-static void inform_declaration (tree decl)
+static void
+inform_declaration (tree decl)
 {
-  if (decl && (TREE_CODE (decl) != FUNCTION_DECL || !DECL_BUILT_IN (decl)))
+  if (decl && (TREE_CODE (decl) != FUNCTION_DECL || !DECL_IS_BUILTIN (decl)))
     inform (DECL_SOURCE_LOCATION (decl), "declared here");
 }

From-SVN: r223490

gcc/c/ChangeLog
gcc/c/c-typeck.c

index 170f0675544ecd647bff8265b9764dc34787259a..59da72db578dd4a46e9c8ab3ead56ac573f7ef69 100644 (file)
@@ -1,3 +1,8 @@
+2015-05-21  Marek Polacek  <polacek@redhat.com>
+
+       * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
+       DECL_BUILT_IN.
+
 2015-05-20  Marek Polacek  <polacek@redhat.com>
 
        * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
index ba8797bb8d4e2b20581b777f2af8ff08fea66f26..f55d4c60bfc54dae7e7dd458c85432a5467e3b64 100644 (file)
@@ -2853,9 +2853,10 @@ build_function_call (location_t loc, tree function, tree params)
 
 /* Give a note about the location of the declaration of DECL.  */
 
-static void inform_declaration (tree decl)
+static void
+inform_declaration (tree decl)
 {
-  if (decl && (TREE_CODE (decl) != FUNCTION_DECL || !DECL_BUILT_IN (decl)))
+  if (decl && (TREE_CODE (decl) != FUNCTION_DECL || !DECL_IS_BUILTIN (decl)))
     inform (DECL_SOURCE_LOCATION (decl), "declared here");
 }