public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/60693] New: ICE on funny memcpy
@ 2014-03-28  7:56 luto at mit dot edu
  2014-03-28  8:11 ` [Bug target/60693] " trippels at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: luto at mit dot edu @ 2014-03-28  7:56 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60693
           Summary: ICE on funny memcpy
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: luto at mit dot edu

This little program:

int main()
{
  char buf[4096];
  memcpy(buf, (void *)0xffffffffff600000, 4096);

  return 0;
}

does this:

$ gcc ice.c
ice.c: In function ‘main’:
ice.c:4:3: warning: incompatible implicit declaration of built-in function
‘memcpy’ [enabled by default]
   memcpy(buf, (void *)0xffffffffff600000, 4096);
   ^
ice.c:4:9: internal compiler error: in ix86_copy_addr_to_reg, at
config/i386/i386.c:21886
   memcpy(buf, (void *)0xffffffffff600000, 4096);
         ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccJqACry.out file, please attach this to
your bugreport.


This is gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7).
>From gcc-bugs-return-447688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 28 08:08:51 2014
Return-Path: <gcc-bugs-return-447688-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6632 invoked by alias); 28 Mar 2014 08:08:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 6598 invoked by uid 48); 28 Mar 2014 08:08:44 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/60693] ICE on funny memcpy
Date: Fri, 28 Mar 2014 08:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_known_to_work cf_reconfirmed_on component cc everconfirmed target_milestone cf_known_to_fail
Message-ID: <bug-60693-4-Hl45Y24C8t@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60693-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60693-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-03/txt/msg02557.txt.bz2
Content-length: 883

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`693

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.7.3
   Last reconfirmed|                            |2014-03-28
          Component|c                           |target
                 CC|                            |hjl at gcc dot gnu.org,
                   |                            |trippels at gcc dot gnu.org
     Ever confirmed|0                           |1
   Target Milestone|---                         |4.8.3
      Known to fail|                            |4.8.3, 4.9.0

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Started with r203486.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/60693] ICE on funny memcpy
  2014-03-28  7:56 [Bug c/60693] New: ICE on funny memcpy luto at mit dot edu
@ 2014-03-28  8:11 ` trippels at gcc dot gnu.org
  2014-03-28  9:19 ` [Bug target/60693] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-03-28  8:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
And with r204338 on the 4.8 branch.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/60693] [4.8/4.9 Regression] ICE on funny memcpy
  2014-03-28  7:56 [Bug c/60693] New: ICE on funny memcpy luto at mit dot edu
  2014-03-28  8:11 ` [Bug target/60693] " trippels at gcc dot gnu.org
@ 2014-03-28  9:19 ` rguenth at gcc dot gnu.org
  2014-03-28 11:10 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-03-28  9:19 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
            Summary|ICE on funny memcpy         |[4.8/4.9 Regression] ICE on
                   |                            |funny memcpy


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/60693] [4.8/4.9 Regression] ICE on funny memcpy
  2014-03-28  7:56 [Bug c/60693] New: ICE on funny memcpy luto at mit dot edu
  2014-03-28  8:11 ` [Bug target/60693] " trippels at gcc dot gnu.org
  2014-03-28  9:19 ` [Bug target/60693] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
@ 2014-03-28 11:10 ` jakub at gcc dot gnu.org
  2014-03-28 19:31 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-03-28 11:10 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jakub at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 32472
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32472&action=edit
gcc49-pr60693.patch

Untested fix.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/60693] [4.8/4.9 Regression] ICE on funny memcpy
  2014-03-28  7:56 [Bug c/60693] New: ICE on funny memcpy luto at mit dot edu
                   ` (2 preceding siblings ...)
  2014-03-28 11:10 ` jakub at gcc dot gnu.org
@ 2014-03-28 19:31 ` jakub at gcc dot gnu.org
  2014-03-28 19:33 ` [Bug target/60693] [4.8 " jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-03-28 19:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Mar 28 19:31:17 2014
New Revision: 208915

URL: http://gcc.gnu.org/viewcvs?rev=208915&root=gcc&view=rev
Log:
    PR target/60693
    * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
    also if addr has VOIDmode.

    * gcc.target/i386/pr60693.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr60693.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/60693] [4.8 Regression] ICE on funny memcpy
  2014-03-28  7:56 [Bug c/60693] New: ICE on funny memcpy luto at mit dot edu
                   ` (3 preceding siblings ...)
  2014-03-28 19:31 ` jakub at gcc dot gnu.org
@ 2014-03-28 19:33 ` jakub at gcc dot gnu.org
  2014-04-10  7:57 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-03-28 19:33 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.9.0
            Summary|[4.8/4.9 Regression] ICE on |[4.8 Regression] ICE on
                   |funny memcpy                |funny memcpy
      Known to fail|4.9.0                       |

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/60693] [4.8 Regression] ICE on funny memcpy
  2014-03-28  7:56 [Bug c/60693] New: ICE on funny memcpy luto at mit dot edu
                   ` (4 preceding siblings ...)
  2014-03-28 19:33 ` [Bug target/60693] [4.8 " jakub at gcc dot gnu.org
@ 2014-04-10  7:57 ` jakub at gcc dot gnu.org
  2014-04-10  8:06 ` jakub at gcc dot gnu.org
  2014-08-01 18:04 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-04-10  7:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Apr 10 07:57:09 2014
New Revision: 209268

URL: http://gcc.gnu.org/viewcvs?rev=209268&root=gcc&view=rev
Log:
    Backport from mainline
    2014-03-28  Jakub Jelinek  <jakub@redhat.com>

    PR target/60693
    * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
    also if addr has VOIDmode.

    * gcc.target/i386/pr60693.c: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr60693.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/i386/i386.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/60693] [4.8 Regression] ICE on funny memcpy
  2014-03-28  7:56 [Bug c/60693] New: ICE on funny memcpy luto at mit dot edu
                   ` (5 preceding siblings ...)
  2014-04-10  7:57 ` jakub at gcc dot gnu.org
@ 2014-04-10  8:06 ` jakub at gcc dot gnu.org
  2014-08-01 18:04 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-04-10  8:06 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/60693] [4.8 Regression] ICE on funny memcpy
  2014-03-28  7:56 [Bug c/60693] New: ICE on funny memcpy luto at mit dot edu
                   ` (6 preceding siblings ...)
  2014-04-10  8:06 ` jakub at gcc dot gnu.org
@ 2014-08-01 18:04 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-08-01 18:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60693

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |filip.svoboda at netajo dot cz

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
*** Bug 61988 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-08-01 18:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-28  7:56 [Bug c/60693] New: ICE on funny memcpy luto at mit dot edu
2014-03-28  8:11 ` [Bug target/60693] " trippels at gcc dot gnu.org
2014-03-28  9:19 ` [Bug target/60693] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
2014-03-28 11:10 ` jakub at gcc dot gnu.org
2014-03-28 19:31 ` jakub at gcc dot gnu.org
2014-03-28 19:33 ` [Bug target/60693] [4.8 " jakub at gcc dot gnu.org
2014-04-10  7:57 ` jakub at gcc dot gnu.org
2014-04-10  8:06 ` jakub at gcc dot gnu.org
2014-08-01 18:04 ` jakub at gcc dot gnu.org

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