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: g77 testsuite failures under hpux 10.20


> It appears as if we're replacing hunks of RTL with stuff on obstacks
> which is kind of weird.  But might be plausible since we're probably
> putting this value in the constant pool.

Here is some output from stepping through the problem area:

(gdb) p *saveable_obstack
$30 = {chunk_size = 4072, chunk = 0x4004cb28,
  object_base = 0x4004cb30 "zê(Xzê¼è", next_free = 0x4004cb38 "",
  chunk_limit = 0x4004db10 "@\003ñ`", temp = 0, alignment_mask = 7,
  chunkfun = 0x4001320a <_exit_dummy_decl+4186>,
  freefun = 0x400122fa <_exit_dummy_decl+330>, extra_arg = 0x0,
  use_extra_arg = 0, maybe_empty_object = 1, alloc_failed = 0}
(gdb) step
3534      obstack_grow (saveable_obstack, &value, sizeof value);
(gdb) p (char *)0x4004cb40
$31 = 0x4004cb40 "@do_lio"
(gdb) p *saveable_obstack
$32 = {chunk_size = 4072, chunk = 0x4004cb28,
  object_base = 0x4004cb30 "zê(Xzê¼è", next_free = 0x4004cb3c "sle",
  chunk_limit = 0x4004db10 "@\003ñ`", temp = 0, alignment_mask = 7,
  chunkfun = 0x4001320a <_exit_dummy_decl+4186>,
  freefun = 0x400122fa <_exit_dummy_decl+330>, extra_arg = 0x0,
  use_extra_arg = 0, maybe_empty_object = 1, alloc_failed = 0}
(gdb) step
3536      return (struct constant_descriptor *) obstack_finish (saveable_obstack);
(gdb) p (char *)0x4004cb40
$33 = 0x4004cb40 ""

The obstack_grow call has walked over the rtl.

-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

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