home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / gcc / bug / 2118 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.5 KB  |  43 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!ucs.ubc.CA!lindholm
  3. From: lindholm@ucs.ubc.CA (George Lindholm)
  4. Subject: gcc 2.2.2 -p option broken with sgi irix 4.0.4
  5. Message-ID: <1992Aug12.223658.19286@unixg.ubc.ca>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: University Computing Services, UBC, Canada
  8. Distribution: gnu
  9. Date: Wed, 12 Aug 1992 22:36:58 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 30
  12.  
  13. One of our users just pointed out to me that the -p option doesn't work 
  14. with sgi's irix 4.0.4 as shown below:
  15.  
  16. lindholm@numeric1$ gcc -v -p a.c
  17. Reading specs from /usr/local/lib/gcc-lib/mips-sgi-irix4/2.2.2/specs
  18. gcc version 2.2.2
  19. ...
  20.  /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
  21. ld:
  22. Can't locate file for: -lc_p
  23. collect: /usr/bin/ld returned 1 exit status
  24.  
  25.  
  26. And here is what cc says:
  27.  
  28. lindholm@numeric1$ cc -v -p a.c
  29. ...
  30. /usr/bin/ld -G 8 -g0 -nocount /usr/lib/mcrt1.o /usr/lib/libprof1.a -count a.o -nocount -lc /usr/lib/crtn.o
  31.  
  32. Does anyone have a fix for this? Also, shouldn't the -pg option be removed (or
  33. aliased to -p) since sgi doesn't have gprof command? Thanks
  34.  
  35.    George
  36. -- 
  37. George Lindholm                                  phone:    (604) 822-4375
  38. University Computing Services, UBC               fax:      (604) 822-5116
  39. 6356 Agricultural Road, Vancouver, B.C., Canada  internet: lindholm@ucs.ubc.ca
  40. V6T 1Z2                                          bitnet:   USERGNL@UBCMTSG
  41.  
  42.  
  43.