This is the mail archive of the
mailing list for the GCC project.
Re: Overly-critical sanity check in ix86_compute_frame_size
- To: rth at redhat dot com
- Subject: Re: Overly-critical sanity check in ix86_compute_frame_size
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Thu, 1 Feb 01 16:50:05 EST
- Cc: gcc-patches at gcc dot gnu dot org
It would make a lot more sense to trap this case in assign_stack_local
instead. You're just wasting stack space on unnecessary alignment
That was my first thought, but it's not quite correct. Even if you
are allocating a zero-size object, the pointer returned must still
meet the alignment restrictions from a definitional perspective and
Ada actually cares (it wouldn't surprise me if there was a test in the
validation suite that checks for this, in fact).
Zero-sized objects aren't exactly common, so I don't see the waste as
a big thing.