[GCC-XML] opteron, operator new(unsigned int)

Brad King brad.king at kitware.com
Thu Jul 21 09:13:58 EDT 2005

David Pare wrote:
> So I'm trying to use gccxml on my opteron (Linux FC4, gcc 3.2 and 4.0) 
> and it's having trouble with operator new.  From what I can tell, gccxml 
> thinks that operator new is defined as "operator new(unsigned int)", 
> while the system include file <new> thinks that operator new should be 
> defined as "operator new(size_t)", which is an unsigned LONG int 
> (probably 8 bytes) on my opteron.
> I rebuilt gccxml from source to a 64-bit binary, and it still seems to 
> have this difficulty.  Is this hardcoded into gccxml?  I grepped through 
> the sources for this, but nothing jumped out at me.
> Any suggestions on what I might do to fix this?

There may be some preprocessor symbol that is not defined properly.  Run 
gccxml with the "-E" option instead of -fxml=... to get the preprocessed 
source the way the parser sees it.  Check the definition of operator new 
in this output.


More information about the gccxml mailing list