From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id 69EF63858D3C for ; Sat, 24 Sep 2022 09:28:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 69EF63858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x62f.google.com with SMTP id sd10so5095228ejc.2 for ; Sat, 24 Sep 2022 02:28:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=dCNQObv8x8IiAAoaj3wAnrFQ5Pd90tmjnPoNcPhFbUs=; b=dCww0V/hCq/2WAEmrJSb5roDsmosAN+HbKSbFJFaQlD7NouJghlEJFKr+Nq+x7GxH0 vOHkGcpOz1OI0ybwBIKM+iB4Q9dy0F7jy/6cxMFy2hBCkLn2AnbdIOOrxqzfpAkxRQz7 3EdLlRVpVDt+rEds5Lv4S0HORS0hzs4QUUk+nmCckRMte+C2zlWlW9Wsd/4ym9uETmzc 83ngBb25oPXptAVvRghxh2i1RVLm2hHbJTMYIRyzKWJNFqxoJvUA+Gx+kQ3gZpM7+12e /4ly8d4Vu1iKxVVFu5ISq/85Ppurm4SZbSgzaRamOIH6bvkKiqoWtFhj51QDcapt4BRv l5cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=dCNQObv8x8IiAAoaj3wAnrFQ5Pd90tmjnPoNcPhFbUs=; b=6XUIbyp4obgteruBikvYtKf+avUnrunoAowTvcmHYQYakifE0gGu9Je1Hcmx4Y577F Q626Hao6V9yzyL+I4V64A/yzmjDwlu1UonMy5jgs+FGEwnoQDjM541iqSOKLT76ZxQtC yFqkQdV5X2TGG3wh1VjGB9Jy3Nf37r3XaRe/3g4yoSJ+97ed9Lo0H/SuS8UqAz+AJoDO 7I5sV+wR/uN2iZ1xcNJlU+35kZ0FRwuslI67hxUtchhUF2OzNg169Fr9H2DewoLP3W47 PTtr0F8Qa8R88wNfYtawj+ki1fOPbgEVXgnIDNVBVHrI7bA1zYiOm7y7X9YUg2FxmmM7 JhqQ== X-Gm-Message-State: ACrzQf0dvklPIzM1Jil1hPfwjv9AlD9Jm8e4xNDLjVzGFmLHcJCqrGWZ P2i89+ZJHKsXSQeZUlFlhfi+xAAIo7PYzPvd+8k= X-Google-Smtp-Source: AMsMyM7cHlgRf+KpXRNI/DX+DWNLLi3UMJ5HRPKDYi0wEWyNnvdRgAwPX5C2x7rFPtZjyc4rbgHHzUXM1fsdkq5Zu7E= X-Received: by 2002:a17:906:58ca:b0:782:ca5b:ea93 with SMTP id e10-20020a17090658ca00b00782ca5bea93mr4121855ejs.491.1664011709012; Sat, 24 Sep 2022 02:28:29 -0700 (PDT) MIME-Version: 1.0 References: <51543dff-d479-5e6e-e046-46ce9e64c354@126.com> <90f24cd806655b052a2d1ac190e6b2ed53fbbfce.camel@xry111.site> In-Reply-To: From: mizo 91 Date: Sat, 24 Sep 2022 11:28:22 +0200 Message-ID: Subject: Re: CreateProcess No such file or directory To: Xi Ruoyao Cc: LIU Hao , gcc-help@gcc.gnu.org Content-Type: multipart/alternative; boundary="000000000000d1629b05e968eaeb" X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,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 List-Id: --000000000000d1629b05e968eaeb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You are right that changing this behavior would have serious consequences. But wouldn't you agree that gcc could somehow distinguish whether the input files is of *.c or *.s source kind, and then decide if it should pass -I to the assembler or the preprocessor or both? That would be more in line with what I would expect after reading the documentation. Passing -I to the assembler when invoking the command 'gcc -c source.c' seems unnecessary. Of course I admit there could be something I'm missing here. sob., 24 wrz 2022 o 07:13 Xi Ruoyao napisa=C5=82(a): > On Fri, 2022-09-23 at 23:11 +0200, mizo 91 wrote: > > > From GNU assembler manual: > > > > > > -I dir > > > Add directory dir to the search list for ".include" > > > directives. > > > > > > So -I flags may be for preprocessor, or for assembler. > > > > I'm not calling the assembler. Im calling gcc. Check what gcc manual > > have to say about it. > > The problem is it's common to use "gcc -c foo.s" instead of "as foo.s -o > foo.o" in the building system of the packages. It can ensure the > assembler used for both C files and assembly files the same one. If you > suddenly stop to pass -I options to the assembler, you can break the > building process of existing packages. > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University > --000000000000d1629b05e968eaeb--