From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 749 invoked by alias); 29 Dec 2014 21:28:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 711 invoked by uid 48); 29 Dec 2014 21:28:29 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55534] -Wno-missing-include-dirs does not work with gfortran Date: Mon, 29 Dec 2014 21:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg02913.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55534 --- Comment #10 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- (In reply to Harald Anlauf from comment #9) > (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #8) > > (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #7) > > > The ideal fix for this would adding a function like: > >=20 > > I forgot about this bug and redid the above from scratch. But this time= , I > > actually tested that it works: > > https://gcc.gnu.org/ml/fortran/2014-10/msg00019.html >=20 > Has this patch been applied? An equivalent one has. The remaining problem (I think) is that the warning = is given when -I is processed, so the order of -I and -Wno-missing-include-dirs matters. In your example, the order should be correct, but the driver unhelpfully re-orders the command-line as: f951 xxx.f90 -I /no/such/dir -quiet -dumpbase xxx.f90 "-mtune=3Dgeneric" "-march=3Dx86-64" -auxbase xxx -Wno-missing-include-dirs -fintrinsic-module= s-path finclude -o /tmp/ccwz8Va5.s If I invoke f951 manually, it works: f951 -Wno-missing-include-dirs ~/xxx.f90 -I /no/such/dir -Wno-missing-include-dirs However, if I invoke it like this it doesn't work: f951 -Wno-missing-include-dirs ~/xxx.f90 -I /no/such/dir -Wno-missing-include-dirs because prune_options removes duplicated options by keeping the last one. Thus, the fix is either to buffer the arguments to -I and process them after all options have been processed or move just the warning code to such a lat= ter phase. I'm not sure what is simpler. This is what the C/C++ FE does (see incpath.c add_path, which is called whe= n -I is processed and c-opts.c register_include_chains, which is called after options processing and gives the diagnostics). Note that this applies to all warnings given by add_path_to_list, since ide= ally they should be disabled by "--no-warnings" (aka -w), but currently it depen= ds on the order they are given. >>From gcc-bugs-return-471907-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 29 21:42:44 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7007 invoked by alias); 29 Dec 2014 21:42:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6996 invoked by uid 89); 29 Dec 2014 21:42:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.0 required=5.0 tests=BAYES_99,BAYES_999,FILL_THIS_FORM_FRAUD_PHISH,RCVD_IN_DNSWL_NONE,SPF_FAIL,T_FILL_THIS_FORM_SHORT autolearn=no version=3.3.2 X-HELO: sg2nlvphout03.shr.prod.sin2.secureserver.net Received: from sg2nlvphout03.shr.prod.sin2.secureserver.net (HELO sg2nlvphout03.shr.prod.sin2.secureserver.net) (182.50.132.197) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 29 Dec 2014 21:42:42 +0000 Received: from vedaserver ([118.139.182.196]) by sg2nlvphout03.shr.prod.sin2.secureserver.net with : DED : id ZZid1p02J4Ef9Kq01ZieEW; Mon, 29 Dec 2014 14:42:38 -0700 MIME-Version: 1.0 From: "Anushka ISMS" Reply-To: anushka@ismsedu.com To: gcc-bugs@gcc.gnu.org Subject: Opportunity Never Wait for Anybody : New Session Announcement For Distance Learning Courses Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Date: Mon, 29 Dec 2014 21:42:00 -0000 Message-ID: <2164207878536797320837@vedaserver> X-SW-Source: 2014-12/txt/msg02914.txt.bz2 Content-length: 767 Get MBA, E-MBA , MMS, DMS, PGDBM ,DBM etc done without disturbing your job.= .. Any Certificate NO Donation / Percentage Barrier International Attestations by Ministry of External Affairs and Foreign Affa= irs (Charges apply*) GIVE US AN OPPORTUNITY TO MAKE YOUR CAREER: Please reply to this mail providing following details to obtain detail info= rmation about our Institute, Course, Exams etc. Name: Contact No.: Email id : Course of Interest: Specialization: Query: Qualifications & Work Experience : Address Details: When you're ready to make the time, my help is just a phone call or e-mail = away. With your success in mind, For ISMS Indian School of Management & Studies, Anushka ISMS Email :- anushka@ismsedu.com Website :- www.ismsedu.com