From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Subject: Re: [Qemu-devel] [PATCH] qemu: include generated files with <> and not "" Date: Tue, 20 Mar 2018 17:34:01 +0000 Message-ID: <20180320173401.GG4530@redhat.com> References: <1521510562-529051-1-git-send-email-mst@redhat.com> <20180320185130-mutt-send-email-mst@kernel.org> Reply-To: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Peter Maydell , Dmitry Fleytman , sheepdog@lists.wpkg.org, Ronnie Sahlberg , Li Zhijian , David Hildenbrand , Zhang Chen , Mark Cave-Ayland , qemu-devel@nongnu.org, Markus Armbruster , Keith Busch , Max Filippov , Greg Kurz , Paolo Bonzini , Gerd Hoffmann , "Edgar E. Iglesias" , Subbaraya Sundeep , Yongbok Kim , Eduardo Habkost , Hannes Reinecke , Stefano Stabellini , zhanghailiang , Ben Warren , To: "Michael S. Tsirkin" Return-path: Content-Disposition: inline In-Reply-To: <20180320185130-mutt-send-email-mst@kernel.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-block-bounces+gceqb-qemu-block=m.gmane.org@nongnu.org Sender: "Qemu-block" List-Id: kvm.vger.kernel.org On Tue, Mar 20, 2018 at 07:10:42PM +0200, Michael S. Tsirkin wrote: > On Tue, Mar 20, 2018 at 05:33:42PM +0100, Stefan Weil wrote: > > Using <> for system include files and "" for local include files is a > > convention, and as far as I know most projects adhere to that > > convention. So does QEMU currently. Such conventions are not only > > important for humans, but also for tools. There are more tools than the > > C preprocessor which handle <> and "" differently. For example the GNU > > compiler uses -MD or -MMD to automatically generate dependency rules for > > make. While -MD generates dependencies to all include files, -MMD does > > so only for user include files, but not for system include files. "user" > > and "system" means the different forms how include statements are > > written. QEMU still seems to use -MMD: > > > > rules.mak:QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d > > To my knowledge, and according to my limited testing, > system headers in this context means > the default ones not supplied with -I. GCC's definition of system header is here: https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|