From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 532 invoked by alias); 28 Mar 2010 07:29:36 -0000 Received: (qmail 521 invoked by uid 22791); 28 Mar 2010 07:29:35 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from mail-pv0-f175.google.com (HELO mail-pv0-f175.google.com) (74.125.83.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 28 Mar 2010 07:29:31 +0000 Received: by pvc30 with SMTP id 30so213540pvc.20 for ; Sun, 28 Mar 2010 00:29:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.133.6 with HTTP; Sun, 28 Mar 2010 00:29:29 -0700 (PDT) Date: Mon, 29 Mar 2010 07:57:00 -0000 Received: by 10.140.247.5 with SMTP id u5mr2880616rvh.225.1269761369810; Sun, 28 Mar 2010 00:29:29 -0700 (PDT) Message-ID: Subject: Precompiled headers issue: -c and -fpch-preprocess should be used together? From: Pavel Shevaev To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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: 2010-03/txt/msg00338.txt.bz2 Folks, I'm using gcc-4.4.1(4.4.1-4ubuntu9 to be precise) on Ubuntu and after trying to make PCH work properly for some time I found that precompiled headers are not used if -c option used. Experimenting with different options I discovered that it's the -fpch-preprocess option which enables PCH in this case. Is it an expected behavior? If yes, maybe it should be documented here http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html in order to save some time for others :) -- Best regards, Pavel