From: "H.J. Lu" <hjl.tools@gmail.com>
To: Uros Bizjak <ubizjak@gmail.com>
Cc: Andrew Haley <aph@redhat.com>, "H.J. Lu" <hongjiu.lu@intel.com>,
java-patches@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Re: PR libjava/53973: Check and and skip 67h address size prefix for x32
Date: Wed, 18 Jul 2012 17:58:00 -0000 [thread overview]
Message-ID: <CAMe9rOrDemTWUeWwFJMTO5_FibE=cc4nyjaY_S13yaP2kpSPUw@mail.gmail.com> (raw)
In-Reply-To: <CAFULd4aWPnM9630tBsUd_yZ5cQN3sR1BzEmOA=OAFbbkz_cfag@mail.gmail.com>
On Wed, Jul 18, 2012 at 10:47 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> On Wed, Jul 18, 2012 at 7:34 PM, Andrew Haley <aph@redhat.com> wrote:
>> On 07/18/2012 05:30 PM, H.J. Lu wrote:
>>> 2012-07-16 H.J. Lu <hongjiu.lu@intel.com>
>>>
>>> PR libjava/53973
>>> * include/x86_64-signal.h (CHECK_67H_PREFIX): New.
>>> (HANDLE_DIVIDE_OVERFLOW): Check and and skip 67h address size
>>> prefix if CHECK_67H_PREFIX is 1. Use ULL suffix for 64-bit
>>> integer.
>>
>> OK. I would have thought it was OK to skip the 67h address size
>> whether or not it was x32, though.
>
> You can just skip the prefix unconditionally.
>
> Uros.
I will check in this patch shortly.
Thanks.
--
H.J.
---
2012-07-18 H.J. Lu <hongjiu.lu@intel.com>
PR libjava/53973
* include/x86_64-signal.h (CHECK_67H_PREFIX): Removed.
(HANDLE_DIVIDE_OVERFLOW): Check and and skip 67h address size
prefix unconditionally.
diff --git a/libjava/include/x86_64-signal.h b/libjava/include/x86_64-signal.h
index 84907c3..aa5a903 100644
--- a/libjava/include/x86_64-signal.h
+++ b/libjava/include/x86_64-signal.h
@@ -21,12 +21,6 @@ details. */
#define HANDLE_SEGV 1
#define HANDLE_FPE 1
-#ifdef __ILP32__
-# define CHECK_67H_PREFIX 1
-#else
-# define CHECK_67H_PREFIX 0
-#endif
-
#define SIGNAL_HANDLER(_name) \
static void _Jv_##_name (int, siginfo_t *, \
void *_p __attribute__ ((__unused__)))
@@ -53,8 +47,8 @@ do \
\
bool _is_64_bit = false; \
\
- /* Check and skip 67h address size prefix if needed. */ \
- if (CHECK_67H_PREFIX && _rip[0] == 0x67) \
+ /* Check and skip 67h address size prefix. */ \
+ if (_rip[0] == 0x67) \
_rip++; \
\
prev parent reply other threads:[~2012-07-18 17:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20120716210441.GA5620@intel.com>
2012-07-18 16:30 ` H.J. Lu
2012-07-18 17:35 ` Andrew Haley
2012-07-18 17:47 ` Uros Bizjak
2012-07-18 17:58 ` H.J. Lu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAMe9rOrDemTWUeWwFJMTO5_FibE=cc4nyjaY_S13yaP2kpSPUw@mail.gmail.com' \
--to=hjl.tools@gmail.com \
--cc=aph@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=hongjiu.lu@intel.com \
--cc=java-patches@gcc.gnu.org \
--cc=ubizjak@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).