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]

Some porting help


Hi. I need some help in my port of GCC. It is probably a silly question,
but I'm running out of time and is desperate...

In gccint it is written about the (pre_dec:m x) that "x must be reg or
mem, but most machines allow only a reg". How can I tell GCC that only
reg is allowed? I have tried to do this in GO_IF_LEGITIMATE_ADDRESS but
it don't work (in all cases). The problem occurs when x in
kill_autoinc_value() (regrename.c) is

(pre_dec:SI (mem:SI (plus:SI (reg:SI)
                             (const_int -28))))

later a REGNO(XEXP(x, 0)) is called which can't be found. This value is
later sent to set_value_regno() which leads to a segmentation fault.

Anders


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