This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/15167] [3.4/4.0 Regression] Internal compiler error with "#pragma once"
- From: "neil at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Dec 2004 02:26:56 -0000
- Subject: [Bug preprocessor/15167] [3.4/4.0 Regression] Internal compiler error with "#pragma once"
- References: <20040427115120.15167.Roland.Meub@Tenovis.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From neil at gcc dot gnu dot org 2004-12-06 02:26 -------
Eric - can you try your testcase on GCC sources as of around the beginning of
August 2003?
This is when I completely rewrote the whole file lookup mechanism, and contrary
to Zack's claims it did work 100% correctly, to the best of my knowledge, and
would always get links, both hard and soft, correct with #pragma once correct no
matter how contorted or renamed the file was. Then only issue in that code was
the -remap bug that has since been fixed.
However, since that date, various people have hacked at the code who probably
didn't understand it. Zack did various "optimizations" and Apple added a bunch
of stuff for obfuscated include file lookup and line number stuff. I think it
is very likely it was broken along the way.
If it was broken back around 5th August 2003 I will look into this, as it was my
new code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15167