Repository navigation
Commit 01ad7b2
committed
REGRESSION(320000@main): [libpas][GCC] Build broken on 32-bits.
https://bugs.webkit.org/show_bug.cgi?id=327757
Reviewed by Yusuke Suzuki.
Building with GCC for any 32-bit target fails in pas_mte.c with "unknown type name '__uint128_t'".
libpas has no 32-bit support since 318383@main, which also made sure that it is not included in
32-bit builds, and every libpas source starts with #if LIBPAS_ENABLED, so that it compiles to
nothing there. However, pas_mte.c doesn't have that guard. Before 320000@main this didn't matter,
because pas_mte.h only included pas_utils.h when MTE was enabled. Since 320000@main it includes it
unconditionally, so pas_mte.c now compiles pas_utils.h, whose definition of pas_pair for GCC only
covers 64-bit targets: it is a __uint128_t, which GCC doesn't provide on 32-bit targets.
Clang builds are not affected, because with Clang pas_pair is a struct.
Add the same LIBPAS_ENABLED guard that the other libpas sources have, so that pas_mte.c compiles
to nothing when libpas is disabled.
* Source/bmalloc/libpas/src/libpas/pas_mte.c:
Canonical link: https://commits.webkit.org/323902@main1 parent b32e1dc commit 01ad7b2
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| 49 | + | |
| 50 | + | |
0 commit comments