public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/14933] New: missing pre-compiled header depends with -MD @ 2004-04-13 4:21 dfries at mail dot win dot org 2004-04-13 4:27 ` [Bug pch/14933] " pinskia at gcc dot gnu dot org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: dfries at mail dot win dot org @ 2004-04-13 4:21 UTC (permalink / raw) To: gcc-bugs When using a pre-compiled header the option -MD produces no dependencies on the pre-compiled header or the headers that the pre-compiled header is composed of. I would expect the same problem on any of the dependency generating options. SpacedOut:/tmp/test$ gcc -MD headers.h -o headers.h.gch SpacedOut:/tmp/test$ cat headers.h.d headers.h.gch: headers.h > so far so good SpacedOut:/tmp/test$ gcc -MD main.c -o main SpacedOut:/tmp/test$ cat main.d main: main.c > So main doesn't require anything? I don't think so. SpacedOut:/tmp/test$ rm -f *.d *.i *.s a.out *.gch main SpacedOut:/tmp/test$ gcc -MD main.c -o main SpacedOut:/tmp/test$ cat main.d main: main.c headers.h > Much better. I would think it should be the following when using > the precompiled headers. main: main.c headers.h.gch SpacedOut:/tmp/test$ gcc -v Reading specs from /home/david/WorkProjects/OpenSceneGraph/DevelGcc/install/lib/gcc/i686-pc-linux-gnu/3.5.0/specs Configured with: ../gcc_src/configure --enable-languages=c++ --prefix=/home/david/WorkProjects/OpenSceneGraph/DevelGcc/install --exec-prefix=/home/david/WorkProjects/OpenSceneGraph/DevelGcc/install Thread model: posix gcc version 3.5.0 20040412 (experimental) header.h: #ifndef _HEADERS_H #define _HEADERS_H 1 const int value=32; #endif /* _HEADERS_H */ main.c: #include "headers.h" int main(int argc, char ** argv) { return value; } -- Summary: missing pre-compiled header depends with -MD Product: gcc Version: 3.5.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dfries at mail dot win dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i386-linux GCC host triplet: i386-linux GCC target triplet: i386-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14933 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug pch/14933] missing pre-compiled header depends with -MD 2004-04-13 4:21 [Bug c/14933] New: missing pre-compiled header depends with -MD dfries at mail dot win dot org @ 2004-04-13 4:27 ` pinskia at gcc dot gnu dot org 2004-04-13 19:01 ` geoffk at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-04-13 4:27 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-13 04:21 ------- Confirmed, related to PR 14238. -- What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Status|UNCONFIRMED |NEW Component|c |pch Ever Confirmed| |1 GCC build triplet|i386-linux | GCC host triplet|i386-linux | GCC target triplet|i386-linux | Last reconfirmed|0000-00-00 00:00:00 |2004-04-13 04:21:01 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14933 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug pch/14933] missing pre-compiled header depends with -MD 2004-04-13 4:21 [Bug c/14933] New: missing pre-compiled header depends with -MD dfries at mail dot win dot org 2004-04-13 4:27 ` [Bug pch/14933] " pinskia at gcc dot gnu dot org @ 2004-04-13 19:01 ` geoffk at gcc dot gnu dot org 2004-04-17 8:43 ` geoffk at gcc dot gnu dot org 2004-12-14 13:19 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: geoffk at gcc dot gnu dot org @ 2004-04-13 19:01 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From geoffk at gcc dot gnu dot org 2004-04-13 18:38 ------- This worked with Apple's gcc 3.3. It would be helpful to know when it broke. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14933 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug pch/14933] missing pre-compiled header depends with -MD 2004-04-13 4:21 [Bug c/14933] New: missing pre-compiled header depends with -MD dfries at mail dot win dot org 2004-04-13 4:27 ` [Bug pch/14933] " pinskia at gcc dot gnu dot org 2004-04-13 19:01 ` geoffk at gcc dot gnu dot org @ 2004-04-17 8:43 ` geoffk at gcc dot gnu dot org 2004-12-14 13:19 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: geoffk at gcc dot gnu dot org @ 2004-04-17 8:43 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From geoffk at gcc dot gnu dot org 2004-04-17 08:04 ------- It seems to be caused by Neil's cppfiles.c rewrite, in particular with CVS HEAD as of 2003-07-29 22:20: 00 UTC, main.d says main: main.c headers.h.gch and as of 2003-07-29 22:35:00 UTC, main.d says: main: main.c headers.h and the only change between those two times was Neil's change. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |neil at daikokuya dot co dot | |uk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14933 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug pch/14933] missing pre-compiled header depends with -MD 2004-04-13 4:21 [Bug c/14933] New: missing pre-compiled header depends with -MD dfries at mail dot win dot org ` (2 preceding siblings ...) 2004-04-17 8:43 ` geoffk at gcc dot gnu dot org @ 2004-12-14 13:19 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-12-14 13:19 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-14 13:18 ------- *** Bug 18980 has been marked as a duplicate of this bug. *** -- What |Removed |Added ---------------------------------------------------------------------------- CC| |trick at icculus dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14933 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-12-14 13:19 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-04-13 4:21 [Bug c/14933] New: missing pre-compiled header depends with -MD dfries at mail dot win dot org 2004-04-13 4:27 ` [Bug pch/14933] " pinskia at gcc dot gnu dot org 2004-04-13 19:01 ` geoffk at gcc dot gnu dot org 2004-04-17 8:43 ` geoffk at gcc dot gnu dot org 2004-12-14 13:19 ` pinskia at gcc dot gnu dot org
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).