🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #933

gcc 2.2.2 -p option broken with sgi irix 4.0.4

#933
From: George Lindholm
Date: Wed, 12 Aug 1992 22:36
28 lines
1563 bytes
One of our users just pointed out to me that the -p option doesn't work 
with sgi's irix 4.0.4 as shown below:

lindholm@numeric1$ gcc -v -p a.c
Reading specs from /usr/local/lib/gcc-lib/mips-sgi-irix4/2.2.2/specs
gcc version 2.2.2
...
 /usr/local/lib/gcc-lib/mips-sgi-irix4/2.2.2/ld /usr/lib/mcrt1.o -L/usr/local/lib/gcc-lib/mips-sgi-irix4/2.2.2 -L/usr/local/lib a.o -lgcc -lc_p /usr/lib/crtn.o-lgcc
ld:
Can't locate file for: -lc_p
collect: /usr/bin/ld returned 1 exit status


And here is what cc says:

lindholm@numeric1$ cc -v -p a.c
...
/usr/bin/ld -G 8 -g0 -nocount /usr/lib/mcrt1.o /usr/lib/libprof1.a -count a.o -nocount -lc /usr/lib/crtn.o

Does anyone have a fix for this? Also, shouldn't the -pg option be removed (or
aliased to -p) since sgi doesn't have gprof command? Thanks

   George
-- 
George Lindholm                                  phone:    (604) 822-4375
University Computing Services, UBC               fax:      (604) 822-5116
6356 Agricultural Road, Vancouver, B.C., Canada  internet: lindholm@ucs.ubc.ca
V6T 1Z2                                          bitnet:   USERGNL@UBCMTSG
Technical Details
Message-ID: <1992Aug12.223658.19286@unixg.ubc.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!ucs.ubc.CA!lindholm

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!ucs.ubc.CA!lindholm
From: lindholm@ucs.ubc.CA (George Lindholm)
Subject: gcc 2.2.2 -p option broken with sgi irix 4.0.4
Message-ID: <1992Aug12.223658.19286@unixg.ubc.ca>
Sender: gnulists@ai.mit.edu
Organization: University Computing Services, UBC, Canada
Distribution: gnu
Date: Wed, 12 Aug 1992 22:36:58 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 30