File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -271,6 +271,8 @@ Resolutions to C++ Defect Reports
271
271
C Language Changes
272
272
------------------
273
273
274
+ - Extend clang's ``<limits.h> `` to define ``LONG_LONG_* `` macros for Android's bionic.
275
+
274
276
C2y Feature Support
275
277
^^^^^^^^^^^^^^^^^^^
276
278
Original file line number Diff line number Diff line change 111
111
#define ULLONG_MAX (__LONG_LONG_MAX__*2ULL +1ULL )
112
112
#endif
113
113
114
- /* LONG_LONG_MIN/LONG_LONG_MAX/ULONG_LONG_MAX are a GNU extension. It's too bad
115
- that we don't have something like #pragma poison that could be used to
116
- deprecate a macro - the code should just use LLONG_MAX and friends.
114
+ /* LONG_LONG_MIN/LONG_LONG_MAX/ULONG_LONG_MAX are a GNU extension. Android's
115
+ bionic also defines them. It's too bad that we don't have something like
116
+ #pragma poison that could be used to deprecate a macro - the code should just
117
+ use LLONG_MAX and friends.
117
118
*/
118
- #if defined(__GNU_LIBRARY__) ? defined(__USE_GNU) : !defined(__STRICT_ANSI__)
119
+ #if (defined(__GNU_LIBRARY__) ? defined(__USE_GNU) \
120
+ : !defined(__STRICT_ANSI__)) || \
121
+ defined (__BIONIC__)
119
122
120
123
#undef LONG_LONG_MIN
121
124
#undef LONG_LONG_MAX
Original file line number Diff line number Diff line change 4
4
// RUN: %clang_cc1 -std=c17 -ffreestanding -fsyntax-only -verify -x c %s
5
5
// RUN: %clang_cc1 -std=c2x -ffreestanding -fsyntax-only -verify -x c %s
6
6
7
+ // Specifically test arm64 linux platforms.
8
+ // RUN: %clang_cc1 -triple arm64-linux -ffreestanding -fsyntax-only -verify -x c %s
9
+
7
10
// Specifically test 16-bit int platforms.
8
11
// RUN: %clang_cc1 -triple=avr -ffreestanding -fsyntax-only -verify -x c %s
9
12
// RUN: %clang_cc1 -triple=avr -std=c++11 -ffreestanding -fsyntax-only -verify %s
You can’t perform that action at this time.
0 commit comments