From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5569 invoked by alias); 26 Nov 2006 17:51:14 -0000 Received: (qmail 5532 invoked by uid 22791); 26 Nov 2006 17:51:13 -0000 X-Spam-Check-By: sourceware.org Received: from mail.beta-cae.gr (HELO frida.beta-cae.gr) (213.140.137.115) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 26 Nov 2006 17:51:07 +0000 Received: from makis.beta-cae.gr (makis.beta-cae.gr [213.140.137.120]) by frida.beta-cae.gr (Postfix) with ESMTP id 83C8E44A0002 for ; Sun, 26 Nov 2006 19:51:03 +0200 (EET) From: Michalis Giannakidis To: gcc-help@gcc.gnu.org Subject: Remove redundant includes from C, C++ source files. Date: Sun, 26 Nov 2006 17:51:00 -0000 User-Agent: KMail/1.8.3 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611261951.28136.mgiann@beta-cae.gr> Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-11/txt/msg00307.txt.bz2 Hello all I would like to remove from my source files all includes that are not needed. Doing so, will drop many dependencies between files, on the project I am working on. I am wondering if GCC provides a feature (or even a workaround) so as to report #include files that have no actual contribution to the compiled file. If GCC does not provide such a feature, do you know of an other tool that does it? (maybe lint?) Thank you very much in advance Michalis. -- Michalis Giannakidis