home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / gcc / help / 2742 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  2.7 KB

  1. Path: sparky!uunet!mcsun!sun4nl!orcenl!jhelberg
  2. From: jhelberg@nl.oracle.com (Joost Helberg)
  3. Newsgroups: gnu.gcc.help
  4. Subject: gcc-2.3.2 problems on m68040
  5. Message-ID: <3421@nlsun1.oracle.nl>
  6. Date: 15 Dec 92 08:53:58 GMT
  7. Organization: Oracle Europe
  8. Lines: 63
  9. X-Newsreader: Tin 1.1 PL3
  10.  
  11. X-Disclaimer: This message was written by an unauthenticated user
  12.               at Oracle Corporation.  The opinions expressed are those
  13.               of the user and not necessarily those of Oracle.
  14.  
  15. COMPILER:       gcc version 2.3.2
  16. CONFIGURATION:  ./configure --target=m68k-sysv4
  17. OS:             SINIX TOS 5.41
  18. ARCH:           Targon31 (68040 multi)
  19. MODIFICATION:   none
  20. PROBLEM:        "gcc -O" generates a misoptimized code that causes
  21.                 missing lables in the linking fase
  22.  
  23. When compiling cccp with optimizing on, the fase1 as well as the fase2
  24. compiler removes labels wich should be there:
  25.  
  26. $ make CC=gcc CFLAGS="-O" cccp
  27.         gcc  -DIN_GCC   -O     -I. -I. -I./config \
  28.           -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/m68k-sysv4/`sed -e 's/.*\"\
  29. ([^ \"]*\)[ \"].*/\1/' < ./version.c`/include\" \
  30.           -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" \
  31.           -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
  32.           -DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/m68k-sysv4/`sed -e 's/.*\
  33. "\([^ \"]*\)[ \"].*/\1/' < ./version.c`/sys-include\" \
  34.           -DTOOLDIR=\"/usr/local/m68k-sysv4/\" \
  35.           -c `echo ./cccp.c | sed 's,^\./,,'`
  36.         gcc  -DIN_GCC   -O     -I. -I. -I./config -c ./cexp.c
  37.         gcc  -DIN_GCC   -O   -o cccp cccp.o cexp.o version.o obstack.o ` case "g
  38. cc" in "cc") echo alloca.o ;; esac `
  39. Undefined                       first referenced
  40.  symbol                             in file
  41. .LD785                              cccp.o
  42. .LD388                              cccp.o
  43. .LD2020                             cccp.o
  44. .LD279                              cexp.o
  45. .LD1064                             cccp.o
  46. .LD120                              cexp.o
  47. .LD2175                             cccp.o
  48. .LD350                              cexp.o
  49. .LD155                              cccp.o
  50. .LD777                              cccp.o
  51. ld: cccp: fatal error: Symbol referencing errors. No output written to cccp
  52. *** Error code 1 (bu21)
  53.  
  54.  
  55. Part of the generated assembler in cccp.o:
  56.  
  57.     cmp.l %d6,%a0
  58.     bcs.w .L779
  59. .LI785:
  60.     mov.w .LD785(%pc,%a0.l*2),%d0
  61.     jmp 6(%pc,%d0.w)
  62.     .swbeg &6
  63.  
  64. Any suggestions??
  65.  
  66.  
  67. --  
  68.    Joost Helberg                                Rijnzathe 6
  69.    jhelberg@oracle.nl                           NL-3454 PV De Meern
  70.    jhelberg@nl.oracle.com                       The Netherlands
  71.  
  72.    Oracle Europe BV                             Product Line Development    
  73.    Phone: +31 3406 94211                        Fax:   +31 3406 65609
  74.