[PATCH] diagnose unsupported uses of hardware register variables (PR 88000)

Jakub Jelinek jakub@redhat.com
Wed Nov 14 12:14:00 GMT 2018


On Wed, Nov 14, 2018 at 06:11:37AM -0600, Segher Boessenkool wrote:
> It doesn't "break" anything because it currently isn't guaranteed to work
> either.  There is __builtin_frame_address(0) for this of course (well,
> almost the same semantics, and it is actually well-defined and actually
> works).  Is there user code that tries to do this with a register var?

I've seen such code many times over the years, don't have time to perform
code searches for such kind of constructs now though.

	Jakub



More information about the Gcc-patches mailing list