Bruno De Fraine
Bruno De Fraine
An assertion failure in clang prevents to use a `const` global variable in a (non-default) address space with a dynamic initialization, for example: ``` int f(); extern const int __attribute__((address_space(10)))...
When GlobalOpt performs SRA on a global aggregate with an alignment constraint, it seems to propagate the alignment to _some_ of the elements haphazardly. For example: ``` alignas(32) static int...
This is explored in the following test cases. All lines marked "OK??" are cases where a diagnostic is logically missing (and gcc has a diagnostic if it understand the involved...
C++ test case: ``` void f(); // adding cfi_unchecked_callee is OK void (*fptr1)() __attribute__((cfi_unchecked_callee)) = &f; // adding noreturn is NOT ok void (*fptr2)() __attribute__((noreturn)) = &f; // BUG: adding...
### Why are you requesting commit access ? I work in the ASIP team inside Synopsys on a [downstream compiler](https://www.synopsys.com/designware-ip/processor-solutions/asips-tools/asip-newsletters/asip-eupdate-april-2020.html) based on clang/LLVM. We also use clangd/libcxx/... I regularly contribute...
Clang raises a -Wshadow warning for the function parameter `x` in this C++ friend function: ```c++ class Foo { int x; friend bool operator==(const Foo& f, int x) { return...
### Describe the bug When specifying a gcc/clang command-line argument starting with "-loop", it seems this command-line argument is silently dropped. The easiest is to try a non-existing command-line argument...