public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "kkojima at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/55659] [4.8 Regression] [SH] Build failure with ICE in dwarf2out_var_location, at dwarf2out.c:20748
Date: Wed, 12 Dec 2012 07:34:00 -0000	[thread overview]
Message-ID: <bug-55659-4-LymgPVwavJ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55659-4@http.gcc.gnu.org/bugzilla/>


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

--- Comment #2 from Kazumoto Kojima <kkojima at gcc dot gnu.org> 2012-12-12 07:34:20 UTC ---
(In reply to comment #1)
> Please provide preprocessed testcase and gcc options, so that this can be
> looked at from a cross-compiler.
> Very likely md reorg pass does something wrong.

A reduced testcase for -g -O2 is

void
foo (void)
{
  bar ();
}

I've got a similar failure for the unified arm-elf build:

/home/kkojima/kaz/xarm-eabi-combined/combined/libgcc/libgcc2.c: In function
'__eprintf':
/home/kkojima/kaz/xarm-eabi-combined/combined/libgcc/libgcc2.c:2054:1: internal
compiler error: in dwarf2out_var_location, at dwarf2out.c:20748
 }
 ^
0x82a0dba dwarf2out_var_location
    /home/kkojima/kaz/xarm-eabi-combined/combined/gcc/dwarf2out.c:20744
0x82a0dba dwarf2out_var_location
    /home/kkojima/kaz/xarm-eabi-combined/combined/gcc/dwarf2out.c:20632
0x831eb1b final_scan_insn(rtx_def*, _IO_FILE*, int, int, int*)
    /home/kkojima/kaz/xarm-eabi-combined/combined/gcc/final.c:2215

A reduced testcase for arm-elf with -g -O2 might be more handy:

--
struct _on_exit_args { };
typedef struct __sFILE __FILE;
struct _reent {
  __FILE *_stdin, *_stdout, *_stderr;
};
extern struct _reent *_impure_ptr ;
void
__eprintf (const char *string, const char *expression, unsigned int line,
       const char *filename)
{
  fprintf ((_impure_ptr->_stderr), string, expression, line, filename);
  abort ();
}


  parent reply	other threads:[~2012-12-12  7:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-12  6:09 [Bug target/55659] New: " kkojima at gcc dot gnu.org
2012-12-12  7:28 ` [Bug target/55659] " jakub at gcc dot gnu.org
2012-12-12  7:34 ` kkojima at gcc dot gnu.org [this message]
2012-12-12  9:55 ` rguenth at gcc dot gnu.org
2012-12-12  9:56 ` jakub at gcc dot gnu.org
2012-12-12 10:02 ` jakub at gcc dot gnu.org
2012-12-12 11:19 ` kkojima at gcc dot gnu.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-55659-4-LymgPVwavJ@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).