This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

g++ fonction name generation


I experiment a difference between name of function generated by gcc of
redhat 6.2 and 7.O

using File test_c.cc
#include <stdlib.h>
#include <stdio.h> 

int fct(wchar_t const *c)
{}

Compilation from RH 7.0 gives:
RH7.0> gcc -v;make test_c.o; nm test_c.o
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
g++ -c -o test_c.o test_c.cc
00000000 T fct__FPCUw
00000000 t gcc2_compiled.

Compilation from RH 6.2 gives:
RH6.2> gcc -v;make test_c.o; nm test_c.o
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
g++ -c -o test_c.o test_c.cc
00000000 ? __FRAME_BEGIN__
00000000 T fct__FPCw
00000000 t gcc2_compiled.

The problem comes from the additional U. I can't used the new compiler
with the previous libraries  (commercial ones, not yet upgraded)
-- 
Frederic DEVIE - DGA/DCE/GESMA
BP 42 - 29240 BREST NAVAL
T: 33 2 98 22 50 21 F: 33 2 98 22 72 13
devie@gesma.fr

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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