public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla-noreply@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/45865] [4.6 regression] Failed to build 403.gcc in SPEC CPU 2006
Date: Wed, 06 Oct 2010 01:11:00 -0000	[thread overview]
Message-ID: <20101006011100.ezGKpMebHsHQZPB_hgRaYxE4G9qSrkJuCJ7HmmwEQO0@z> (raw)
In-Reply-To: <bug-45865-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2010-10-06 01:11:30 UTC ---
A simple testcase:

[hjl@gnu-32 rrs]$ cat pr45865.c
typedef struct rtx_def *rtx;
enum machine_mode {
  VOIDmode,
  CCFPmode,
  CCFPUmode,
  MAX_MACHINE_MODE
};
enum mode_class {
  MODE_CC,
  MODE_FLOAT,
  MODE_COMPLEX_FLOAT,
  MODE_VECTOR_FLOAT
};
extern const enum mode_class mode_class[(int) MAX_MACHINE_MODE];
enum rtx_code {
  UNKNOWN,
  GEU,
  ORDERED,
  CONST_INT
};
struct rtx_def {
  unsigned int code: 16;
  unsigned int mode : 8;
};
extern enum rtx_code reverse_condition (enum rtx_code);
enum rtx_code
reversed_comparison_code_parts (enum rtx_code code, rtx insn, rtx arg0,
                rtx arg1)
{
  enum machine_mode mode;
  mode = (enum machine_mode) (arg0)->mode;
  if (mode == VOIDmode)
    mode = (enum machine_mode) (arg1)->mode;
  if ((mode_class[(int) (mode)]) == MODE_CC)
    return (mode != CCFPmode && mode != CCFPUmode
        ? reverse_condition (code)
        : reverse_condition_maybe_unordered (code));
  switch (code) 
    {
    case GEU:
      return reverse_condition (code);
    case ORDERED:
      return UNKNOWN;
    }
  if (((enum rtx_code) (arg0)->code) == CONST_INT
      || (((enum machine_mode) (arg0)->mode) != VOIDmode
      && ! ((mode_class[(int) (mode)]) == MODE_FLOAT
        || (mode_class[(int) (mode)]) == MODE_COMPLEX_FLOAT
        || (mode_class[(int) (mode)]) == MODE_VECTOR_FLOAT)))
    return reverse_condition (code);
  return UNKNOWN;
}
[hjl@gnu-32 rrs]$ /export/gnu/import/rrs/164914/usr/bin/gcc -O2 -S -m32
pr45865.c
pr45865.c: In function \u2018reversed_comparison_code_parts\u2019:
pr45865.c:52:1: internal compiler error: in dwarf2out_cfi_begin_epilogue, at
dwarf2out.c:2930
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[hjl@gnu-32 rrs]$


  parent reply	other threads:[~2010-10-06  1:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-02 12:02 [Bug debug/45865] New: " hjl.tools at gmail dot com
2010-10-02 13:06 ` [Bug debug/45865] " hjl.tools at gmail dot com
2010-10-03  0:22 ` hjl.tools at gmail dot com
2010-10-06  1:11 ` hjl.tools at gmail dot com [this message]
2010-10-06  2:50 ` hjl.tools at gmail dot com
2010-10-09 13:06 ` hjl.tools at gmail dot com
2010-10-09 22:46 ` hjl.tools at gmail dot com
2010-10-10  0:49 ` hjl.tools at gmail dot com
2010-10-10  1:12 ` hjl.tools at gmail dot com
2010-10-12 21:59 ` hjl.tools at gmail dot com
2010-10-16 17:51 ` [Bug rtl-optimization/45865] [4.6 Regression] ifcvt/crossjump failed to mark return jump hjl.tools at gmail dot com
2010-10-18  4:37 ` hjl.tools at gmail dot com
2010-10-21 17:47 ` hjl.tools at gmail dot com
2010-10-23 17:26 ` rth at gcc dot gnu.org
2010-10-26  3:54 ` jakub at gcc dot gnu.org
2010-11-03 17:07 ` hjl at gcc dot gnu.org
2010-11-05 11:53 ` hjl.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=20101006011100.ezGKpMebHsHQZPB_hgRaYxE4G9qSrkJuCJ7HmmwEQO0@z \
    --to=gcc-bugzilla-noreply@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).