This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/expand] PR64011 Adjust bitsize when partial overflow happen for big-endian
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: Jiong Wang <jiong dot wang at arm dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 13 Jan 2015 22:42:28 +0000
- Subject: Re: [PATCH/expand] PR64011 Adjust bitsize when partial overflow happen for big-endian
- Authentication-results: sourceware.org; auth=none
- References: <54A27CBA dot 8080609 at arm dot com> <54AF6B36 dot 5090305 at redhat dot com> <54AFD9F8 dot 5060202 at arm dot com> <54B59217 dot 5070305 at redhat dot com>
On Tue, 13 Jan 2015, Jeff Law wrote:
> In many ways having the compiler or assembler spitting out an error here is
> preferable to silently compiling the code. That would also help explain why
As usual, an error is incorrect in such a case that only has undefined
behavior at runtime (but it may be compiled into an abort if the behavior
is unconditionally undefined, and the abort doesn't replace anything
before the undefined behavior that might have stopped the undefined
behavior from occurring).
--
Joseph S. Myers
joseph@codesourcery.com