From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id EDA4D383575A for ; Tue, 28 Jun 2022 07:02:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EDA4D383575A Received: by mail-wr1-x42e.google.com with SMTP id e28so11043488wra.0 for ; Tue, 28 Jun 2022 00:02:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Grjhhi21PW+RlE8bEZulzd9miWaA12iCOZdkuWoV5L8=; b=MgDBPirXswxqRpQi5maudtXh6jtFO4ooG+oCNCC74WiKoHGbAlXMFq6ihu1Y2WKhwR q6mvlFi0WmiFBsI/FeebhozcK6iJ7VeuI3iQbB2SzFrz0TCJ8d1zTz7wrs9rJLXA609J i2NGZqqMIy8YPiPHiNOR929TVyI8VLgHpgjWfOoG1LUANqRgucOeuUTIFpNd+Vc5VySZ LCzHya7iMpKQi8w+26Dzho5nKvmQvNQ4Chiaa9BdufDxx3Kw1shmVhIENaJxdNiym5Oj znKaPmiKLrN+WOnTPf6R9M1fvMmnyHh4o54Xcsg/qd3OmJ1p+98EdL4iIY2W8DcX43cs Emaw== X-Gm-Message-State: AJIora/bqoGLQ6ten+7jrN60q7/sn4/SlqrufsHiWTtetgzDv+jjYP9v d8RgZBQLeyeYEqpY54S8V8wihA== X-Google-Smtp-Source: AGRyM1s3hQ7LNBGGa8eSv+rs3EUBPUg2oAGHGsfsQY4CXQ+zTT4ddMnGep8h/bEJkQEwawY8KQ0xnQ== X-Received: by 2002:adf:e546:0:b0:21b:8285:cc90 with SMTP id z6-20020adfe546000000b0021b8285cc90mr15103825wrm.445.1656399750545; Tue, 28 Jun 2022 00:02:30 -0700 (PDT) Received: from localhost ([45.147.211.82]) by smtp.gmail.com with ESMTPSA id e2-20020adfdbc2000000b0021b9f126fd3sm12933794wrj.14.2022.06.28.00.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 00:02:30 -0700 (PDT) Date: Tue, 28 Jun 2022 07:02:29 +0000 From: Arnaud Charlet To: Alexandre Oliva Cc: Jan-Benedict Glaw , Yannick Moy , gcc-patches@gcc.gnu.org Subject: Re: [Ada] Remove useless pragma Warnings Off from runtime units Message-ID: <20220628070229.GC657665@adacore.com> References: <20220512124009.GA781082@adacore.com> <20220627185825.ed6rcjbjo5p2hqzp@lug-owl.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2022 07:02:39 -0000 > IIRC, this latter requirement is particularly important for canadian > crosses, but it applies as a general recommendation, and GNAT often > takes advantage of that to use features that will be disregarded by > stage1 (no optimization, no fatal warnings, limited runtime, etc), but > that must be available in later stages and in cross builds, which is > easy to satisfy by using the same compiler version, and which is a given > when bootstrapping. > > Of course it isn't always the case that you will run into problems when > deviating from these recommendations, so it's perfectly possible that > you get lucky building it all using compilers that don't meet the > recommendations to get started, but that's counting on luck, not on a > reliable procedure. > > See note Prerequisites in the GCC Installation manual for more details. Right, see https://gcc.gnu.org/install/prerequisites.html (GNAT section). The only combination that is guaranteed to work is to use the same version for the native compiler to build the cross. The error reported here is one example showing why using another version will not work in general. Arno