public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/48561] New: internal compiler error: in change_address_1, at emit-rtl.c:1954
@ 2011-04-11 20:48 brian.davis at eclipseoptions dot com
  2011-04-12 10:32 ` [Bug c/48561] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: brian.davis at eclipseoptions dot com @ 2011-04-11 20:48 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: internal compiler error: in change_address_1, at
                    emit-rtl.c:1954
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: brian.davis@eclipseoptions.com


NOTE: changing the typedef of ITERATOR_TYPE from uint32_t to uint16_t on line
903 of the preprocessed source will allow the program to compile successfully.

$ uname -a
Linux bdavis-desktop 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:46 UTC
2011 x86_64 GNU/Linux

$ gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ /usr/bin/gcc-4.4 -DLINUX -DLINUX64 -D_POSIX_PTHREAD_SEMANTICS -fPIC
-D_REENTRANT -DLINUX64 -D_GNU_SOURCE -MMD -g -O2 -pthread -std=gnu99
-march=native -m64 -ffast-math -mieee-fp  -Wall -Wstrict-prototypes fail.c
testArrayQueueMRU.c: In function ‘main’:
testArrayQueueMRU.c:190: internal compiler error: in change_address_1, at
emit-rtl.c:1954
Please submit a full bug report,
with preprocessed source if appropriate.


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

* [Bug c/48561] internal compiler error: in change_address_1, at emit-rtl.c:1954
  2011-04-11 20:48 [Bug c/48561] New: internal compiler error: in change_address_1, at emit-rtl.c:1954 brian.davis at eclipseoptions dot com
@ 2011-04-12 10:32 ` rguenth at gcc dot gnu.org
  2011-04-13 14:26 ` brian.davis at eclipseoptions dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-12 10:32 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011.04.12 10:32:00
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-12 10:32:00 UTC ---
-EMISSINGATTACHMENT


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

* [Bug c/48561] internal compiler error: in change_address_1, at emit-rtl.c:1954
  2011-04-11 20:48 [Bug c/48561] New: internal compiler error: in change_address_1, at emit-rtl.c:1954 brian.davis at eclipseoptions dot com
  2011-04-12 10:32 ` [Bug c/48561] " rguenth at gcc dot gnu.org
@ 2011-04-13 14:26 ` brian.davis at eclipseoptions dot com
  2011-04-13 14:28 ` brian.davis at eclipseoptions dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: brian.davis at eclipseoptions dot com @ 2011-04-13 14:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Brian Davis <brian.davis at eclipseoptions dot com> 2011-04-13 14:26:46 UTC ---
Created attachment 23974
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23974
preprocessed source


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

* [Bug c/48561] internal compiler error: in change_address_1, at emit-rtl.c:1954
  2011-04-11 20:48 [Bug c/48561] New: internal compiler error: in change_address_1, at emit-rtl.c:1954 brian.davis at eclipseoptions dot com
  2011-04-12 10:32 ` [Bug c/48561] " rguenth at gcc dot gnu.org
  2011-04-13 14:26 ` brian.davis at eclipseoptions dot com
