This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ Darwin Port BUG in source code



On Feb 6, 2005, at 4:10 PM, Marcin Dalecki wrote:
I wonder why the corresponding pargma unused implementation in darwin-c.c is calling c_lex() and similar functions, which appear at
least to be C code dependant. However strictly adhering to the advice the attached patch should at least give proper semantics then.
<lookup_name.diff>

Call c_lex is fine, if you look at the file c-pragma.c which is for both the C and C++
front-ends.


What I would do instead of this (semi) huge patch is to make lookup_name in the C++
correspond to C prototype and change the C++ front-end to use a newer function
for the old lookup_name.


Then we only change one thing and it is easier to make sure that we got this right
and that the names stay constantly used.


-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]