From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by sourceware.org (Postfix) with ESMTPS id A3B19385DC0C for ; Mon, 13 Apr 2020 20:45:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A3B19385DC0C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jimw@sifive.com Received: by mail-vs1-xe2a.google.com with SMTP id w14so6284808vsf.7 for ; Mon, 13 Apr 2020 13:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YI4F3If6aZ4eaC72pnR3rtvPtBuuz5ZySHdI8VQ+ol0=; b=QR5JsJQIZ+zn7pHKgEnyA02mcL8GKJ7U/rllRD+mlC0AkTYzDbQxKhuP1b6XE4YKcx c9EpqGCfsqNg6AdCbe06j1zhwQQtWmNvYqr+c7OR+3qWPbcVxANI82umpEb/K6Yut/ff WuBs4jENT8/FUZAbUSTP4EeUXNG9aYspahUrXdZ4rqZsTpQAIgIaJmw97XoHZB/ROIqS P6yTV5FJy0VWysX9B6c5vlUMRR3qRAmmGhSpDmEm14UB/OR4aOKH2NmFAwpxu4jC+cyx jHRwQjhHea3Lf/kpAQNiOfWW6ZojHZ80iGnuPxTPhY9IWMq+kKqoCfZekHUpRrqkojVe 9vLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YI4F3If6aZ4eaC72pnR3rtvPtBuuz5ZySHdI8VQ+ol0=; b=QSnazFZMzjbLiXp0p1S/EhodNkHm4U3J3nz8reBAcvjmcLn9E2/TugfVhgrQa+dZo8 HtZ0OTSYDUJeZwP6JKsP9Q3x6evt9123vyxSOdyS0jMsBtDLn0nG4DKXUH8n8zae0O3i uscL+OOk7w4JmCyRAmu1nm7jqXAp17fEHM9Df9QQDpMOd0QHiPWh94C0iQsmz2vGGUS/ GfmWp3F51EXf7rqO1jUiyAV2u4mdmx4m8lV43ZrNJr1vLR8klwo2zvtTNMc+ftxWmiX/ Q9VdQV3+K0+WBgN51N8gh5kLJ6+cZrKh3fq7Rwql+xw6Cr9j4u1D/z2lj3+BCm+ct8KN dcOw== X-Gm-Message-State: AGi0PuZ9WCe9vRiyU2MTpZz16BgxfKeO5ClkwcqHAcIF32TPIyRtzaqW yzRSOvWNZuZOi3L+xsXTFaQBHHFW6F9xWYzFGUxEwQ== X-Google-Smtp-Source: APiQypIXxzfrpy6Ve3BBUK/hQLOZg0Ju0pQPeHmuNjCXNzYlf3zSv0iVgR6ha5zuN/qeWA3Ww5uiz1WLNwesKowOkNs= X-Received: by 2002:a67:945:: with SMTP id 66mr13113478vsj.72.1586810706170; Mon, 13 Apr 2020 13:45:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jim Wilson Date: Mon, 13 Apr 2020 13:44:55 -0700 Message-ID: Subject: Re: How to customize GCC builtin search paths To: William Tambe Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Mon, 13 Apr 2020 20:45:07 -0000 On Sun, Apr 12, 2020 at 9:06 AM William Tambe wrote: > I can hardly find examples on how to use startfile_prefixes. Currently > when running gcc as follow: > arch-elf-gcc -v test.c > > I get the following excerpt showing how gcc looks for includes: You have the source code. You can find a lot of info by using grep to search for obvious things, like /usr/include for instance, and then follow the code to see where it takes you. But include files are handled differently than startfiles. This is a different question than the previous one. See cppdefault.c. It isn't a good idea to try to change this. Stuff will break. See also include_prefixes in gcc.c. Jim