This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc 2.95 optimizer bug?


  In message <199908010541.AAA25357@jello.csc.ti.com>you write:
  >    cc: gcc-bugs@gcc.gnu.org
  >    Date: Sat, 31 Jul 1999 20:39:23 -0500
  >    From: Mumit Khan <khan@xraylith.wisc.EDU>
  > 
  >    Joe Ramey <ramey@csc.ti.com> writes:
  >    > I am using gcc 2.95 on a Sun Ultra-2 workstation running Solaris
  >    > 2.5.1.  I was compiling the teTeX-1.0 package and found that the mf
  >    > (MetaFont) program was dumping core.  When I compiled with gcc 2.8.1 I
  >    > did not have this problem.  Also I found that it will dump core if
  >    > compiled with gcc 2.95 using the -O2 option, but not when I am using
  >    > the -O1 option.
[ ... ]
  > 
  > 
  > Ok, here's a fixed version of the program that no longer has these
  > illegal accesses, but still dumps core with a Bus Error.  I took your
  > suggestion and ran the code under a memory debugger (Purify).  It
  > found 6 problems with the version of the code that I sent in before,
  > but this version comes through cleanly.  Again, the program gets a Bus
  > Error if I compile with -O2, but with -O1 it runs with no error, and
  > compiling with gcc 2.8.1 -O2 also produces code that runs with no
  > error.
  > 
  > FYI I also compiled with -O2 -g and then ran the program under gdb.
  > It dies here:
  > 
  > Program received signal SIGBUS, Bus error.
  > 0x10c98 in inittab () at trybug.c:120
  > 120       hashused = 9757 ;
  > (gdb) 
This bug should be fixed for the upcoming gcc-2.95.2 release.

Thanks,
jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]