llvm-project/clang
Ayke van Laethem 131cddcba2
[AVR] Fix broken bitcast for aliases in non-zero address space
This was triggered by some code in picolibc. The minimal version looks
like this:

    double infinity(void) {
       return 5;
    }

    extern long double infinityl() __attribute__((__alias__("infinity")));

These two declarations have a different type (not because of the 'long
double', which is also 'double' in IR, but because infinityl has
variadic parameters). This led to a crash in the bitcast which assumed
address space 0.

Differential Revision: https://reviews.llvm.org/D138681
2022-11-27 15:27:42 +01:00
..
bindings Add clang_CXXMethod_isMoveAssignmentOperator to libclang 2022-11-14 15:21:36 +01:00
cmake Add version to all LLVM cmake package 2022-11-25 21:57:58 +00:00
docs [analyzer] Deprecate FAM analyzer-config, recommend -fstrict-flex-arrays instead 2022-11-25 10:24:56 +01:00
examples
include Revert "[clang][modules] NFCI: Pragma diagnostic mappings: write/read FileID instead of SourceLocation" 2022-11-25 17:04:31 +01:00
lib [AVR] Fix broken bitcast for aliases in non-zero address space 2022-11-27 15:27:42 +01:00
runtime [clang] Only use major version in resource dir 2022-11-10 15:02:03 +01:00
test [AVR] Fix broken bitcast for aliases in non-zero address space 2022-11-27 15:27:42 +01:00
tools [clang-fuzzer] Add missing dependency 2022-11-24 09:20:47 -08:00
unittests [clang] Use std::size (NFC) 2022-11-26 13:58:48 -08:00
utils [clang] Use std::size (NFC) 2022-11-26 13:58:48 -08:00
www [Clang] Add papers approved in Kona by WG21 to the C++ status page 2022-11-20 18:51:52 +01:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt [cmake] Fix _GNU_SOURCE being added unconditionally 2022-11-14 12:28:21 -08:00
CodeOwners.rst [code-owners] Add Vassil as a code owner for clang incremental compilation. 2022-11-15 08:56:16 +00:00
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.txt

README.txt

//===----------------------------------------------------------------------===//
// C Language Family Front-end
//===----------------------------------------------------------------------===//

Welcome to Clang.  This is a compiler front-end for the C family of languages
(C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM
compiler infrastructure project.

Unlike many other compiler frontends, Clang is useful for a number of things
beyond just compiling code: we intend for Clang to be host to a number of
different source-level tools.  One example of this is the Clang Static Analyzer.

If you're interested in more (including how to build Clang) it is best to read
the relevant web sites.  Here are some pointers:

Information on Clang:             http://clang.llvm.org/
Building and using Clang:         http://clang.llvm.org/get_started.html
Clang Static Analyzer:            http://clang-analyzer.llvm.org/
Information on the LLVM project:  http://llvm.org/

If you have questions or comments about Clang, a great place to discuss them is
on the Clang forums:
  https://discourse.llvm.org/c/clang/

If you find a bug in Clang, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/