public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cestrauss at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/49084] [4.7 regression] bootstrap failure with Ada enabled
Date: Thu, 08 Dec 2011 01:24:00 -0000	[thread overview]
Message-ID: <bug-49084-4-5Hy5cBHXrD@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-49084-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #15 from Cesar Strauss <cestrauss at gmail dot com> 2011-12-08 01:23:31 UTC ---
(In reply to comment #14)
> Unfortunately I don't seem to be able to reproduce on Linux.  Could you see
> what object code has been generated for the line
> 
> gcc_assert (Nkind (gnat_root) == N_Compilation_Unit);
> 
> in stage1-gcc/ada/trans.o and prev-gcc/ada/trans.o?

In stage 1:

    .loc 26 300 0
    movl    _Nodes_Ptr, %eax     # Nodes_Ptr, Nodes_Ptr.1950
    movl    8(%ebp), %edx     # gnat_root, gnat_root.1951
    sall    $5, %edx     #, D.86803
    addl    %edx, %eax     # D.86803, D.86804
    movb    3(%eax), %al     # D.86804_24->U.K.kind, D.86805
    cmpb    $-87, %al     #, D.86805
    je    L4598     #,
    .loc 26 300 0 is_stmt 0 discriminator 1
    movl    $___FUNCTION__.42329, 8(%esp)     #,
    movl    $300, 4(%esp)     #,
    movl    $LC86, (%esp)     #,
    call    _fancy_abort     #
L4598:


In stage 2:

    .loc 2 300 0
    movl    80(%esp), %edx     # gnat_root,
    leal    (%edx,%edx,8), %eax     #, tmp414
    leal    (%ebx,%eax,4), %eax     #, D.84548
    cmpb    $-87, 3(%eax)     #, D.84548_25->U.K.kind
    jne    L8431     #,

BTW, in stage 2, the following does seems to work:

(gdb) p atree__nkind(gnat_root)
info__n_compilation_unit

The object code is

LFE829:
    .p2align 2,,3
    .globl    _atree__nkind
    .def    _atree__nkind;    .scl    2;    .type    32;    .endef
_atree__nkind:
LFB831:
    .loc 2 1326 0
    .cfi_startproc
LVL2409:
    movl    4(%esp), %eax     # n, tmp66
    .loc 2 1328 0
    sall    $5, %eax     #, tmp66
    addl    _atree__atree_private_part__nodes__table, %eax     #
atree__atree_private_part__nodes__table, tmp66
    movb    3(%eax), %al     #
*atree__atree_private_part__nodes__table.89_1[n_2(D)].nkind,
*atree__atree_private_part__nodes__table.89_1[n_2(D)].nkind
    .loc 2 1329 0
    ret
    .cfi_endproc


  parent reply	other threads:[~2011-12-08  1:24 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-20 16:44 [Bug ada/49084] New: Bootstrap failure with bug box of Program_Error EXCEPTION_ACCESS _VIOLATION / Error detected at system.ads:175:5 anhvofrcaus at gmail dot com
2011-05-22  9:19 ` [Bug ada/49084] [4.7 regression] bootstrap failure with Ada enabled ebotcazou at gcc dot gnu.org
2011-05-23 19:09 ` anhvofrcaus at gmail dot com
2011-08-02 14:13 ` rguenth at gcc dot gnu.org
2011-08-02 15:41 ` anhvofrcaus at gmail dot com
2011-08-02 20:28 ` anhvofrcaus at gmail dot com
2011-08-04 16:02 ` anhvofrcaus at gmail dot com
2011-10-10 11:51 ` rguenth at gcc dot gnu.org
2011-11-13 10:30 ` ktietz at gcc dot gnu.org
2011-11-15  4:05 ` anhvofrcaus at gmail dot com
2011-11-22 22:00 ` cestrauss at gmail dot com
2011-11-24  3:29 ` cestrauss at gmail dot com
2011-11-27 21:30 ` cestrauss at gmail dot com
2011-11-27 22:40 ` ebotcazou at gcc dot gnu.org
2011-11-28  1:23 ` cestrauss at gmail dot com
2011-12-04 22:00 ` ebotcazou at gcc dot gnu.org
2011-12-08  1:24 ` cestrauss at gmail dot com [this message]
2011-12-11  0:24 ` cestrauss at gmail dot com
2011-12-11  8:33 ` ebotcazou at gcc dot gnu.org
2011-12-13  9:21 ` ktietz at gcc dot gnu.org
2011-12-13 10:08 ` ebotcazou at gcc dot gnu.org
2011-12-13 10:28 ` ebotcazou at gcc dot gnu.org
2011-12-13 11:25 ` ebotcazou at gcc dot gnu.org
2011-12-13 11:30 ` ebotcazou at gcc dot gnu.org
2011-12-14  1:04 ` cestrauss at gmail dot com
2011-12-16 16:26 ` anhvofrcaus 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=bug-49084-4-5Hy5cBHXrD@http.gcc.gnu.org/bugzilla/ \
    --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).