https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312

--- Comment #11 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to H. Peter Anvin from comment #9)
> So this sounds like it would solve additional problems, which may very well
> make it worthwhile.

How about a guarantee that the first word of the redzone won't be used by the
compiler for anything else than short lived temporaries, so this location can
be clobbered at will? This guarantee would immediately solve CALL instructions
inside asm and PUSH/POP combos (e.g. flag intrinsics)

As said, we already have RED_ZONE_RESERVE at the *end* of redzone, it looks to
me that this reserve area can be moved to the *beginning* of the redzone with
little effort. (IIRC, RED_ZONE_RESERVE was used to obtain a memory slot after
reload, but it looks that nothing in the compiler uses this anymore.)

IMO, this guarantee should be written in the psABI. HJ, what do you think?

Reply via email to