-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Flang] Define c_int_fast16_t and c_int_fast32_t for PowerPC. (#88292)
On Linux, PowerPC defines `int_fast16_t` and `int_fast32_t` as `long`. Need to update the corresponding type, `c_int_fast16_t` and `c_int_fast32_t` in `iso_c_binding` module so they are interoparable.
- Loading branch information
1 parent
a9d4ddd
commit 8136ac1
Showing
3 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
! Test predefined macro for PowerPC architecture | ||
|
||
! RUN: %flang_fc1 -triple ppc64le-unknown-linux -cpp -E %s | FileCheck %s | ||
! REQUIRES: target=powerpc{{.*}} | ||
|
||
! CHECK: integer :: var1 = 1 | ||
! CHECK: integer :: var2 = 1 | ||
|
||
#if defined(__linux__) && defined(__powerpc__) | ||
integer :: var1 = __powerpc__ | ||
integer :: var2 = __linux__ | ||
#endif | ||
end program |