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

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!world.std.com!dango
  3. From: dango@world.std.com (Dan J Golick)
  4. Subject: bug in gcc
  5. Message-ID: <9207242042.AA18697@world.std.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Fri, 24 Jul 1992 12:42:52 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 70
  12.  
  13. /* 
  14. Bug report:
  15.  
  16. gcc -v :
  17. Reading specs from /usr/local/lib/gcc-lib/i386v32/2.1/specs
  18. gcc version 2.1
  19.  
  20. This program when compiled with the following compile line gives an internal error (output follows):
  21. gcc -fwritable-strings -DBUG -O2 -g -c -I/usr2/views3/include t.c 
  22.  
  23. OUTPUT:
  24. t.c: In function `vw_history':
  25. t.c:69: internal error--unrecognizable insn:
  26. (insn 33 32 34 (parallel[ 
  27.            (set (mem:BLK (plus:SI (reg:SI 34)
  28.                        (symbol_ref:SI ("history"))))
  29.                (mem:BLK (reg:SI 26)))
  30.            (use (const_int 15))
  31.            (use (const_int 1))
  32.            (set (reg:SI 29)
  33.                (const_int 0))
  34.            (set (reg:SI 27)
  35.                (plus:SI (reg:SI 35)
  36.                    (const_int 15)))
  37.            (set (reg:SI 28)
  38.                (plus:SI (reg:SI 26)
  39.                    (const_int 15)))
  40.        ] ) -1 (nil)
  41.    (expr_list:REG_UNUSED (reg:SI 29)
  42.        (expr_list:REG_UNUSED (reg:SI 27)
  43.            (expr_list:REG_UNUSED (reg:SI 28)
  44.                (nil)))))
  45. gcc: Internal compiler error: program cc1 got fatal signal 6
  46.  
  47. The bug goes away by compiling without the BUG define or turning off strength 
  48. optimization as in the following compile line:
  49. gcc -fwritable-strings -O2 -DBUG -fno-strength-reduce -g -c -I/usr2/views3/include t.c
  50. */
  51.  
  52. struct vwdays                     /* Scroll region data structure           */
  53. {
  54.     unsigned char l_dash[15];
  55.     unsigned char vw_day_date[14];
  56.     unsigned char l_[2];
  57.     unsigned char vw_day_samps[5];
  58.     unsigned char r_[9];
  59.     unsigned char r_dash[16];
  60. } ;
  61.  
  62.  
  63. struct history                      /* Data form data structure               */
  64. {
  65.     struct vwdays vw_days[10];      /* For scroll region on form              */
  66. } ;
  67. struct history history;
  68. int vw_history()
  69. {
  70. int i=0;
  71.     while(tstcall())
  72.     {
  73. #if defined BUG
  74.     strcpy(history.vw_days[i].l_dash, "--------------");
  75. #else
  76.     strcpy(history.vw_days[i].l_dash, "-------------");
  77. #endif
  78.     strcpy(history.vw_days[i].l_, ".");
  79.     i++;
  80.     }
  81. }
  82.  
  83.