Skip to content

Commit 01ad7b2

Browse files
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@main
1 parent b32e1dc commit 01ad7b2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎Source/bmalloc/libpas/src/libpas/pas_mte.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2424
*/
2525

26+
#include "pas_config.h"
27+
28+
#if LIBPAS_ENABLED
29+
2630
#include "pas_mte.h"
2731

2832
#if defined(PAS_USE_OPENSOURCE_MTE) && PAS_USE_OPENSOURCE_MTE
@@ -42,3 +46,5 @@ void* pas_mte_system_heap_realloc_zero_tagged(malloc_zone_t* zone, void* ptr, si
4246
}
4347
#endif // PAS_ENABLE_MTE
4448
#endif // defined(PAS_USE_OPENSOURCE_MTE) && PAS_USE_OPENSOURCE_MTE
49+
50+
#endif /* LIBPAS_ENABLED */

0 commit comments

Comments
 (0)