aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c/ChangeLog5
-rw-r--r--gcc/c/c-typeck.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index 170f067..59da72d 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -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.
diff --git a/gcc/c/c-typeck.c b/gcc/c/c-typeck.c
index ba8797b..f55d4c6 100644
--- a/gcc/c/c-typeck.c
+++ b/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");
}