[all-commits] [llvm/llvm-project] a92eaa: [Libomptarget] Use freestanding stdint.h header fo...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Mar 13 10:33:15 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a92eaa3ebee6ff85549e8f1c50da4958dbbdcb30
      https://github.com/llvm/llvm-project/commit/a92eaa3ebee6ff85549e8f1c50da4958dbbdcb30
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-03-13 (Mon, 13 Mar 2023)

  Changed paths:
    M openmp/libomptarget/DeviceRTL/CMakeLists.txt
    M openmp/libomptarget/DeviceRTL/include/Types.h

  Log Message:
  -----------
  [Libomptarget] Use freestanding stdint.h header for DeviceRTL

The `stdint.h` header provides the standard types. Previously we used
`-nostdinc` and defined these ourselves. This patch switches to a
freestanding version which should work properly. Without
`-ffreestanding` the `stdint.h` header will include other libraries. But
in a freestanding environment it should work given the primitives.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list