This is the mail archive of the
mailing list for the GCC project.
C++ Darwin Port BUG in source code
- From: Marcin Dalecki <martin at dalecki dot de>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 4 Feb 2005 02:55:05 +0100
- Subject: C++ Darwin Port BUG in source code
I have found a serious bug in the darwin compiler port, which does get
due to linker errors. The problem is that there are two different
One is for C++ found in name-lookup[ch] and declared as:
extern tree lookup_name (tree, int);
and one if doe C and declared as:
extern tree lookup_name (tree);
Thus config/darwin-c.c, which is calling it inside
link fine but call the wrong function with improper parameters when
#pragma unused. This is something that can't work properly.
Very likely the intention was to implement the pragma only for C.