public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* here's a short example
       [not found] <m0xhHp6-0004ecC@ocean.lucon.org>
@ 1997-12-14 20:16 ` Charlie Xiaoli Huang
  0 siblings, 0 replies; only message in thread
From: Charlie Xiaoli Huang @ 1997-12-14 20:16 UTC (permalink / raw)
  To: H.J. Lu

>> ( 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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-12-14 20:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <m0xhHp6-0004ecC@ocean.lucon.org>
1997-12-14 20:16 ` here's a short example Charlie Xiaoli Huang

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).