@ 2011-04-13 14:28 ` brian.davis at eclipseoptions dot com
  2012-01-11 13:41 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: brian.davis at eclipseoptions dot com @ 2011-04-13 14:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Brian Davis <brian.davis at eclipseoptions dot com> 2011-04-13 14:28:15 UTC ---
Not sure why it didn't get attached before, but perhaps I uncompressed it on my
local file system after setting the path but before submitting the bug and
didn't check the results carefully.  Anyway, now attached.


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

* [Bug c/48561] internal compiler error: in change_address_1, at emit-rtl.c:1954
  2011-04-11 20:48 [Bug c/48561] New: internal compiler error: in change_address_1, at emit-rtl.c:1954 brian.davis at eclipseoptions dot com
                   ` (2 preceding siblings ...)
  2011-04-13 14:28 ` brian.davis at eclipseoptions dot com
@ 2012-01-11 13:41 ` rguenth at gcc dot gnu.org
  2012-01-11 13:46 ` [Bug c/48561] [4.4 Regression] " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-11 13:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*
             Status|WAITING                     |NEW
      Known to fail|                            |4.5.3

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-11 13:40:21 UTC ---
Confirmed.  Works on 4.6 and 4.7.  Reduced testcase:

typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
typedef uint32_t ITERATOR_TYPE;
const uint8_t RETIRED = (1 << 1);
struct AQMRU_Instantiated_For_Payload {
    ITERATOR_TYPE next;
    uint8_t flags;
};
typedef struct {
    ITERATOR_TYPE queueHead;
    ITERATOR_TYPE queueCount;
    ITERATOR_TYPE stackHead;
    struct AQMRU_Instantiated_For_Payload entries[((1 == sizeof(ITERATOR_TYPE))
? (255) : ((2 == sizeof(ITERATOR_TYPE)) ? (65535) : ((4 ==
sizeof(ITERATOR_TYPE)) ? (4294967295U) : 0)))];
} TestQueue;
int main(int argc, const char *argv[])
{
  TestQueue testQueue;
  ITERATOR_TYPE iter;
  ITERATOR_TYPE count;
  for (count = 0;
       count < ((1 == sizeof(ITERATOR_TYPE)) ? (255) : ((2 ==
sizeof(ITERATOR_TYPE)) ? (65535) : ((4 == sizeof(ITERATOR_TYPE)) ?
(4294967295U) : 0)));
       ++count)
    {
      ITERATOR_TYPE temp = iter;
      iter = testQueue.entries[iter].next;
      testQueue.queueHead = iter;
      testQueue.queueCount--;
      if (0 == testQueue.queueCount)
        {
          ((((1 == sizeof(ITERATOR_TYPE)) ? (255) : ((2 ==
sizeof(ITERATOR_TYPE)) ? (65535) : ((4 == sizeof(ITERATOR_TYPE)) ?
(4294967295U) : 0))) == testQueue.queueHead) ? (void) (0) : __assert_fail ());
        }
      testQueue.entries[temp].next = testQueue.stackHead;
      testQueue.stackHead = temp;
    }
}

notice the large variable testQueue.


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

* [Bug c/48561] [4.4 Regression] internal compiler error: in change_address_1, at emit-rtl.c:1954
  2011-04-11 20:48 [Bug c/48561] New: internal compiler error: in change_address_1, at emit-rtl.c:1954 brian.davis at eclipseoptions dot com
                   ` (3 preceding siblings ...)
  2012-01-11 13:41 ` rguenth at gcc dot gnu.org
@ 2012-01-11 13:46 ` rguenth at gcc dot gnu.org
  2012-01-11 13:55 ` rguenth at gcc dot gnu.org
  2012-03-13 17:20 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-11 13:46 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.3.6, 4.5.3
   Target Milestone|---                         |4.4.7
            Summary|internal compiler error: in |[4.4 Regression] internal
                   |change_address_1, at        |compiler error: in
                   |emit-rtl.c:1954             |change_address_1, at
                   |                            |emit-rtl.c:1954
      Known to fail|4.5.3                       |4.4.6, 4.5.2

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-11 13:45:39 UTC ---
Fixed with 4.5.3 at least.  4.4 branch backtrace:

#0  fancy_abort (
    file=0xf8aa58 "/space/rguenther/src/svn/gcc-4_4-branch/gcc/emit-rtl.c", 
    line=1954, function=0xf8adb0 "change_address_1")
    at /space/rguenther/src/svn/gcc-4_4-branch/gcc/diagnostic.c:712
#1  0x00000000005edd0d in change_address_1 (memref=0x7ffff5f8b1a0, 
    mode=SImode, addr=0x7ffff5f8b300, validate=1)
    at /space/rguenther/src/svn/gcc-4_4-branch/gcc/emit-rtl.c:1954
#2  0x00000000005eebeb in adjust_address_1 (memref=0x7ffff5f8b1a0, 
    mode=SImode, offset=0, validate=1, adjust=1)
    at /space/rguenther/src/svn/gcc-4_4-branch/gcc/emit-rtl.c:2051
#3  0x00000000005484a5 in insert_save (chain=0x155e6f0, before_p=1, regno=1, 
    to_save=0x7fffffffd6b8, save_mode=0x7fffffffd6d0)
    at /space/rguenther/src/svn/gcc-4_4-branch/gcc/caller-save.c:1164
#4  0x00000000005478fe in save_call_clobbered_regs ()
    at /space/rguenther/src/svn/gcc-4_4-branch/gcc/caller-save.c:860
#5  0x0000000000861c88 in reload (first=0x7ffff5f7dc00, global=1)
    at /space/rguenther/src/svn/gcc-4_4-branch/gcc/reload1.c:1050
#6  0x000000000078beae in ira (f=0x0)
    at /space/rguenther/src/svn/gcc-4_4-branch/gcc/ira.c:3244


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

* [Bug c/48561] [4.4 Regression] internal compiler error: in change_address_1, at emit-rtl.c:1954
  2011-04-11 20:48 [Bug c/48561] New: internal compiler error: in change_address_1, at emit-rtl.c:1954 brian.davis at eclipseoptions dot com
                   ` (4 preceding siblings ...)
  2012-01-11 13:46 ` [Bug c/48561] [4.4 Regression] " rguenth at gcc dot gnu.org
@ 2012-01-11 13:55 ` rguenth at gcc dot gnu.org
  2012-03-13 17:20 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-11 13:55 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |matt@3am-software.com

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-11 13:50:45 UTC ---
*** Bug 21307 has been marked as a duplicate of this bug. ***


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

* [Bug c/48561] [4.4 Regression] internal compiler error: in change_address_1, at emit-rtl.c:1954
  2011-04-11 20:48 [Bug c/48561] New: internal compiler error: in change_address_1, at emit-rtl.c:1954 brian.davis at eclipseoptions dot com
                   ` (5 preceding siblings ...)
  2012-01-11 13:55 ` rguenth at gcc dot gnu.org
@ 2012-03-13 17:20 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-13 17:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|                            |FIXED
   Target Milestone|4.4.7                       |4.5.3

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-13 13:29:04 UTC ---
Fixed in 4.5+, 4.4 is no longer supported.


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

end of thread, other threads:[~2012-03-13 17:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-11 20:48 [Bug c/48561] New: internal compiler error: in change_address_1, at emit-rtl.c:1954 brian.davis at eclipseoptions dot com
2011-04-12 10:32 ` [Bug c/48561] " rguenth at gcc dot gnu.org
2011-04-13 14:26 ` brian.davis at eclipseoptions dot com
2011-04-13 14:28 ` brian.davis at eclipseoptions dot com
2012-01-11 13:41 ` rguenth at gcc dot gnu.org
2012-01-11 13:46 ` [Bug c/48561] [4.4 Regression] " rguenth at gcc dot gnu.org
2012-01-11 13:55 ` rguenth at gcc dot gnu.org
2012-03-13 17:20 ` 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).