llvm-project/clang/lib/Basic
Fangrui Song 987b49395c [PPC] Undefine __ppc64__ to match GCC
GCC only defines `__ppc64__` for darwin while the darwin support has been
removed from llvm-project. The existence of `__ppc64__` makes some software
think we are compiling for big-endian PowerPC Mac; also it lures users to write
code which is not portable to GCC.

It is straightforward if a distro wants to keep the macro: add
`-D__ppc64__=1` to a Clang configuration file.

Reviewed By: thesamesam, nemanjai

Differential Revision: https://reviews.llvm.org/D137511
2022-11-22 17:01:39 -08:00
..
Targets [PPC] Undefine __ppc64__ to match GCC 2022-11-22 17:01:39 -08:00
Attributes.cpp [clang] Don't include StringSwitch.h (NFC) 2022-09-18 22:21:32 -07:00
BuiltinTargetFeatures.h [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
Builtins.cpp Fix __builtin_assume_aligned incorrect type descriptor and C++ object polymorphic address 2022-09-20 12:35:18 -04:00
CLWarnings.cpp Reland "[clang-cl] Accept `#pragma warning(disable : N)` for some N" 2021-09-30 15:03:23 -04:00
CMakeLists.txt Link libclangBasic against libatomic when necessary. 2022-11-03 21:07:44 +01:00
CharInfo.cpp
CodeGenOptions.cpp [NFC] Remove duplicate isNoBuiltinFunc method 2021-03-10 09:18:55 +01:00
Cuda.cpp Add support for CUDA-11.8 and sm_{87,89,90} GPUs. 2022-10-07 13:59:28 -07:00
DarwinSDKInfo.cpp [Clang] Extract availability mapping from VersionMap for watchOS/tvOS 2022-01-05 17:00:03 -08:00
Diagnostic.cpp Improve handling of static assert messages. 2022-06-29 14:57:35 +02:00
DiagnosticIDs.cpp Fix duplicate word typos; NFC 2022-11-08 07:21:23 -05:00
DiagnosticOptions.cpp [clang] Use std::underlying_type_t (NFC) 2022-10-12 19:20:38 -07:00
ExpressionTraits.cpp
FileEntry.cpp
FileManager.cpp [clang] Fix redirection behaviour for cached FileEntryRef 2022-08-05 12:23:38 -07:00
FileSystemStatCache.cpp
IdentifierTable.cpp [HLSL] Support cbuffer/tbuffer for hlsl. 2022-09-21 10:07:43 -07:00
LangOptions.cpp [FPEnv] Allow CompoundStmt to keep FP options 2022-07-03 17:06:26 +07:00
LangStandards.cpp [CMake] Remove CLANG_DEFAULT_STD_C/CLANG_DEFAULT_STD_CXX 2022-10-16 13:15:44 -07:00
MakeSupport.cpp Ensure newlines at the end of files (NFC) 2022-07-17 15:37:45 -07:00
Module.cpp [C++20] [Modules] Attach implicitly declared allocation funcitons to 2022-11-15 17:21:48 +08:00
NoSanitizeList.cpp [sanitizer] Add "mainfile" prefix to sanitizer special case list 2022-07-15 10:39:26 -07:00
ObjCRuntime.cpp
OpenCLOptions.cpp [OpenCL] Turn global vector into static array. NFCI. 2022-03-05 19:16:28 +01:00
OpenMPKinds.cpp [OpenMP] Initial parsing/sema for 'strict' modifier with 'num_tasks' clause 2022-11-18 16:26:47 -08:00
OperatorPrecedence.cpp
ProfileList.cpp [InstrProf][attempt 2] Add new format for -fprofile-list= 2022-08-04 17:12:56 -07:00
SanitizerSpecialCaseList.cpp [clang] Fix ambiguous use of `report_fatal_error`. 2022-08-29 15:32:49 +00:00
Sanitizers.cpp [clang-cl][sanitizer] Add -fsanitize-address-use-after-return to clang. 2021-06-11 12:07:35 -07:00
Sarif.cpp Refactor StaticAnalyzer to use `clang::SarifDocumentWriter` 2022-11-17 14:47:02 -05:00
SourceLocation.cpp Refactor StaticAnalyzer to use `clang::SarifDocumentWriter` 2022-11-17 14:47:02 -05:00
SourceManager.cpp When we run out of source locations, try to produce useful information 2022-11-16 14:36:16 -08:00
Stack.cpp
TargetID.cpp [clang-offload-bundler] extracting compatible bundle entry 2022-10-05 19:44:38 -04:00
TargetInfo.cpp Extend the C++03 definition of POD to include defaulted functions 2022-10-26 22:00:49 +00:00
Targets.cpp [Clang][MinGW][cygwin] Fix __declspec with -fdeclspec enabled 2022-10-03 10:58:45 +03:00
Targets.h
TokenKinds.cpp [Pseudo] Token/TokenStream, PP directive parser. 2022-02-23 17:52:02 +01:00
TypeTraits.cpp [clang] fix frontend crash when evaluating type trait 2022-08-13 00:02:19 +08:00
Version.cpp [NFC][clang] Return underlying strings directly instead of OS.str() 2021-12-09 16:05:46 -08:00
Warnings.cpp
XRayInstr.cpp
XRayLists.cpp