Skip to content

Commit 11e50bc

Browse files
backesCommit Bot
authored andcommitted
Remove build support for gcc < 5
We still set a lot of macros depending on specific gcc versions. All these old versions are unsupported by now anyways, so we can also just define these macros as 1. If this CL sticks for a while, we can start actually cleaning up all code relying on these macros, as most of them should be 1 now on all platforms. R=ulan@chromium.org Bug: v8:9810 Change-Id: I2f9c55170091f8c263deeddfb7ff89e5b2a0bb12 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1862564 Reviewed-by: Ulan Degenbaev <ulan@chromium.org> Commit-Queue: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/master@{#64413}
1 parent 0347f00 commit 11e50bc

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

include/v8config.h

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -311,22 +311,21 @@
311311
// always_inline is available in gcc 4.0 but not very reliable until 4.4.
312312
// Works around "sorry, unimplemented: inlining failed" build errors with
313313
// older compilers.
314-
# define V8_HAS_ATTRIBUTE_ALWAYS_INLINE (V8_GNUC_PREREQ(4, 4, 0))
315-
# define V8_HAS_ATTRIBUTE_NOINLINE (V8_GNUC_PREREQ(3, 4, 0))
316-
# define V8_HAS_ATTRIBUTE_UNUSED (V8_GNUC_PREREQ(2, 95, 0))
317-
# define V8_HAS_ATTRIBUTE_VISIBILITY (V8_GNUC_PREREQ(4, 3, 0))
318-
# define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT \
319-
(!V8_CC_INTEL && V8_GNUC_PREREQ(4, 1, 0))
320-
321-
# define V8_HAS_BUILTIN_ASSUME_ALIGNED (V8_GNUC_PREREQ(4, 7, 0))
322-
# define V8_HAS_BUILTIN_CLZ (V8_GNUC_PREREQ(3, 4, 0))
323-
# define V8_HAS_BUILTIN_CTZ (V8_GNUC_PREREQ(3, 4, 0))
324-
# define V8_HAS_BUILTIN_EXPECT (V8_GNUC_PREREQ(2, 96, 0))
325-
# define V8_HAS_BUILTIN_FRAME_ADDRESS (V8_GNUC_PREREQ(2, 96, 0))
326-
# define V8_HAS_BUILTIN_POPCOUNT (V8_GNUC_PREREQ(3, 4, 0))
314+
# define V8_HAS_ATTRIBUTE_ALWAYS_INLINE 1
315+
# define V8_HAS_ATTRIBUTE_NOINLINE 1
316+
# define V8_HAS_ATTRIBUTE_UNUSED 1
317+
# define V8_HAS_ATTRIBUTE_VISIBILITY 1
318+
# define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT (!V8_CC_INTEL)
319+
320+
# define V8_HAS_BUILTIN_ASSUME_ALIGNED 1
321+
# define V8_HAS_BUILTIN_CLZ 1
322+
# define V8_HAS_BUILTIN_CTZ 1
323+
# define V8_HAS_BUILTIN_EXPECT 1
324+
# define V8_HAS_BUILTIN_FRAME_ADDRESS 1
325+
# define V8_HAS_BUILTIN_POPCOUNT 1
327326

328327
// GCC doc: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
329-
#define V8_HAS_COMPUTED_GOTO (V8_GNUC_PREREQ(2, 0, 0))
328+
#define V8_HAS_COMPUTED_GOTO 1
330329

331330
// Whether constexpr has full C++14 semantics, in particular that non-constexpr
332331
// code is allowed as long as it's not executed for any constexpr instantiation.

0 commit comments

Comments
 (0)