From patchwork Tue Apr 16 03:24:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 1923955 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=kFR9lSoA; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VJTtS68VWz1yYB for ; Tue, 16 Apr 2024 13:24:48 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2C7313858408 for ; Tue, 16 Apr 2024 03:24:47 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) by sourceware.org (Postfix) with ESMTPS id BDE323858D32 for ; Tue, 16 Apr 2024 03:24:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BDE323858D32 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BDE323858D32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:4860:4864:20::2b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713237870; cv=none; b=WxI7C1HMiwXBLTgr38c+kcKX05quy6ce9GKsXVBokkxGVOKBHb969OKbj1IhlI9UzvcVaMRLKIK28IDCvDXgpkXkAdO36MLWN9xNCw/bgMO+XG8dsHt70UqqWq13RWR3JIDtJuPlOoQpKtKw72N3g0J+0FyAD7Y4RJCiurOaaGY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713237870; c=relaxed/simple; bh=uLh61aZWJavJbgG7kR6f+YF8Dizzd8MFiNgk6R74U3Q=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=tekVZBYyBwqvxmnVbldMZi6tu39FTP9QTXQuPp86CFAhFBOiM64yIHDtqsXUqsZqds7OoGwniUtlapiPyouC5lOThIRfJ90ZJAshRkZNMZCD9tW+M3OcJtSylqRwCu5quLpsznlXEgb4yhWk056qeUU2JQK7VfgsWkqxsSpUYiY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-2348a5d1584so840460fac.2 for ; Mon, 15 Apr 2024 20:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1713237868; x=1713842668; darn=gcc.gnu.org; h=mime-version:user-agent:message-id:date:organization:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=YWZ6I+LdaVEF4jtA0CkpKULTvF+Lfoomb/gP7z6n9cw=; b=kFR9lSoA10MqWAF/gWw0sMrE2PYNv4DyWSnBxRsNtPmwPZfKD4LQxYiQ0fD9tnlSIL T1B8Pw8Zg4iGXs2MVIi3FJ6UsWWoTJVYjFTmPArpXvfuqk+5x1/QaODGhKNrQluK9BiH j7l5ACrsCr53YBS/5hRRbnrim8Fb3zJbJPpWKHvMDgAUICUMbXdbHBVpaYKKjaERDQWx 9tVYUy2h8By8aLEXBm40JEhtA5I7UlTikX5qIUMhY5ttD/PA5wvkiTuL9ofw0HZg8uvQ ABx17y55lIVS2WDOvEJ7x2DfSvpR/Y5WnCUwzPpb7h9rgdsj4CccUoEwPfdcCqEZHqlq i3Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713237868; x=1713842668; h=mime-version:user-agent:message-id:date:organization:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YWZ6I+LdaVEF4jtA0CkpKULTvF+Lfoomb/gP7z6n9cw=; b=b/yj+gIgLq+5UFhEf+fPDAU3mmE8A+U8Sffm+VgLDpiOd+rwt5hO8bweSTv0Yh5AL/ bsRWqhl1yNIHCWz0y2qb0DI20mP8TDFXtbvzv+zJ+4/Xj/3IWu3W/it3FwdVTAelYh6m 7r/S+gUqj+X2KyoDANPopRLgW5ZoM3GzBM4kqVQOtvHrmO4x1INu6BmSgAbnVHXi/qy6 5z4bIY2Znf1inJIYYbjti9nyuT5Bw7TB4iqENORbfWkyoF2WUYL8rM0OG1VqStB9YV3N tnrTJjCJATnDJpTFWSZOxgZS35a7v3WDw6b3BkknlCAYCdA3wX7x6fgfvn8RrSI80GJA rVaA== X-Gm-Message-State: AOJu0YwFlBYBqXNec9Ai98qCy5oPvhsvOViFDhUsXtcvSvBMpw+Bdwws I1hqslN5Y6/1VNY3CBcgJnKbvm0zqaflmXkXESUaDVYFkTWmYzV66h0OwOvbeJXy7SlylNWXe5+ 76A== X-Google-Smtp-Source: AGHT+IE29H5cWi7faNqKQk/jRxHbdLpABEWxTNFO8dsJW/b8U5J0Oim2bOZyQXYSzZmXDJMblgoWHA== X-Received: by 2002:a05:6870:2b12:b0:235:3cf:2e57 with SMTP id ld18-20020a0568702b1200b0023503cf2e57mr1856707oab.14.1713237868008; Mon, 15 Apr 2024 20:24:28 -0700 (PDT) Received: from free.home ([2804:7f1:218b:5e2:c43b:e0c4:71a:241b]) by smtp.gmail.com with ESMTPSA id x13-20020aa784cd000000b006ea81423c65sm1171113pfn.148.2024.04.15.20.24.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 20:24:27 -0700 (PDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 43G3OITa2387344 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 16 Apr 2024 00:24:19 -0300 From: Alexandre Oliva To: gcc-patches@gcc.gnu.org Cc: Rainer Orth , Mike Stump , David Malcolm Subject: [PATCH] [testsuite] [analyzer] avoid vxworks libc mode_t Organization: Free thinker, does not speak for AdaCore Date: Tue, 16 Apr 2024 00:24:18 -0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-12.2 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, WEIRD_QUOTING 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Define macro that prevents mode_t from being defined by vxworks' headers as well. Regstrapped on x86_64-linux-gnu. Also tested with gcc-13 on arm-, aarch64-, x86- and x86_64-vxworks7r2. Ok to install? for gcc/testsuite/ChangeLog * gcc.dg/analyzer/fd-4.c: Define macro to avoid mode_t on vxworks. --- gcc/testsuite/gcc.dg/analyzer/fd-4.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/analyzer/fd-4.c b/gcc/testsuite/gcc.dg/analyzer/fd-4.c index 880de3d789607..d104bfdad547f 100644 --- a/gcc/testsuite/gcc.dg/analyzer/fd-4.c +++ b/gcc/testsuite/gcc.dg/analyzer/fd-4.c @@ -1,4 +1,5 @@ /* { dg-additional-options "-D_MODE_T_DECLARED=1" { target newlib } } */ +/* { dg-additional-options "-D_DEFINED_mode_t" { target *-*-vxworks* } } */ #if defined(_AIX) || defined(__hpux) #define _MODE_T #endif