[gnu.g++.bug] Underscore prepended to symbol on DECstation

sps@mcnc.org (Stephen Schaefer) (01/12/90)

I'm on a DECstation running Ultrix 3.1 with gcc 1.36, g++ 1.36.2,
with modifications to mips.md, out-mips.c, tm-mips.h and xm-mips.h
from foobar.colorado.edu (Dirk Grunwald).

On building libg++ 1.36.2 from labrea.stanford.edu, the modules
Random.cc, RNG.cc and ACG.cc generated references to ``_abort'',
according to nm.  I believe the reference should have been to
``abort''.  An attempt to use the Random.cc module in the test program
tRandom failed with a message from the loader about reference to
undefined symbol _abort.

I enclose the preprocessed code for RNG and its assembly output, since
it was the smallest instance.  It was obtained in the libg++ directory
by removing src/RNG.o and then running ``make DEBUG_FLAGS=-E PIPE_AS=
src''.  For the assembly, I used -S.

This problem does not occur on a Sun 4/110 running 4.0.1.
================================================================
(cd src; make GXX="g++"  GXXFLAGS=" -I/../pepe/src/local/std/libg++/g++-include -E -O -fstrength-reduce  -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized  -Wall  " GXXLDFLAGS="-L/../pepe/src/local/std/libg++/src -lg++ -lm " LI