public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl dot tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/44817] Stage2/stage3 genautomata has invalid memory access
Date: Mon, 05 Jul 2010 00:06:00 -0000	[thread overview]
Message-ID: <20100705000552.25986.qmail@sourceware.org> (raw)
In-Reply-To: <bug-44817-682@http.gcc.gnu.org/bugzilla/>



------- Comment #1 from hjl dot tools at gmail dot com  2010-07-05 00:05 -------
The code is

0000000000000260 <check_absence_pattern_sets>:
     260:       41 57                   push   %r15  
     262:       44 8b 1d 00 00 00 00    mov    0x0(%rip),%r11d        # 269
<check_absence_pattern_sets+0x9>
     269:       b8 01 00 00 00          mov    $0x1,%eax
     26e:       41 56                   push   %r14  
     270:       45 85 db                test   %r11d,%r11d
     273:       41 55                   push   %r13  
     275:       41 54                   push   %r12  
     277:       55                      push   %rbp  
     278:       53                      push   %rbx  
     279:       0f 8e 94 00 00 00       jle    313
<check_absence_pattern_sets+0xb3>
     27f:       48 8b 05 00 00 00 00    mov    0x0(%rip),%rax        # 286
<check_absence_pattern_sets+0x26>
     286:       48 8b 0d 00 00 00 00    mov    0x0(%rip),%rcx        # 28d
<check_absence_pattern_sets+0x2d>
     28d:       49 89 f5                mov    %rsi,%r13
     290:       4c 8b 35 00 00 00 00    mov    0x0(%rip),%r14        # 297
<check_absence_pattern_sets+0x37>
     297:       45 31 e4                xor    %r12d,%r12d
     29a:       48 89 44 24 f0          mov    %rax,-0x10(%rsp)
     29f:       48 89 4c 24 f8          mov    %rcx,-0x8(%rsp)
                                        ^^^^^^^^^^^^^^^^^^^^^^^ Is this safe?
...
     350:       48 8b 4c 24 f8          mov    -0x8(%rsp),%rcx
                                               ^^^^^^^^^^^ This is 0.
     355:       48 98                   cltq
     357:       4c 8b 14 c1             mov    (%rcx,%rax,8),%r10
     35b:       eb 80                   jmp    2dd
<check_absence_pattern_sets+0x7d>


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ubizjak at gmail dot com
            Version|4.5.1                       |4.6.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44817


  reply	other threads:[~2010-07-05  0:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-04 23:39 [Bug middle-end/44817] New: " hjl dot tools at gmail dot com
2010-07-05  0:06 ` hjl dot tools at gmail dot com [this message]
2010-07-05  0:20 ` [Bug middle-end/44817] " hjl dot tools at gmail dot com
2010-07-05 14:09 ` ubizjak at gmail dot com
2010-07-05 15:57 ` hjl dot tools at gmail dot com
2010-07-26 18:41 ` hjl dot tools at gmail dot com

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=20100705000552.25986.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).