home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gcc / bug / 3075 < prev    next >
Encoding:
Text File  |  1992-12-30  |  4.5 KB  |  104 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!uaboeing.ua.edu!jeff
  3. From: jeff@uaboeing.ua.edu (Jeff A. Earickson)
  4. Subject: endless loop in ./genflags
  5. Message-ID: <Pine.3.05.9212290926.A5413-d100000@uaboeing.ua.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Tue, 29 Dec 1992 03:24:26 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 91
  12.  
  13. Dear GCC Developers,
  14.  
  15.  
  16.     GCC Version: 2.3.3 (Dec 26 copy from prep.ai.mit.edu)
  17.     Platform:  Sun 3/60, running SunOS 4.1.1
  18.     Problem:   ./genflags goes into endless loop and creates
  19.                a huge tmp-flags.h file (mostly blanks)
  20.  
  21.  
  22. I did a "configure --target=sun3-sunos4.1" and then a 
  23. "make LANGUAGES=c".  For this example, the makefile is using
  24. Sun's /usr/bin/cc C compiler.  Here is the output from make:
  25.  
  26.  
  27. cc  -DIN_GCC   -g     -I. -I. -I./config -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/sun3-sunos4.1/`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ./version.c`/include\" -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" -DLOCAL_INCLUDE_DIR=\"/usr/local/inclu
  28.  
  29. de\" -DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/sun3-sunos4.1/`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ./version.c`/sys-include\" -DTOOLDIR=\"/usr/local/sun3-sunos4.1/\" -c `echo ./cccp.c | sed 's,^\./,,'`
  30. cc  -DIN_GCC   -g     -I. -I. -I./config -c ./cexp.c
  31. cc -c  -DIN_GCC   -g     -I. -I. -I./config version.c
  32. cc -c  -DIN_GCC   -g     -I. -I. -I./config obstack.c
  33. cc  -DIN_GCC   -g   -o cccp cccp.o cexp.o version.o obstack.o ` case "cc" in "cc") echo  ;; esac `  
  34. rm -f cpp
  35. ln cccp cpp
  36. cc  -DIN_GCC   -g     -I. -I. -I./config -c ./c-parse.c
  37. cc -c  -DIN_GCC   -g     -I. -I. -I./config c-lang.c
  38. cc -c  -DIN_GCC   -g     -I. -I. -I./config c-lex.c
  39. cc -c  -DIN_GCC   -g     -I. -I. -I./config c-decl.c
  40. cc -c  -DIN_GCC   -g     -I. -I. -I./config c-typeck.c
  41. cc -c  -DIN_GCC   -g     -I. -I. -I./config c-convert.c
  42. cc -c  -DIN_GCC   -g     -I. -I. -I./config c-aux-info.c
  43. cc -c  -DIN_GCC   -g     -I. -I. -I./config c-common.c
  44. cc -c  -DIN_GCC   -g     -I. -I. -I./config c-pragma.c
  45. cc -c  -DIN_GCC   -g     -I. -I. -I./config ./genattr.c
  46. cc -c  -DIN_GCC   -g     -I. -I. -I./config rtl.c
  47. cc  -DIN_GCC   -g   -o genattr genattr.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "cc"@"" in "cc"@?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` 
  48. ./genattr md > tmp-attr.h
  49. ./move-if-change tmp-attr.h insn-attr.h
  50. insn-attr.h is unchanged
  51. touch stamp-attr
  52. cc  -DIN_GCC   -g     -I. -I. -I./config  -DUSE_COLLECT2 -c `echo ./toplev.c | sed 's,^\./,,'`
  53. cc -c  -DIN_GCC   -g     -I. -I. -I./config tree.c
  54. cc -c  -DIN_GCC   -g     -I. -I. -I./config print-tree.c
  55. cc -c  -DIN_GCC   -g     -I. -I. -I./config stor-layout.c
  56. cc -c  -DIN_GCC   -g     -I. -I. -I./config fold-const.c
  57. cc -c  -DIN_GCC   -g     -I. -I. -I./config ./genflags.c
  58. cc  -DIN_GCC   -g   -o genflags genflags.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "cc"@"" in "cc"@?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` 
  59. ./genflags md > tmp-flags.h
  60. /bin/sh: 5392 Killed
  61.  
  62.  
  63. After genflags had churned along for a few minutes, I did an "ls -l"
  64. on tmp-flags.h, and here is what I found:
  65.  
  66. (44)> ls -l tmp-flags.h
  67. -rw-------  1 jeff     staff     1515520 Dec 29 09:14 tmp-flags.h
  68.  
  69.  
  70. Doing a "more" on the file shows that it is ok down to:
  71.  
  72. (more stuff above)
  73. #define HAVE_jump 1
  74. #define HAVE_tablejump 1
  75. #define HAVE_decrement_and_branch_until_zero (find_reg_note (insn, REG_NONNEG,0)) 
  76. #define HAVE_call 1
  77. #define HAVE_call_value 1
  78. #define HAVE_nop 1
  79. #define HAVE_probe (NEED_PROBE)
  80. #define HAVE_return (USE_RETURN_INSN)
  81. #define HAVE_indirect_jump 1
  82.  
  83. #ifndef NO_MD_PROTOTYPES
  84. extern rtx gen_tstsi                                                            
  85. (mucho blanks beyond here)
  86.  
  87.  
  88. Doing an "od -bc" on the file revealed that everything else was blanks.
  89. I did the same thing last night, then went to supper.  When I came back
  90. two hours later, tmp-flags.h was a 179Mb file!
  91.  
  92.  
  93. /*------------------------------------------------------------------------*/
  94. /* Jeff A. Earickson                         e-mail: jeff@uaboeing.ua.edu */
  95. /* Cray/nCUBE/Sun Consultant,                  Work Phone: (205) 348-3969 */
  96. /* Alabama Supercomputer Network                 Work Fax: (205) 348-3993 */
  97. /* Boeing Computer Services                                               */
  98. /* Address: PO Box 870346, University of Alabama, Tuscaloosa, AL 35487    */
  99. /* Alabama 12-0-0, AP #2, Sugar Bowl bound, soon to be #1.  Roll Tide!!!  */
  100. /*------------------------------------------------------------------------*/
  101.  
  102.  
  103.  
  104.