From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by sourceware.org (Postfix) with ESMTPS id C1626385841D for ; Fri, 17 Sep 2021 02:46:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C1626385841D Received: by mail-ed1-x532.google.com with SMTP id j13so24258100edv.13 for ; Thu, 16 Sep 2021 19:46:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8BJqChnFMHSjF6g4IbbwocZRTsk7FuvI8Ya5EmyaXiU=; b=O+lP+0Pxw4YPD7oFT0u8sanbJIKV55Y4noDSMJYszWYbbmnoBSCMBwtDSow3GX+tRo hvoWKh2bX1Bzn+OlZSYGZNzD6zwHLZPj28OHP+Rwu8klkA7BKjmLtb01+gB3xh4yd+mU j0Ej49wtApuyfpZstwjITpWe6d45r9MOly+U7Z9R7nzXy9hBTqa5vA17jOhVm4v4Y8su M2tSnWZuM0MlcKVjAD1Qh1RdZ4JbmJ+Qsyu0vurN2+yU6sOUGYXn2xoGRzpDHrvHPr3S kN7bj1VWlWlh10HLF/HKvwMYP6Mw/gMtXwM1WmSJA3qJMb4owr6DhgR85K3ez+b6Uycj UtaA== X-Gm-Message-State: AOAM533KKkYXkDtoSzExJTT0LIwUwKdPW4imat46SWVKNJm+vXwmrB7h FsugkQIJ2rq3+qH9BXzWxzYqZDDnSkWihPFZDnQ= X-Google-Smtp-Source: ABdhPJziP23ecuzHhZIJzI3W+ZZ9e9RW+UspJtF3YF6fLWSauSFPsKvjiBVKgP8SzLiqQbxhxtEQ7e1EPjj/Bz1nF8s= X-Received: by 2002:a05:6402:3128:: with SMTP id dd8mr9658353edb.383.1631846817885; Thu, 16 Sep 2021 19:46:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: NightStrike Date: Thu, 16 Sep 2021 22:46:44 -0400 Message-ID: Subject: Re: how to get -march=native's value? To: Jonathan Wakely Cc: unlvsur unlvsur , gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2021 02:47:00 -0000 On Tue, Sep 7, 2021 at 3:57 AM Jonathan Wakely via Gcc-help wrote: > > On Tue, 7 Sep 2021, 08:03 unlvsur unlvsur via Gcc-help, < > gcc-help@gcc.gnu.org> wrote: > > > I try to cross compile to another slower machine. -march=native works on > > that architectures, but I would like to know what is the value of > > -march=??? For -march=native. Is there a way to print march value out?? > > > > It doesn't choose a single value. It enables all the individual options > like -msse and that combination of options might not correspond to any > particular -march value. Is that true? I mean, in principle, I know I've reported a bug where -march=native scanned /proc/cpuinfo (or however it got the info) and came up with a different result than -march=k8 (or whatever I was reporting at the time), but that was a bug that some helpful people fixed. If gcc doesn't have an -march for a particular esoteric arch, then fine, but if it does, I'd think that this would be a bug similar to what I experienced previously.