This is the mail archive of the gcc@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]
Other format: [Raw text]

Crash in garbage collector


Hi all,

I have been working on a port of GCC to a new architecture, which for
the most part is compiling reasonably well. However, for a few files, I
am seeing crashes in the garbage collector. The first time I had this
problem, it disappeared when I changed:

label = gen_rtx (LABEL_REF, VOIDmode, operands[0]);

To 

label = gen_rtx_LABEL_REF (VOIDmode, operands[0]);

in one of my machine specific source files. Can anyone explain how this
might have effected things? Unfortunatly, this didn't fix all of the
crashes I was seeing, and I have no more calls to gen_rtx. I have tried
configuring with --enable-checking, but this hasn't shed any light on
the subject so far. 

What are the typical porting errors that can cause this kind of failure
(if there is such a thing)?

Incidentally, this happens on both Linux and Cygwin. My port is based on
the gcc-3.3.2 release.

Cheers,
JonB




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