home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gcc / bug / 2011 < prev    next >
Encoding:
Text File  |  1992-07-29  |  4.1 KB  |  150 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!maa486.hut.fi!tir
  3. From: tir@maa486.hut.fi (Timo Riikonen)
  4. Subject: gcc2.1 & cross-compiling
  5. Message-ID: <9207291845.AA04937@maa486.hut.fi>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Wed, 29 Jul 1992 16:45:00 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 136
  12.  
  13. version: gcc-2.1
  14. Host: 386-mach3.0        (BSD-UNIX 4.3, MK74, UX35)
  15. Result0: Same as host
  16. Result1: 860-sysv3
  17. Result2: 860-mach3
  18.  
  19. Result0 passed and works (modifications: touch c-parse.y).
  20. Results 1 & 2 failed at installing (see modifications).
  21.  
  22.  
  23. RESULT1
  24. =======
  25. Cutted from `make LANGUAGES=c install`
  26. if [ -f libgcc2.ready ] ; then  true;  else  touch libgcc2.ready;  fi
  27. rm -f tmplibgcc2.a
  28. set -e;  for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2  _lshrdi3 _lshldi3 _ashldi3 _ashrdi3   _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf  _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi  _varargs _eprintf _builtin_new _builtin_New _builtin_del  _bb _shtab _clear_cache _trampoline __main _exit;  do  echo ${name};  ./gcc -O2 -DCROSS_COMPILE   -g -B./ -g1 -I. -I. -I./config -c -DL${name}  ./libgcc2.c -o ${name}.o;  if [ $? -eq 0 ] ; then true; else exit 1; fi;  /usr/l
  29. ocal/i860-sysv3/bin/ar rc tmplibgcc2.a ${name}.o;  rm -f ${name}.o;  done
  30. _muldi3
  31. In file included from ./libgcc2.c:31:
  32. ./tm.h:159: warning: `USE_CONST_SECTION' redefined
  33. ./config/svr3.h:184: warning: this is the location of the previous definition
  34. libgcc2.c:33:no such 386 instruction: `addu'
  35. libgcc2.c:34:invalid character '.' in opcode
  36. libgcc2.c:35:no such 386 instruction: `addu'
  37. libgcc2.c:36:invalid character '.' in opcode
  38. libgcc2.c:37:invalid character '.' in opcode
  39.  
  40.  
  41. I changed:
  42. *** svr3.h~    Thu Mar 19 22:40:09 1992
  43. --- svr3.h    Wed Jul 29 14:24:58 1992
  44. ***************
  45. *** 211,216 ****
  46. --- 211,220 ----
  47.     INIT_SECTION_FUNCTION                        \
  48.     FINI_SECTION_FUNCTION
  49.   
  50. + #ifndef BSS_SECTION_FUNCTION
  51. + #define BSS_SECTION_FUNCTION {}
  52. + #endif BSS_SECTION_FUNCTION
  53.   #define INIT_SECTION_FUNCTION                    \
  54.   void                                \
  55.   init_section ()                        \
  56. ***************
  57. *** 249,255 ****
  58.       }                                    \
  59.   }
  60.   
  61. ! #if 0
  62.   #define CTORS_SECTION_FUNCTION                        \
  63.   void                                    \
  64.   ctors_section ()                            \
  65. --- 253,259 ----
  66.       }                                    \
  67.   }
  68.   
  69. ! #if 1
  70.   #define CTORS_SECTION_FUNCTION                        \
  71.   void                                    \
  72.   ctors_section ()                            \
  73. ***************
  74. *** 281,287 ****
  75.      global destructors.  */
  76.   #define ASM_OUTPUT_DESTRUCTOR(FILE,NAME)                       \
  77.     do {                                    \
  78. -     fini_section ();                                   \
  79.       fprintf (FILE, "%s\t ", ASM_LONG);                    \
  80.       assemble_name (FILE, NAME);                              \
  81.       fprintf (FILE, "\n");                        \
  82. --- 293,298 ----
  83.  
  84.  
  85. That fini_section wasn't defined and FINI_SECTION_FUNCTION macro
  86. didn't work there.
  87.  
  88.  
  89.  
  90. RESULT2
  91. =======
  92.  
  93. Changes:
  94. *** /dev/null    Tue Jul 28 17:37:54 1992
  95. --- i860mach.h    Wed Jul 29 10:22:29 1992
  96. ***************
  97. *** 0 ****
  98. --- 1,13 ----
  99. + /* Configuration for an i860 running Mach as the target machine.  */
  100. + #include "i860.h"
  101. + #undef TARGET_VERSION
  102. + #define TARGET_VERSION fprintf (stderr, " (i860 Mach3.x)");
  103. + #undef CPP_PREDEFINES
  104. + #define CPP_PREDEFINES "-Dunix -Di860 -DMACH"
  105. + /* Specify extra dir to search for include files.  */
  106. + #define SYSTEM_INCLUDE_DIR "/usr/mach/include"
  107.  
  108.  
  109. *** configure~    Mon Mar 23 21:38:23 1992
  110. --- configure    Wed Jul 29 10:28:19 1992
  111. ***************
  112. *** 270,275 ****
  113. --- 270,280 ----
  114.           tm_file=i486v4.h
  115.           tmake_file=t-svr4
  116.           ;;
  117. +     i860-*-mach*)
  118. +         xm_file=xm-i860.h
  119. +         tm_file=i860mach.h
  120. +         tmake_file=t-libc-ok
  121. +         ;;
  122.       i860-*-sysv3*)
  123.           xm_file=xm-i86v3.h
  124.           xmake_file=x-i860v3
  125.  
  126.  
  127. Both of the results passed the compilation (with warnings).
  128. And both them failed to compile hello_world program on host computer. 
  129.  
  130. Stupid question:
  131. Is the cross-compiled gcc supposed to work only on that processor?
  132. The other alternative is that it would work on host processor, but
  133. would compile binaries for the other processor.
  134.  
  135. -- 
  136. Timo,        Timo.Riikonen@hut.fi
  137.  
  138. csh prompt% rm congressional-ethics
  139. rm: congressional-ethics nonexistent
  140.  
  141.