public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/45519] [4.6 regression] Failed to bootstrap
Date: Fri, 03 Sep 2010 13:44:00 -0000	[thread overview]
Message-ID: <20100903134357.20003.qmail@sourceware.org> (raw)
In-Reply-To: <bug-45519-682@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from rguenth at gcc dot gnu dot org  2010-09-03 13:43 -------
Reduced testcase:

typedef struct { unsigned int p_vaddr; } Elf32_Phdr;
typedef struct { int d_tag; } Elf32_Dyn;
typedef unsigned _Unwind_Ptr __attribute__((__mode__(__pointer__)));
int
_Unwind_IteratePhdrCallback (const Elf32_Phdr *p_dynamic,
                             _Unwind_Ptr load_base)
{
  Elf32_Dyn *dyn = (Elf32_Dyn *)  ((p_dynamic->p_vaddr) + (load_base));
  for (; dyn->d_tag != 0 ; dyn++)  
    if (dyn->d_tag == 3)
      return 0;
  return 1;
}
pr45519.3.i: In function '_Unwind_IteratePhdrCallback':
pr45519.3.i:11:1: error: Invalid first operand of MEM_REF.
D.2729_7
pr45519.3.i:11:1: note: in statement
D.2745_1 = &MEM[(struct Elf32_Dyn *)D.2729_7 + 4B];

pr45519.3.i:11:1: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


Other reduced testcase:

typedef struct { unsigned int p_vaddr; } Elf32_Phdr;
typedef struct { int d_tag; } Elf32_Dyn;
int
_Unwind_IteratePhdrCallback (const Elf32_Phdr *p_dynamic,
                             unsigned int load_base)
{
  Elf32_Dyn *dyn = (Elf32_Dyn *)  ((p_dynamic->p_vaddr) + (load_base));
  for (; dyn->d_tag != 0 ; dyn++)  
    if (dyn->d_tag == 3)
      return 0;
  return 1;
}
pr45519.3.i:4:1: internal compiler error: in build2_stat, at tree.c:3724
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 


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


  parent reply	other threads:[~2010-09-03 13:44 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03 13:18 [Bug bootstrap/45519] New: " hjl dot tools at gmail dot com
2010-09-03 13:18 ` [Bug bootstrap/45519] " hjl dot tools at gmail dot com
2010-09-03 13:22 ` rguenth at gcc dot gnu dot org
2010-09-03 13:32 ` hjl dot tools at gmail dot com
2010-09-03 13:32 ` hjl dot tools at gmail dot com
2010-09-03 13:44 ` rguenth at gcc dot gnu dot org [this message]
2010-09-03 14:21 ` rguenth at gcc dot gnu dot org
2010-09-03 14:33 ` rguenth at gcc dot gnu dot org
2010-09-03 14:53 ` hjl dot tools at gmail dot com
2010-09-03 15:37 ` hjl dot tools at gmail dot com
2010-09-03 16:48 ` hjl dot tools at gmail dot com
2010-09-03 17:10 ` hjl dot tools at gmail dot com
2010-09-04  8:01 ` jakub at gcc dot gnu dot org
2010-09-04  9:34 ` rguenth at gcc dot gnu dot org
2010-09-04 10:21 ` rguenth at gcc dot gnu dot org
2010-09-04 10:21 ` rguenth at gcc dot gnu dot org

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=20100903134357.20003.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).