From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) by sourceware.org (Postfix) with ESMTPS id 85CE23858D20 for ; Wed, 27 Mar 2024 19:07:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 85CE23858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rtems.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 85CE23858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.128.180 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711566470; cv=none; b=SHKVkEwzNa7SxEEjwGYPgSyNLjse57WIWXoDfg/DaDCI3ZQqleqk21tQGIUAICr79rolIyyavoALjEM63raRHtP5BpeWJADexcnP2SCCPz0rUL31qeIDiIkaLbffX51D0XrjKDeGzw1HAssdrqPsLzaT+ekUg06LdSvIat4J0T0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711566470; c=relaxed/simple; bh=kEBlduKgLjGmWkUeoXCqVid6emhmbO/YgvEFo7jn96s=; h=MIME-Version:From:Date:Message-ID:Subject:To; b=OdYrVD3tzY23hUsYb+gX1DHtgr+OHsVoPi4jpcBMFmmTIwFNXvxOn5yJxN/1FjupUSAy8skDm3IBZf81kL+SeWZkeWBqxpR/3FIsLjnX1PZemD6qjPQy3doVAf18jE615xsQt4dRKmxvpi9sWQ/RgCmlF2zsobrCtWi2+z+nceI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-60a0579a968so2000257b3.3 for ; Wed, 27 Mar 2024 12:07:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711566461; x=1712171261; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CHl+dw5grNP+k6TywO0pN8EynMRp/Bx2cY7y25m8Ov0=; b=dGzmRTVxO659koByQ5Ye8zFINdj4FUDeZ2JednicRd5UvAiXzoWf1u4txcsOcj3Xf+ 8i48rFutp+e4wmgWo1LEahuM0KceBKV8Lr2qbwsa3+o0eLgY+LTdf/Pz0yMzDcUmtfLa Y8LMRd1CdBc+ToLYSqnPsf4RbCevxx9c5fQZhD/nQpV5wkM0hp7qVPFXH2EsnhWIlOKX JKKuj3L1fVxPfr4Ipk4m8KjBpSO1I9HAqvEc4kK7s8SOjZEBYYVOjgs4RJO7uX2YIeBa IKiwGYdWATHzc/0XTu7QEb4MijwCAO3J8pYVWG+OK72g2BzlVJ+a78F6LsaATRfZKaAM xVnw== X-Gm-Message-State: AOJu0YwXGTiDJ32iejmiuUD/Oq/9BC5G3lCfKPnfkvgcvQtG8LWUoplo khElYiBV4kJ+OJGNZcQdBw44aSwaIm4hQK94MI5/NOtzHqfv90nZwOR9kFNt X-Google-Smtp-Source: AGHT+IH3Rpw64S0IUk4S3rT/i07XwZcLLVowd2P2e9DyMw7qNFnv+LukmCt09AHoK7JDtPCCXxv3Qw== X-Received: by 2002:a25:ac02:0:b0:dcd:1854:9f43 with SMTP id w2-20020a25ac02000000b00dcd18549f43mr837493ybi.3.1711566461413; Wed, 27 Mar 2024 12:07:41 -0700 (PDT) Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com. [209.85.219.169]) by smtp.gmail.com with ESMTPSA id f133-20020a251f8b000000b00dcdb3dffa3dsm2089713ybf.39.2024.03.27.12.07.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Mar 2024 12:07:40 -0700 (PDT) Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-dc6d8bd612dso147713276.1 for ; Wed, 27 Mar 2024 12:07:40 -0700 (PDT) X-Received: by 2002:a25:2d3:0:b0:ddd:696a:8656 with SMTP id 202-20020a2502d3000000b00ddd696a8656mr691042ybc.41.1711566460691; Wed, 27 Mar 2024 12:07:40 -0700 (PDT) MIME-Version: 1.0 References: <8813b548-3356-4059-b642-38dcfde6f19d@arm.com> In-Reply-To: <8813b548-3356-4059-b642-38dcfde6f19d@arm.com> Reply-To: joel@rtems.org From: Joel Sherrill Date: Wed, 27 Mar 2024 14:07:28 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Building Single Tree for a Specific Set of CFLAGS To: Christophe Lyon Cc: gcc@gcc.gnu.org Content-Type: multipart/alternative; boundary="000000000000e636390614a91e40" X-Spam-Status: No, score=-3031.4 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000e636390614a91e40 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 27, 2024 at 3:53=E2=80=AFAM Christophe Lyon via Gcc wrote: > Hi! > > On 3/26/24 22:52, Joel Sherrill via Gcc wrote: > > Hi > > > > For RTEMS, we normally build a multilib'ed gcc+newlib, but I have a case > > where the CPU model is something not covered by our multilibs and not o= ne > > we are keen to add. I've looked around but not found anything that makes > me > > feel confident. > > > > What's the magic for building a gcc+newlib with a single set of librari= es > > that are built for a specific CPU CFLAGS? > > > > I am trying --disable-multlibs on the gcc configure and adding > > CFLAGS_FOR_TARGET to make. > > > > Advice appreciated. > > > > I would configure GCC with --disable-multilibs --with-cpu=3DXXX > --with-mode=3DXXX --with-float=3DXXX [maybe --with-fpu=3DXXX] > This way GCC defaults to what you want. > Thanks. Is there any documentation or even a good example? I found --with-mode=3D[arm|thumb] but am having trouble mapping the others back to GCC options. I have this for CFLAGS_FOR_TARGET "-mcpu=3Dcortex-m7 -mthumb -mlittle-endian -mfloat-abi=3Dhard -mfpu=3Dfpv5-= sp-d16 -march=3Darmv7e-m+fpv5" I think that means... --with-mode=3Dthumb for -mthumb --with-cpu=3Dcortex-m7 for -mcortex-m7 --with-float=3Dhard for -mfloat-abi=3Dhard That leaves a few options I don't know how to map. --joel > > Thanks, > > Christophe > > > > Thanks. > > > > --joel > --000000000000e636390614a91e40--