public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "steven at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/55597] internal compiler error: in plus_constant, at explow.c:88
Date: Tue, 04 Dec 2012 23:46:00 -0000	[thread overview]
Message-ID: <bug-55597-4-jSx8GE7RnR@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55597-4@http.gcc.gnu.org/bugzilla/>


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

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x32
                 CC|steven at gcc dot gnu.org,  |
                   |stevenb.gcc at gmail dot    |
                   |com                         |
            Summary|[4.8 Regression] internal   |internal compiler error: in
                   |compiler error: in          |plus_constant, at
                   |plus_constant, at           |explow.c:88
                   |explow.c:88                 |

--- Comment #4 from Steven Bosscher <steven at gcc dot gnu.org> 2012-12-04 23:46:01 UTC ---
Yup, target bug.

(gdb) down
#5  0x0000000000d165b2 in ix86_expand_move (mode=SImode,
operands=0x7fffffffc740) at ../../trunk/gcc/config/i386/i386.c:15936
15936           tmp = legitimize_tls_address (symbol, model, true);
(gdb) l
15931         rtx symbol = XEXP (XEXP (op1, 0), 0);
15932         rtx tmp = NULL;
15933
15934         model = SYMBOL_REF_TLS_MODEL (symbol);
15935         if (model)
15936           tmp = legitimize_tls_address (symbol, model, true);
15937         else if (TARGET_DLLIMPORT_DECL_ATTRIBUTES
15938                  && SYMBOL_REF_DLLIMPORT_P (symbol))
15939           tmp = legitimize_dllimport_symbol (symbol, true);
15940
(gdb) p debug_rtx(op0)
(reg:SI 60)
$11 = void
(gdb) p debug_rtx(op1)
(const:SI (plus:SI (symbol_ref:SI ("__morestack_initial_sp") [flags 0x10]
<var_decl 0x7ffff6301720 __morestack_initial_sp>)
        (const_int 4 [0x4])))
$12 = void
(gdb) p debug_rtx(addend)
(const_int 4 [0x4])
$13 = void
(gdb) p debug_rtx(symbol)
(symbol_ref:SI ("__morestack_initial_sp") [flags 0x10] <var_decl 0x7ffff6301720
__morestack_initial_sp>)
$14 = void
(gdb) 


Note how this tries to expand an SImode move.

Breakpoint 2, legitimize_tls_address (x=0x7ffff6401660, model=TLS_MODEL_REAL,
for_mov=true) at ../../trunk/gcc/config/i386/i386.c:12758
12758     rtx pic = NULL_RTX, tp = NULL_RTX;
(gdb) p debug_rtx(x)
(symbol_ref:SI ("__morestack_initial_sp") [flags 0x10] <var_decl 0x7ffff6301720
__morestack_initial_sp>)
$15 = void
(gdb) next
12759     enum machine_mode tp_mode = Pmode;
(gdb) 
12762     switch (model)
(gdb) 
12765         dest = gen_reg_rtx (Pmode);
(gdb) p Pmode
$16 = DImode

So now you're in trouble...

And for the record: This can never be a regression, X32 doesn't exist in
previous GCC releases.


  parent reply	other threads:[~2012-12-04 23:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-04 21:01 [Bug middle-end/55597] New: [4.8 Regression] " hjl.tools at gmail dot com
2012-12-04 22:29 ` [Bug middle-end/55597] " hjl.tools at gmail dot com
2012-12-04 22:52 ` bonzini at gnu dot org
2012-12-04 23:25 ` [Bug target/55597] " steven at gcc dot gnu.org
2012-12-04 23:46 ` steven at gcc dot gnu.org [this message]
2012-12-04 23:50 ` [Bug middle-end/55597] " hjl.tools at gmail dot com
2012-12-05 11:34 ` [Bug middle-end/55597] [4.8 Regression] " ebotcazou at gcc dot gnu.org
2012-12-05 17:28 ` hjl.tools at gmail dot com
2012-12-05 17:56 ` hjl.tools at gmail dot com
2012-12-05 20:46 ` ubizjak at gmail dot com
2012-12-06  0:22 ` hjl.tools at gmail dot com
2012-12-06 15:05 ` jakub at gcc dot gnu.org
2012-12-06 20:14 ` ubizjak at gmail dot com
2012-12-06 22:05 ` uros at gcc dot gnu.org
2012-12-07  3:44 ` hjl.tools at gmail dot com
2012-12-07  8:11 ` uros at gcc dot gnu.org
2012-12-07  8:21 ` ubizjak 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-55597-4-jSx8GE7RnR@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).