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]

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


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