public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pch/14130] New: #pragma once ignored with Precompiled header
@ 2004-02-12 15:44 tfautre at pandora dot be
2004-02-12 15:50 ` [Bug pch/14130] " tfautre at pandora dot be
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: tfautre at pandora dot be @ 2004-02-12 15:44 UTC (permalink / raw)
To: gcc-bugs
When not using PCH, GCC 3.4 seems to have fixed all the problems with #pragma once.
But with PCH, #pragma once seems broken again. The behavior would be best
described as if #pragma once is ignored and the header is included multiple times.
Note: #pragma once is used in headers included by the precompiled header. The
precompiled header itself uses a #ifndef-#define-#endif header guardian mechanism.
I've tested this on three different version of GCC (3.4 20040128, 3.4 20040211
and 3.5 20040113). All versions failed the test.
I'll try to attach the whole project to this bug report.
It contains:
- a test project with 3 files: PchTest.cpp (main file), foobar.h (foobar class)
and stdafx.h (the precompiled header wanna be)
- two makefiles, one without PCH, one with (don't forget to call "make clean"
when switching makefile)
- full reports for the various GCC versions
--
Summary: #pragma once ignored with Precompiled header
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: pch
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tfautre at pandora dot be
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14130
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug pch/14130] #pragma once ignored with Precompiled header
2004-02-12 15:44 [Bug pch/14130] New: #pragma once ignored with Precompiled header tfautre at pandora dot be
@ 2004-02-12 15:50 ` tfautre at pandora dot be
2004-02-12 15:51 ` tfautre at pandora dot be
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tfautre at pandora dot be @ 2004-02-12 15:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tfautre at pandora dot be 2004-02-12 15:50 -------
Created an attachment (id=5735)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5735&action=view)
makefile no pch
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14130
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug pch/14130] #pragma once ignored with Precompiled header
2004-02-12 15:44 [Bug pch/14130] New: #pragma once ignored with Precompiled header tfautre at pandora dot be
2004-02-12 15:50 ` [Bug pch/14130] " tfautre at pandora dot be
@ 2004-02-12 15:51 ` tfautre at pandora dot be
2004-02-12 15:51 ` tfautre at pandora dot be
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tfautre at pandora dot be @ 2004-02-12 15:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tfautre at pandora dot be 2004-02-12 15:51 -------
Created an attachment (id=5737)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5737&action=view)
main cpp file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14130
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug pch/14130] #pragma once ignored with Precompiled header
2004-02-12 15:44 [Bug pch/14130] New: #pragma once ignored with Precompiled header tfautre at pandora dot be
2004-02-12 15:50 ` [Bug pch/14130] " tfautre at pandora dot be
2004-02-12 15:51 ` tfautre at pandora dot be
@ 2004-02-12 15:51 ` tfautre at pandora dot be
2004-02-12 15:52 ` tfautre at pandora dot be
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tfautre at pandora dot be @ 2004-02-12 15:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tfautre at pandora dot be 2004-02-12 15:51 -------
Created an attachment (id=5736)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5736&action=view)
makefile with pch
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14130
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug pch/14130] #pragma once ignored with Precompiled header
2004-02-12 15:44 [Bug pch/14130] New: #pragma once ignored with Precompiled header tfautre at pandora dot be
` (2 preceding siblings ...)
2004-02-12 15:51 ` tfautre at pandora dot be
@ 2004-02-12 15:52 ` tfautre at pandora dot be
2004-02-12 15:52 ` tfautre at pandora dot be
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tfautre at pandora dot be @ 2004-02-12 15:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tfautre at pandora dot be 2004-02-12 15:52 -------
Created an attachment (id=5738)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5738&action=view)
foobar test class
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14130
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug pch/14130] #pragma once ignored with Precompiled header
2004-02-12 15:44 [Bug pch/14130] New: #pragma once ignored with Precompiled header tfautre at pandora dot be
` (3 preceding siblings ...)
2004-02-12 15:52 ` tfautre at pandora dot be
@ 2004-02-12 15:52 ` tfautre at pandora dot be
2004-02-12 15:53 ` tfautre at pandora dot be
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tfautre at pandora dot be @ 2004-02-12 15:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tfautre at pandora dot be 2004-02-12 15:52 -------
Created an attachment (id=5739)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5739&action=view)
precompiled header
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14130
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug pch/14130] #pragma once ignored with Precompiled header
2004-02-12 15:44 [Bug pch/14130] New: #pragma once ignored with Precompiled header tfautre at pandora dot be
` (4 preceding siblings ...)
2004-02-12 15:52 ` tfautre at pandora dot be
@ 2004-02-12 15:53 ` tfautre at pandora dot be
2004-02-12 15:55 ` tfautre at pandora dot be
2004-02-12 16:50 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: tfautre at pandora dot be @ 2004-02-12 15:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tfautre at pandora dot be 2004-02-12 15:53 -------
Created an attachment (id=5740)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5740&action=view)
GCC 3.4 20040211 report
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14130
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug pch/14130] #pragma once ignored with Precompiled header
2004-02-12 15:44 [Bug pch/14130] New: #pragma once ignored with Precompiled header tfautre at pandora dot be
` (5 preceding siblings ...)
2004-02-12 15:53 ` tfautre at pandora dot be
@ 2004-02-12 15:55 ` tfautre at pandora dot be
2004-02-12 16:50 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: tfautre at pandora dot be @ 2004-02-12 15:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tfautre at pandora dot be 2004-02-12 15:55 -------
Ok, couldn't attach the whole project in a tar/gz, so I had to upload manually
each file (although left out old reports).
Next time, if someone has a better idea to achieve this, tell me. ;-)
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|#pragma once ignored with |#pragma once ignored with
|Precompiled header |Precompiled header
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14130
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug pch/14130] #pragma once ignored with Precompiled header
2004-02-12 15:44 [Bug pch/14130] New: #pragma once ignored with Precompiled header tfautre at pandora dot be
` (6 preceding siblings ...)
2004-02-12 15:55 ` tfautre at pandora dot be
@ 2004-02-12 16:50 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-12 16:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-12 16:50 -------
Fixed for 3.5.0 by:
http://gcc.gnu.org/ml/gcc-patches/2004-01/msg01652.html
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14130
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-02-12 16:50 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-12 15:44 [Bug pch/14130] New: #pragma once ignored with Precompiled header tfautre at pandora dot be
2004-02-12 15:50 ` [Bug pch/14130] " tfautre at pandora dot be
2004-02-12 15:51 ` tfautre at pandora dot be
2004-02-12 15:51 ` tfautre at pandora dot be
2004-02-12 15:52 ` tfautre at pandora dot be
2004-02-12 15:52 ` tfautre at pandora dot be
2004-02-12 15:53 ` tfautre at pandora dot be
2004-02-12 15:55 ` tfautre at pandora dot be
2004-02-12 16:50 ` 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).