From patchwork Sat Feb 3 03:14:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thiago Jung Bauermann X-Patchwork-Id: 769518 Delivered-To: patch@linaro.org Received: by 2002:adf:9bca:0:b0:33a:e5bd:fedd with SMTP id e10csp1210153wrc; Fri, 2 Feb 2024 19:14:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEv5oA2apVzlQa+LOIjsaqnS6css84j3jQqCRleVignIWb59xW8kXhkIx0xiO/EgEw3jVw0 X-Received: by 2002:a05:620a:2453:b0:783:fe6b:4c63 with SMTP id h19-20020a05620a245300b00783fe6b4c63mr9600135qkn.61.1706930072700; Fri, 02 Feb 2024 19:14:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706930072; cv=pass; d=google.com; s=arc-20160816; b=BltBpoid+OpyY/2B4+4NwSGc8/SFI9Wt9PqviqOdf3NnNi4gC2R0LeBCTq5L9jqzlI 3F5ljmjcObPIWi2lImPaY8HyNQw3rpSp7DrA/d5XAh6XqSQIN1leHRzRcSCwTHKD/uur rDbXKj1w0OdqJFvj4/+tQZ6yBpmd2r8NjStDf1Xgd7wBbDO+6XgTDOBmmJNrE76GmGSW 2D4fsOM5oTeRVSPriVSiMXal8TEeAn85W182xqpo7Hhy7CGjhFZ2vmGS9jpxi1C7nsN4 tcqOa4QRIIkMxoZekMePvoQbkCFSpkyHRB6N2ad+ms4tNnyRjYs38NR7H6xa3oD42a7H OkDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=DSa7sJpvS+sLVlXNX6RiuBDkj2gxxVgsq6w9reFNlOE=; fh=teNoDhq5CGIhNlDiUBThm7zzfht93Gv6/C/5Lt2TC3U=; b=jlihRMF2/CYqzZqG3KSt6Ko0IWM2M/xC0nDPbik/fVVT92x5uf43R9KgOt6/eSryx8 nxngfuXSzkY8nJc1WVs3ImQ6j8C5wJyulZ8IxkQk6+Bkctb7cfu3xBcAMWfunIUSf4y6 tH2nqOWv6buY/jgB1+kOMR0eXKR1qR4YntMIXfWY+3jb/wE+MKzpNnewj/XDzOv+Ftmv /nsEc21mQMA9f6GTz5WcTq5r9jN0fJyWPbcy4G0mifqKfU0+WcnPTSRHzk9xjWg/3gWg 4cF2SWKGnucliHcozEKEEh4y243BmK9k1DbZ1VfV7BPntVB2LhHUy1PiNkR+LspnKOp4 2Nag==; darn=linaro.org ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AZcLTS6e; arc=pass (i=1); spf=pass (google.com: domain of gdb-patches-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gdb-patches-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCUFG89m0pPs4EI/Gdrd2bZ27HKFDu21Vrb7HkPZzkWGc/MvmArR2lsu30ABTjZJpzhj66ocvG54oh1D30GieUxF Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id wv1-20020a05620a5a0100b00783f7abe678si3289559qkn.586.2024.02.02.19.14.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 19:14:32 -0800 (PST) Received-SPF: pass (google.com: domain of gdb-patches-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AZcLTS6e; arc=pass (i=1); spf=pass (google.com: domain of gdb-patches-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gdb-patches-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 516F73858289 for ; Sat, 3 Feb 2024 03:14:32 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id DC6B93858403 for ; Sat, 3 Feb 2024 03:14:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DC6B93858403 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DC6B93858403 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::235 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706930056; cv=none; b=UlumNHDA4ibwCVF8WQvwoz4ZfuvJVeU7mDJ3/DsaFODVcMLq3m8hmOzFK5sKr62YrN2x8uKRbWY9H+7xe+AZt93L5HQHFec2E8jsiP7duEzonqDtmQRB6avfkLtKzrA9VeMLC/Uu/8aGUzq9CVqNHMXdiRCu8MtpSSxsNVR34ts= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706930056; c=relaxed/simple; bh=Vk+p4l2rwOSprBDDlyA6pKQBUBdkNbmun1w+9DO1Elw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=BoF3+XCO5lOXU1jaHSluUtkvbIV2uaq/7dcMUXubepf1+3hw5Mb5D9Prz/WOcvXUdrvg/3TUUcXcDJuDWpOFxNB0SsgQVVDp5+ZHhrhknt3d/J4P4dQd5T56F93G5fE4EnOVYUggUHZnRSMKZeOuWjIwtW9IYdf9FaHUb7GIl4M= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3bfc979e880so364744b6e.1 for ; Fri, 02 Feb 2024 19:14:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706930051; x=1707534851; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=DSa7sJpvS+sLVlXNX6RiuBDkj2gxxVgsq6w9reFNlOE=; b=AZcLTS6em668xtG4gRcTBswawchWVniFKju77aAD0NFLT8FpT3eMuT/1PL6s4HfOwW mwK7NW2dzM0NNUfN0fhsrM9IKT8zalk+fyEHa5A1xrKWutPHsBtQSU5Szrxam2W+QEVd tOoraPreazox3QQcAtaAtu/SYaBBJ+WAljaelR+7Dgz8G30NXPuUR7IZZ1qFgx0jhbBl W+c6v3exJO3b7Xy7hLBa4lo4lfiT+dSePQbY48dI6lPZ+SDpYS53B12vmusNBKxb6X8O YTgta4HskxICFLhLIMtCODJDK8Ag2d16+s9ehMNGCcbZAgo2u+lsAnTgd6w/oVLVjilN O/lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706930051; x=1707534851; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DSa7sJpvS+sLVlXNX6RiuBDkj2gxxVgsq6w9reFNlOE=; b=GB5EtFyBNsfYME0a4+qvPyi7psCxAyXPB1aiGP4ElEdkh2E92uc4D6xKyoY+kfwWWg SSV5grmAORnKsg8Cyhpk9phX84tbkF8Pv2MQ82V30lmda40cckR6Fi/O9H0AZYbiPdHO O+Z4aWFMM7lS+kH2IZnjpNO+0BDnlcjGb81WOJWSZmuXt7rq4w/7m+7T7MrbbM29epH6 Dkpq5vwoLtA6izagCy7d0hDWIp4ydFBsPuk7Bd0ilRKdHPcQadV3AcS66O0WamUU+KSk aXxpksQN1cNc3lCAK/ytfh54HZMU3peMfTJ3YEi+BOSXQVScGW7zb2EvidIy1OJjNTxP ikHQ== X-Gm-Message-State: AOJu0YzaKI+NE7szEuec7PvyFptpUuJV5NbWHZtrKg/TqCOZ+WPJe/ho 4kq6cpXzxMcY2EfBye27shscpmYawUQgZESPU7oLn81HGPkQc3jF5eaHML+2XA4mQPK03NZXX7w y X-Received: by 2002:a05:6808:3a11:b0:3be:9c35:fd47 with SMTP id gr17-20020a0568083a1100b003be9c35fd47mr10359939oib.20.1706930051251; Fri, 02 Feb 2024 19:14:11 -0800 (PST) Received: from localhost ([2804:14d:7e39:8470:bf8e:4c25:dfaf:feb1]) by smtp.gmail.com with ESMTPSA id d11-20020a63d64b000000b005c661a432d7sm2534863pgj.75.2024.02.02.19.14.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 19:14:10 -0800 (PST) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: [PATCH] Fix disabling of year 2038 support on 32-bit hosts by default Date: Sat, 3 Feb 2024 00:14:08 -0300 Message-ID: <20240203031408.137939-1-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patch=linaro.org@sourceware.org Commit e5f2f7d901ee ("Disable year 2038 support on 32-bit hosts by default") fixed a mismatch between 64-bit time_t in GDB and system headers and 32-bit time_t in BFD. However, since commit 862776f26a59 ("Finalized intl-update patches") gnulib's year 2038 support has been accidentally re-enabled — causing problems for 32-bit hosts again. The commit split baseargs into {h,b}baseargs, but this hasn't been done for the code that handles --disable-year2038. This patch restores the intended behaviour. With this change, the number of unexpected core files goes from 18 to 4. Tested on armv8l-linux-gnueabihf. --- configure | 3 ++- configure.ac | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 670684d83d15..6466b97f3ec0 100755 --- a/configure +++ b/configure @@ -10313,7 +10313,8 @@ hbaseargs="$hbaseargs --disable-option-checking" tbaseargs="$tbaseargs --disable-option-checking" if test "$enable_year2038" = no; then - baseargs="$baseargs --disable-year2038" + bbaseargs="$bbaseargs --disable-year2038" + hbaseargs="$hbaseargs --disable-year2038" tbaseargs="$tbaseargs --disable-year2038" fi diff --git a/configure.ac b/configure.ac index 88b4800e298f..1300a805fd8d 100644 --- a/configure.ac +++ b/configure.ac @@ -3432,7 +3432,8 @@ hbaseargs="$hbaseargs --disable-option-checking" tbaseargs="$tbaseargs --disable-option-checking" if test "$enable_year2038" = no; then - baseargs="$baseargs --disable-year2038" + bbaseargs="$bbaseargs --disable-year2038" + hbaseargs="$hbaseargs --disable-year2038" tbaseargs="$tbaseargs --disable-year2038" fi