here's a short example
Charlie Xiaoli Huang
hxl@ibm.net
Sun Dec 14 20:16:00 GMT 1997
>> ( report on id's in egcs asm file containing '?' that gas chokes on ...)
> Please send me the smallest preprocessed C++ code and
> your asm output. I will take a look at them.
Here's a very simple example:
#include <stl.h>
typedef int *intP;
typedef list<intP> intlist;
fubar()
{
intlist alist;
remove(alist.begin(), alist.end(), NULL);
}
The interesting thing is that if one were to replace NULL above with
an (intP)0, everything is okay. No errors were reported.
The cpp output does not seem to transform any lines in there except
making NULL into __null.
I'm not a c++ language lawyer, but I thought the use of NULL was
okay. Even if it's not, egcs shouldn't generate a bad id for asm to
choke on, right?
I'm sending you the output of egcs -E and egcs -S in a seperate
message for fear that my mailer would not let such a long message
thru...
Thanks for looking into it.
hxl
--
H.J. Lu (hjl@gnu.org)
More information about the Gcc
mailing list