public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bursig at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug pch/36277]  New: Please allow directing pch file localization/usage via direct compiler flag.
Date: Tue, 20 May 2008 12:07:00 -0000	[thread overview]
Message-ID: <bug-36277-16198@http.gcc.gnu.org/bugzilla/> (raw)

Currently I maintain large C/C++ project (over 400 lib/bin targets and ~100 000
files). It is targeted and ported on Sun (with Sun CC), HPUX (with aCC), Linux
(with gcc) and Windows (MSVC). The Sun, HP and Windows compilers have common
flags syntax and usage logic of pch functionality (create and use flags, etc).
The Gcc chose own way of pch usage (direct *.h compilation and auto finding on
Includes path) which force users to complicate build rules for gcc exception.

The creation part is not so problematic than usage because all issues could be
solved in build logic (as exception) but usage require bigger influence. The
usage is more problematic because typically projects are older that gcc pch
support and pch files lay directly in project/targets dirs (plus may have same
names in different projects: stdafx.h ;)) which force us to create pch.gch
direct in sources (gcc first search *.c/*.cpp dir for includes and pch). This
limitation (may) give us many other problems like read-only src's tree, src's
tree on dynamic medias, ugly project's which share files :| , playing with
pch.gch dir and his contents, etc.

Good solution would be -fpch-use=path/file.gch flag which allow us create pch
together with obj's files and simple tell gcc where it could be find.


-- 
           Summary: Please allow directing pch file localization/usage via
                    direct compiler flag.
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: pch
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bursig at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36277


             reply	other threads:[~2008-05-20 12:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-20 12:07 bursig at gmail dot com [this message]
2008-05-20 13:27 ` [Bug pch/36277] " pinskia at gcc dot gnu dot org
2008-05-20 15:42 ` bursig at gmail dot com
2008-05-20 15:44 ` pinskia at gcc dot gnu dot org
2008-05-20 16:16 ` bursig at gmail dot com
2008-08-11  2:03 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-36277-16198@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).