home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / gcc / bug / 2276 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.0 KB  |  56 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!devo.unify.COM!rjc
  3. From: rjc@devo.unify.COM
  4. Subject: bug in the interactions of gcc-2.2.2 and gas-1.38.1
  5. Message-ID: <9209080151.AA19958@unify.Unify.Com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Tue, 8 Sep 1992 01:51:00 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 43
  12.  
  13. I submitted a report for this bug to bug-gnu-utils yesterday, but am
  14. not really satisfied that this is entirely a gas bug.
  15.  
  16. Software: gcc-2.2.2 (configure i386-sequent-bsd --gas --with-gnu-ld)
  17.           [ld is from g++-1.39.  the fact that binutils-2.0 won't build
  18.            for this platform "out of the box" is another matter.]
  19. Hardware: Sequent Symmetry running DYNIX 3.0.12 in the ucb universe.
  20.  
  21. Bug:      While building the stage2 compiler, genattr cores in
  22.           init_rtl().  The problem appears to be that the stage1
  23.           compiler is (for a reason unknown to me) putting ".align 2"s
  24.           in the middle of the assembly generated for the function
  25.           init_rtl() in rtl.c.
  26.  
  27.     .align 2
  28. .globl _init_rtl
  29. _init_rtl:
  30.     pushl %ebp
  31.     movl %esp,%ebp
  32.     subl $32,%esp
  33.     pushl %edi
  34.     pushl %ebx
  35.     xorl %edx,%edx
  36.     .align 2           <---------------- this guy right here.
  37. L201:
  38.     movl _rtx_format(,%edx,4),%edi
  39.     xorb %al,%al
  40.     movl $-1,%ecx
  41.  
  42.       The system assembler correctly fills the void with "nop"s,
  43.           but gas is filling the void with zeros.  Obviously gas has a
  44.           bug, but I am left scratching my head and wondering why gcc
  45.           felt it had to align the label (since gcc-1.39 did not do
  46.           this).  I have built the compiler without gas, but I need
  47.           gas to handle the stabs generated by g++.  I am open to
  48.           patches and/or suggestions on how to proceed...  :-)
  49.  
  50. --
  51. Ronald Cole           +----------------------+  internet: rjc@unify.com
  52. Software Engineer II  | This space for rent. |  uucp:     uunet!unify!rjc
  53. Unify Corporation     +----------------------+  voice:    +1 916 928 6238
  54.           "THE BILL OF RIGHTS --- Void where prohibited by law"
  55.  
  56.