From patchwork Tue May 21 07:30:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 90543 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 50AC53858C33 for ; Tue, 21 May 2024 07:37:44 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 2037F3858424 for ; Tue, 21 May 2024 07:31:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2037F3858424 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 2037F3858424 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::335 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716276664; cv=none; b=VlfIewKzFK4hrRJ2YyY5YqKWBFs/y93+gywXOmG21NuWTN8Sl4eR7uFoluPMmwZ6BhgC1FS4K4ewWC32GRcrCmPqSdI+tfVq3/ZkzS6h794val2XAHwY1lXAqnSfsM8zv7L6XPq5gSxlyreI8CLoZcpN01WPsA0rxPuZNHiPDaM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716276664; c=relaxed/simple; bh=ExJWawZ9+Ll15E2mOLZj+rGYD1iy5I/WD+NKnEHG6iA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Ai9CE/iOaipYMfWWKBcQ5TvSzamSFbzjaCzevXE1WdYy5mds7z6TCUpzSp94QMQ7dp6bkIaiVM6gD1qcQME2m29cmcZydFWvOKBMSl31lXgXUHbjzGPqtVi+KBmmcKexOUINwU3D8gsaxKIzteIlBueY0i5SBH7Ox90xv+0g3Y0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-41fd5dc04f0so20788885e9.0 for ; Tue, 21 May 2024 00:31:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1716276659; x=1716881459; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=06ZfP5QJci5mRvtonyPky0jsVRmRyKToo1R43A2MmOo=; b=Z7QGPFITJ0SLd/OwC/hdOYqhLNHEkYrUz7cvsQ5HapV30U4xK3P+eG4zBJQv8KJHbB C35s2cKyyI5vDcaYw3Aidnn6qwJRMPUAoaxFauXQwuK89663SQ7a5AwlkzR787e2uym3 umEPxtn4jV1ca6o5ztzNwyjI7sevXDBHIGcromF3wqwK2e72+YRG5emQ7/NsmsNyIC9L tLbC8/H9f70FiMn9LIB0eNhuwe1uRuL+fqoSDJl1FR324f4wipdDQK7p7uRUiXv11AhR CBv26EW5L5oVSQN/zch4ZBBdmc/mTh2gy+YuMzFCYR+8yy09oh3qx6B1P42znO5Yl599 seCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716276659; x=1716881459; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=06ZfP5QJci5mRvtonyPky0jsVRmRyKToo1R43A2MmOo=; b=qLjOBa2c8C9b0I9Any/4ZwAEjc3kXL6uxAc4OhuTQnq4/SqBVkjzJnAzLkAC8Wqk4j BGFMNTb2TSLnQMyLFJMBtGshLVEP4k58Z9KJAcAfNHANhKZcsz7lOunvIW8fhw/Pnu5x 4kOUlvr3djNE+z7KCn5cEMyAyesqXHLH2yrdekDFALknbihBbtH0J/uHbVDJvpb41hgl cjpL2VvRfW8HUVKzCqbgGXKimxwUq37EoSqg66JHO3Qpsha8zTeWJe33LjR+u98UjEie cUNjfZpZ78yKrjUzMgc4L52W9MRah8kTwWX0GSM4seuWAm2+jd41LhWEtKYQ6e69qPg4 bpgw== X-Gm-Message-State: AOJu0YzzZBlvKmE03Aoh054y1zTEqm1G0zKLlG0NfysHRt9E8ai22QBH m5jzSo6XCHoNiW5Ac6atT30bLybKgnHmeH01azviKiI87uKeT26FH8AYTu6IozLy3nsBj2yX0mM = X-Google-Smtp-Source: AGHT+IHxKRMs7N4V84oaosg/VhF8TkmGeypzysni31tXbitR8e3z7cQ77t5dt1Q22AW/jKoLszm24w== X-Received: by 2002:a05:600c:1d0a:b0:41c:2699:dd9d with SMTP id 5b1f17b1804b1-41feac55694mr311562895e9.28.1716276658929; Tue, 21 May 2024 00:30:58 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:de37:8b1c:1f33:2610]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fccee9292sm453333645e9.37.2024.05.21.00.30.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 00:30:58 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Ronan Desplanques Subject: [COMMITTED 14/31] ada: Remove duplicate statement Date: Tue, 21 May 2024 09:30:17 +0200 Message-ID: <20240521073035.314024-14-poulhies@adacore.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240521073035.314024-1-poulhies@adacore.com> References: <20240521073035.314024-1-poulhies@adacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-13.8 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 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+patchwork=sourceware.org@gcc.gnu.org From: Ronan Desplanques This patch removes a duplicate statement that was useless and could be misleading to the reader by suggesting that there are multiple global variables named Style_Check, while there is just one. gcc/ada/ * frontend.adb (Frontend): Remove duplicate statement. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/frontend.adb | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/ada/frontend.adb b/gcc/ada/frontend.adb index bd0f0c44ff4..ece0e728e4a 100644 --- a/gcc/ada/frontend.adb +++ b/gcc/ada/frontend.adb @@ -158,7 +158,6 @@ begin -- intended -gnatg or -gnaty compilations. We also disconnect checking -- for maximum line length. - Opt.Style_Check := False; Style_Check := False; -- Capture current suppress options, which may get modified