aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2018-04-30 13:50:22 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2018-04-30 13:50:22 +0000
commitfee69672c29005d68d5cddff587c535b6a8c4982 (patch)
tree914316a26994b15c76e210cef3d2f44627c6a487 /gcc
parentc7b8bff73412d6ed24d7aee7a21d42a46e393d68 (diff)
downloadgcc-fee69672c29005d68d5cddff587c535b6a8c4982.zip
gcc-fee69672c29005d68d5cddff587c535b6a8c4982.tar.gz
gcc-fee69672c29005d68d5cddff587c535b6a8c4982.tar.bz2
input.h: use STATIC_ASSERT
gcc/ChangeLog: * input.h (builtins_location_check): Convert to a STATIC_ASSERT. From-SVN: r259766
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/input.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index af84646..15c3059 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2018-04-30 David Malcolm <dmalcolm@redhat.com>
+
+ * input.h (builtins_location_check): Convert to a STATIC_ASSERT.
+
2018-04-30 Richard Biener <rguenther@suse.de>
* tree-cfg.c (verify_address): Remove base argument, add
diff --git a/gcc/input.h b/gcc/input.h
index da5451e..cec922f 100644
--- a/gcc/input.h
+++ b/gcc/input.h
@@ -34,8 +34,7 @@ extern GTY(()) struct line_maps *saved_line_table;
/* line-map.c reserves RESERVED_LOCATION_COUNT to the user. Ensure
both UNKNOWN_LOCATION and BUILTINS_LOCATION fit into that. */
-extern char builtins_location_check[(BUILTINS_LOCATION
- < RESERVED_LOCATION_COUNT) ? 1 : -1];
+STATIC_ASSERT (BUILTINS_LOCATION < RESERVED_LOCATION_COUNT);
extern bool is_location_from_builtin_token (source_location);
extern expanded_location expand_location (source_location);