From 501bf8d14bbe04e975b396203cc272b875efe916 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Mon, 27 Apr 2026 22:09:22 +0200 Subject: [PATCH] local-64b-align Avoid 64b typing error on RPC with 64b members in structures, while we migrate to the fixed 64b structure alignment. To be removed after people have migrated both gnumach libc+hurd rebuilt against fixed mig. Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name local-64b-align.diff --- hurd/Makefile | 14 ++++++++++++++ mach/Makefile | 3 +++ 2 files changed, 17 insertions(+) diff --git a/hurd/Makefile b/hurd/Makefile index 2239ea348..5953e29b9 100644 --- a/hurd/Makefile +++ b/hurd/Makefile @@ -182,6 +182,20 @@ generated += $(inlines:=.c) CFLAGS-hurdstartup.o = $(no-stack-protector) CFLAGS-RPC_exec_startup_get_info.o = $(no-stack-protector) +CFLAGS-RPC_file_record_lock.c = -DTypeCheck=0 +CFLAGS-RPC_file_statfs.c = -DTypeCheck=0 +CFLAGS-RPC_file_utimens.c = -DTypeCheck=0 +CFLAGS-RPC_file_utimes.c = -DTypeCheck=0 +CFLAGS-RPC_io_select_timeout.c = -DTypeCheck=0 +CFLAGS-RPC_io_select_timeout_request.c = -DTypeCheck=0 +CFLAGS-RPC_io_select_timeout_request.os= -DTypeCheck=0 +CFLAGS-RPC_io_stat.c = -DTypeCheck=0 +CFLAGS-RPC_io_stat_reply.c = -DTypeCheck=0 +CFLAGS-RPC_login_get_idle_time.c = -DTypeCheck=0 +CFLAGS-RPC_proc_getchildren_rusage.c = -DTypeCheck=0 +CFLAGS-RPC_proc_wait.c = -DTypeCheck=0 +CFLAGS-RPC_proc_waitid.c = -DTypeCheck=0 + # Make it simpler to unwind over INTR_MSG_TRAP CFLAGS-intr-msg.o = -fno-omit-frame-pointer CFLAGS-intr-msg.os = -fno-omit-frame-pointer diff --git a/mach/Makefile b/mach/Makefile index 38264c7af..83553eb0f 100644 --- a/mach/Makefile +++ b/mach/Makefile @@ -63,6 +63,9 @@ CFLAGS-RPC_i386_set_gdt.o = $(no-stack-protector) CFLAGS-RPC_i386_set_ldt.o = $(no-stack-protector) CFLAGS-RPC_task_get_special_port.o = $(no-stack-protector) CFLAGS-RPC_thread_set_state.o = $(no-stack-protector) +CFLAGS-RPC_host_get_time.c = -DTypeCheck=0 +CFLAGS-RPC_host_get_time64.c = -DTypeCheck=0 +CFLAGS-RPC_host_get_uptime64.c = -DTypeCheck=0 # Translate GNU names for CPUs into the names used in Mach header files. mach-machine = $(patsubst powerpc,ppc,$(base-machine)) -- 2.30.2