public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51574] New: [4.6]  Internal error: Segmentation fault (program cc1plus)
@ 2011-12-15 20:08 hjl.tools at gmail dot com
  2011-12-15 20:14 ` [Bug c++/51574] " hjl.tools at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2011-12-15 20:08 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51574
           Summary: [4.6]  Internal error: Segmentation fault (program
                    cc1plus)
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com


Gcc 4.4 and 4.6 give me:

[hjl@gnu-6 build-i686-linux]$ cat /tmp/x.ii 
extern char _binary_binary_txt_start[];
extern char _binary_binary_txt_end[];
extern char _binary_binary_txt_size[];
typedef unsigned long uintptr_t;

extern "C" void __assert_fail (__const char *__assertion, __const char *__file,
      unsigned int __line, __const char *__function)
     throw () __attribute__ ((__noreturn__));


int
main(int, char**)
{
  int size = reinterpret_cast<uintptr_t>(_binary_binary_txt_size);
  ((size == _binary_binary_txt_end - _binary_binary_txt_start) ?
static_cast<void> (0) : __assert_fail ("size == _binary_binary_txt_end -
_binary_binary_txt_start",
"/export/gnu/import/git/binutils-x32/gold/testsuite/binary_test.cc", 39,
__PRETTY_FUNCTION__));

  return 0;
}
[hjl@gnu-6 build-i686-linux]$ /usr/gcc-4.6.3-x32/bin/gcc -S -O2 /tmp/x.ii
[hjl@gnu-6 build-i686-linux]$ /usr/gcc-4.6.3-x32/bin/gcc -S -O2 -m32 /tmp/x.ii
gcc: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[hjl@gnu-6 build-i686-linux]$ 

GCC 4.7 is OK.


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

* [Bug c++/51574] [4.6]  Internal error: Segmentation fault (program cc1plus)
  2011-12-15 20:08 [Bug c++/51574] New: [4.6] Internal error: Segmentation fault (program cc1plus) hjl.tools at gmail dot com
@ 2011-12-15 20:14 ` hjl.tools at gmail dot com
  2011-12-15 20:35 ` hjl.tools at gmail dot com
  2011-12-15 22:00 ` [Bug rtl-optimization/51574] " hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2011-12-15 20:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-12-15 20:07:44 UTC ---
It is on Linux/ia32 or Linux/x86-64.


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

* [Bug c++/51574] [4.6]  Internal error: Segmentation fault (program cc1plus)
  2011-12-15 20:08 [Bug c++/51574] New: [4.6] Internal error: Segmentation fault (program cc1plus) hjl.tools at gmail dot com
  2011-12-15 20:14 ` [Bug c++/51574] " hjl.tools at gmail dot com
@ 2011-12-15 20:35 ` hjl.tools at gmail dot com
  2011-12-15 22:00 ` [Bug rtl-optimization/51574] " hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2011-12-15 20:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-12-15 20:13:55 UTC ---
We are running out of stack:

#0  0x0000000000d72a35 in rtx_equal_p (x=) at ../../src/gcc/rtl.c:500
#1  0x0000000000dbeaea in simplify_binary_operation_1 (code=MINUS, 
    mode=SImode, op0=0x7ffff1473fe0, op1=0x7ffff1473fc0, 
    trueop0=0x7ffff1473fe0, trueop1=0x7ffff1473fc0)
    at ../../src/gcc/simplify-rtx.c:2124
#2  0x0000000000dbdd6c in simplify_binary_operation (code=MINUS, mode=SImode, 
    op0=0x7ffff1473fe0, op1=0x7ffff1473fc0)
    at ../../src/gcc/simplify-rtx.c:1909
#3  0x0000000000dc6525 in simplify_plus_minus (code=MINUS, mode=SImode, 
    op0=0x7ffff0ea6c60, op1=0x7ffff1473fc0)
    at ../../src/gcc/simplify-rtx.c:4061
#4  0x0000000000dbf9d9 in simplify_binary_operation_1 (code=MINUS, 
    mode=SImode, op0=0x7ffff0ea6c60, op1=0x7ffff1473fc0, 
    trueop0=0x7ffff0ea6c60, trueop1=0x7ffff1473fc0)
    at ../../src/gcc/simplify-rtx.c:2307
#5  0x0000000000dbdd6c in simplify_binary_operation (code=MINUS, mode=SImode, 
    op0=0x7ffff0ea6c60, op1=0x7ffff1473fc0)
    at ../../src/gcc/simplify-rtx.c:1909
#6  0x0000000000dc7845 in simplify_const_relational_operation (code=EQ, 
    mode=SImode, op0=0x7ffff0ea6c60, op1=0x7ffff1473fc0)
    at ../../src/gcc/simplify-rtx.c:4556
#7  0x0000000000dc6ace in simplify_relational_operation (code=EQ, 
    mode=VOIDmode, cmp_mode=SImode, op0=0x7ffff1473fc0, op1=0x7ffff0ea6c60)


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

* [Bug rtl-optimization/51574] [4.6]  Internal error: Segmentation fault (program cc1plus)
  2011-12-15 20:08 [Bug c++/51574] New: [4.6] Internal error: Segmentation fault (program cc1plus) hjl.tools at gmail dot com
  2011-12-15 20:14 ` [Bug c++/51574] " hjl.tools at gmail dot com
  2011-12-15 20:35 ` hjl.tools at gmail dot com
@ 2011-12-15 22:00 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2011-12-15 22:00 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2011-12-15 21:59:00 UTC ---
Dup.

*** This bug has been marked as a duplicate of bug 49720 ***


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

end of thread, other threads:[~2011-12-15 21:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-15 20:08 [Bug c++/51574] New: [4.6] Internal error: Segmentation fault (program cc1plus) hjl.tools at gmail dot com
2011-12-15 20:14 ` [Bug c++/51574] " hjl.tools at gmail dot com
2011-12-15 20:35 ` hjl.tools at gmail dot com
2011-12-15 22:00 ` [Bug rtl-optimization/51574] " hjl.tools at gmail dot com

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