Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.

Committed to trunk as r259766.

gcc/ChangeLog:
        * input.h (builtins_location_check): Convert to a STATIC_ASSERT.
---
 gcc/input.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/input.h b/gcc/input.h
index 67e4e7c..2569f85 100644
--- a/gcc/input.h
+++ b/gcc/input.h
@@ -34,8 +34,7 @@ const source_location BUILTINS_LOCATION = ((source_location) 
1);
 
 /* 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);
-- 
1.8.5.3

Reply via email to