This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: more m68k breakage on m68k-linux
On Wed, Mar 03, 2004 at 11:38:38PM +0100, Bernardo Innocenti wrote:
> To make sure this particular case will never show up again
> on any backend, I'd like to add some static sanity checks.
> We can't use the preprocessor because it doesn't know about
> structure sizes.
actually, in this particular case the compiler has all
necessary information to catch the error, any chance
gcc could grasp simple memcpy overruns when the size
of both operands is known?
Adding yet another check for an extremely unlikely condition
may not be a good tradeoff at this place.
Richard