public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "martin at netbsd dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/58442] bootstrapping vax crashes on NetBSD
Date: Mon, 23 Sep 2013 14:03:00 -0000	[thread overview]
Message-ID: <bug-58442-4-3jJ3EhwJP9@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-58442-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #6 from Martin Husemann <martin at netbsd dot org> ---
To verify, I instrumented get_mem_attrs:

static inline struct mem_attrs *
get_mem_attrs (const_rtx x)
{    
  struct mem_attrs *attrs;

  attrs = MEM_ATTRS (x);

  attrs = MEM_ATTRS (x);
  if (!attrs) {
    attrs = mode_mem_attrs[(int) GET_MODE (x)];
    if ((unsigned long)attrs < 1024) {
      fprintf(stderr, "ooops, mode_mem_attrs are bogus: %p mode %d\n", attrs,
G$
      debug_rtx(x);
    }
  } else if ((unsigned long)attrs < 1024) {
    fprintf(stderr, "ooops, bogus rtx mem attrs: %p\n", attrs);
    debug_rtx(x);
  }

  return attrs;
}

and indeed this fires:

ooops, bogus rtx mem attrs: 0x4
(subreg:SI (reg/v:DI 71 [ __s ]) 4)
In file included from
/usr/pkgobj/lang/gcc48/work/build/vax--netbsdelf/libstdc++-v3/include/bits/locale_facets_nonio.h:1903:0,
                 from
/usr/pkgobj/lang/gcc48/work/build/vax--netbsdelf/libstdc++-v3/include/locale:41,
                 from
../../../../../gcc-4.8.1/libstdc++-v3/src/c++98/locale-inst.cc:29:
...


  parent reply	other threads:[~2013-09-23 14:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-17 13:51 [Bug target/58442] New: " martin at netbsd dot org
2013-09-17 13:54 ` [Bug target/58442] " martin at netbsd dot org
2013-09-17 17:34 ` jbglaw@lug-owl.de
2013-09-18  7:23 ` martin at netbsd dot org
2013-09-19 20:43 ` martin at netbsd dot org
2013-09-23  8:06 ` martin at netbsd dot org
2013-09-23 14:03 ` martin at netbsd dot org [this message]
2013-10-21  9:43 ` martin at netbsd dot org
2013-10-21  9:53 ` martin at netbsd dot org
2013-10-23 13:26 ` martin at netbsd 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=bug-58442-4-3jJ3EhwJP9@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).