home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / gcc / help / 2764 < prev    next >
Encoding:
Text File  |  1992-12-17  |  3.6 KB  |  93 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!howland.reston.ans.net!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!news.th-darmstadt.de!adams
  3. From: adams@pdv2.fmr.maschinenbau.th-darmstadt.de (Adams)
  4. Subject: Re: gcc-2.3.2 problems on m68040
  5. Sender: news@news.th-darmstadt.de (The News System)
  6. Message-ID: <ADAMS.92Dec17161907@PDV2.pdv2.fmr.maschinenbau.th-darmstadt.de>
  7. In-Reply-To: jhelberg@nl.oracle.com's message of 15 Dec 92 08: 53:58 GMT
  8. Date: Thu, 17 Dec 1992 16:19:07 GMT
  9. References: <3421@nlsun1.oracle.nl>
  10. Nntp-Posting-Host: pdv2.fmr.maschinenbau.th-darmstadt.de
  11. Organization: TH-Darmstadt
  12. Lines: 79
  13.  
  14. In article <3421@nlsun1.oracle.nl> jhelberg@nl.oracle.com (Joost Helberg) writes:
  15. >
  16. >   COMPILER:       gcc version 2.3.2
  17. >   CONFIGURATION:  ./configure --target=m68k-sysv4
  18. >   OS:             SINIX TOS 5.41
  19. >   ARCH:           Targon31 (68040 multi)
  20. >   MODIFICATION:   none
  21. >   PROBLEM:        "gcc -O" generates a misoptimized code that causes
  22. >           missing lables in the linking fase
  23. >
  24. >   When compiling cccp with optimizing on, the fase1 as well as the fase2
  25. >   compiler removes labels wich should be there:
  26. >
  27. >   $ make CC=gcc CFLAGS="-O" cccp
  28. >       gcc  -DIN_GCC   -O     -I. -I. -I./config \
  29. >         -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/m68k-sysv4/`sed -e 's/.*\"\
  30. >   ([^ \"]*\)[ \"].*/\1/' < ./version.c`/include\" \
  31. >         -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" \
  32. >         -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
  33. >         -DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/m68k-sysv4/`sed -e 's/.*\
  34. >   "\([^ \"]*\)[ \"].*/\1/' < ./version.c`/sys-include\" \
  35. >         -DTOOLDIR=\"/usr/local/m68k-sysv4/\" \
  36. >         -c `echo ./cccp.c | sed 's,^\./,,'`
  37. >       gcc  -DIN_GCC   -O     -I. -I. -I./config -c ./cexp.c
  38. >       gcc  -DIN_GCC   -O   -o cccp cccp.o cexp.o version.o obstack.o ` case "g
  39.    cc" in "cc") echo alloca.o ;; esac `
  40. >   Undefined                       first referenced
  41. >    symbol                             in file
  42. >   .LD785                              cccp.o
  43. >   .LD388                              cccp.o
  44. >   .LD2020                             cccp.o
  45. >   .LD279                              cexp.o
  46. >   .LD1064                             cccp.o
  47. >   .LD120                              cexp.o
  48. >   .LD2175                             cccp.o
  49. >   .LD350                              cexp.o
  50. >   .LD155                              cccp.o
  51. >   .LD777                              cccp.o
  52. >   ld: cccp: fatal error: Symbol referencing errors. No output written to cccp
  53. >   *** Error code 1 (bu21)
  54. >
  55. >
  56. >   Part of the generated assembler in cccp.o:
  57. >
  58. >       cmp.l %d6,%a0
  59. >       bcs.w .L779
  60. >   .LI785:
  61. >       mov.w .LD785(%pc,%a0.l*2),%d0
  62. >       jmp 6(%pc,%d0.w)
  63. >       .swbeg &6
  64. >
  65. >   Any suggestions??
  66. >
  67. >
  68. >   --  
  69. >      Joost Helberg                                Rijnzathe 6
  70. >      jhelberg@oracle.nl                           NL-3454 PV De Meern
  71. >      jhelberg@nl.oracle.com                       The Netherlands
  72. >
  73. >      Oracle Europe BV                             Product Line Development    
  74. >      Phone: +31 3406 94211                        Fax:   +31 3406 65609
  75. >
  76. >
  77.  
  78. Well, you are using an SGS (software generation system) assembler
  79. and you are running a version of System V.....
  80.  
  81. 1) .LDxxxx symbols denotes local symbols, which should _never_ occur
  82. as global symbols and never occur as external symbols, __BUT__
  83. a lot of 68k System V assemblers do have this bug, and use another
  84. prefix to denote local labels,  often "L%", in a undocumented manner.
  85. ( do a "strings" across your as, might help).
  86.  
  87. 2) You will have to patch your backend.
  88.  
  89. best adams
  90.  
  91.  
  92.  
  93.