[all-commits] [llvm/llvm-project] 215dc2: [AVR] Use the correct address space for non-protot...

Ayke via All-commits all-commits at lists.llvm.org
Wed Apr 15 14:45:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 215dc2e203341f7d1edc4c4a191b048af4ace43d
      https://github.com/llvm/llvm-project/commit/215dc2e203341f7d1edc4c4a191b048af4ace43d
  Author: Ayke van Laethem <aykevanlaethem at gmail.com>
  Date:   2020-04-15 (Wed, 15 Apr 2020)

  Changed paths:
    M clang/lib/CodeGen/CGExpr.cpp
    A clang/test/CodeGen/address-space-avr.c

  Log Message:
  -----------
  [AVR] Use the correct address space for non-prototyped function calls

Some function declarations like this:

    void foo();

do not have a type declaration, for that you'd use:

    void foo(void);

Clang internally bitcasts the variadic function declaration to a
function pointer, but doesn't use the correct address space on AVR. This
commit fixes that.

This fix is necessary to let Clang compile compiler-rt for AVR.

Differential Revision: https://reviews.llvm.org/D78125


  Commit: d9e5691843a932a6c0633fa6f07bc084dcfd4a93
      https://github.com/llvm/llvm-project/commit/d9e5691843a932a6c0633fa6f07bc084dcfd4a93
  Author: Ayke van Laethem <aykevanlaethem at gmail.com>
  Date:   2020-04-15 (Wed, 15 Apr 2020)

  Changed paths:
    M compiler-rt/lib/builtins/fp_mode.h

  Log Message:
  -----------
  [builtins] Fix unprototypes function declaration

The following declarations were missing a prototype:

    FE_ROUND_MODE __fe_getround();
    int __fe_raise_inexact();

Discovered while fixing a bug in Clang related to unprototyped function
calls (see the previous commit).

Differential Revision: https://reviews.llvm.org/D78205


Compare: https://github.com/llvm/llvm-project/compare/5e04b5f2fa84...d9e5691843a9


More information about the All-commits mailing list