public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/56115] New: Internal compiler error / unable to generate a relocatable output with object file(which is with lto info).
@ 2013-01-26  2:38 tanjinfa at huawei dot com
  2013-01-26  2:41 ` [Bug c/56115] " tanjinfa at huawei dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tanjinfa at huawei dot com @ 2013-01-26  2:38 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56115
           Summary: Internal compiler error / unable to generate a
                    relocatable output with object file(which is with lto
                    info).
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tanjinfa@huawei.com


I was testing this test case ./gcc.c-torture/execute/vshuf-v8qi.c individually.
The host_triplet is i586-suse-linux,build_triplet is i586-suse-linux,and
target_triplet arm-eabi.
Then  I got a compiler crash.
I cooked it down to the example below:

>armeb-linux-gnueabi-gcc crash.c -c  -flto -O2  -o crash.out
>arm-eabi-gcc -r -nostdlib -flto crash.out -o a.out

In file included from crash.c:8:0,
                 from :0:
crash.c: In function 'main':
crash.c:12:7: internal compiler error: in expand_expr_real_2, at expr.c:8808
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: ./new/install/bin/armeb-linux-gnueabi-gcc returned 1 exit status
/home/tjf/SVN/new/install/bin/../lib/gcc/armeb-linux-gnueabi/4.7.1/../../../../armeb-linux-gnueabi/bin/ld:
lto-wrapper failed
collect2: error: ld returned 1 exit status

-----------crash.c------------------
typedef char V __attribute__((vector_size(8)));
struct S
{
  V in;
  V mask;
  V out;
};
struct S sss={{ 0, 1, 2, 3, 4, 5, 6, 7 },{ 8, 9, 10, 11, 12, 13, 14, 15 },{ 0,
1, 2, 3, 4, 5, 6, 7 }};
extern void abort(void);
int main()
{
V r = __builtin_shuffle(sss.in,sss.mask);
__builtin_memcmp(&r,&sss.out, sizeof(V));
abort();
  return 0;
}


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

* [Bug c/56115] Internal compiler error / unable to generate a relocatable output with object file(which is with lto info).
  2013-01-26  2:38 [Bug c/56115] New: Internal compiler error / unable to generate a relocatable output with object file(which is with lto info) tanjinfa at huawei dot com
@ 2013-01-26  2:41 ` tanjinfa at huawei dot com
  2013-01-26  2:46 ` [Bug lto/56115] " pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: tanjinfa at huawei dot com @ 2013-01-26  2:41 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from William <tanjinfa at huawei dot com> 2013-01-26 02:41:14 UTC ---
oops!I make a mistake,actually I test the crash.c like this:
>armeb-linux-gnueabi-gcc crash.c -c  -flto -O2  -o crash.out
>armeb-linux-gnueabi-gcc -r -nostdlib -flto crash.out -o a.out


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

* [Bug lto/56115] Internal compiler error / unable to generate a relocatable output with object file(which is with lto info).
  2013-01-26  2:38 [Bug c/56115] New: Internal compiler error / unable to generate a relocatable output with object file(which is with lto info) tanjinfa at huawei dot com
  2013-01-26  2:41 ` [Bug c/56115] " tanjinfa at huawei dot com
@ 2013-01-26  2:46 ` pinskia at gcc dot gnu.org
  2013-01-26 15:25 ` rguenth at gcc dot gnu.org
  2013-02-19 23:37 ` ramana at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-01-26  2:46 UTC (permalink / raw)
  To: gcc-bugs


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
          Component|c                           |lto

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-01-26 02:46:11 UTC ---
The bug is related to -O2 -flto and then -O0 -flto.


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

* [Bug lto/56115] Internal compiler error / unable to generate a relocatable output with object file(which is with lto info).
  2013-01-26  2:38 [Bug c/56115] New: Internal compiler error / unable to generate a relocatable output with object file(which is with lto info) tanjinfa at huawei dot com
  2013-01-26  2:41 ` [Bug c/56115] " tanjinfa at huawei dot com
  2013-01-26  2:46 ` [Bug lto/56115] " pinskia at gcc dot gnu.org
@ 2013-01-26 15:25 ` rguenth at gcc dot gnu.org
  2013-02-19 23:37 ` ramana at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-01-26 15:25 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |lto
             Target|                            |arm-eabi
               Host|                            |i?86-linux

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-26 15:25:13 UTC ---
Yes, quite possible.  Add -O2 at link time.


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

* [Bug lto/56115] Internal compiler error / unable to generate a relocatable output with object file(which is with lto info).
  2013-01-26  2:38 [Bug c/56115] New: Internal compiler error / unable to generate a relocatable output with object file(which is with lto info) tanjinfa at huawei dot com
                   ` (2 preceding siblings ...)
  2013-01-26 15:25 ` rguenth at gcc dot gnu.org
@ 2013-02-19 23:37 ` ramana at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ramana at gcc dot gnu.org @ 2013-02-19 23:37 UTC (permalink / raw)
  To: gcc-bugs


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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-02-19
                 CC|                            |ramana at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #4 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2013-02-19 23:36:08 UTC ---
As per comment #3


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

end of thread, other threads:[~2013-02-19 23:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-26  2:38 [Bug c/56115] New: Internal compiler error / unable to generate a relocatable output with object file(which is with lto info) tanjinfa at huawei dot com
2013-01-26  2:41 ` [Bug c/56115] " tanjinfa at huawei dot com
2013-01-26  2:46 ` [Bug lto/56115] " pinskia at gcc dot gnu.org
2013-01-26 15:25 ` rguenth at gcc dot gnu.org
2013-02-19 23:37 ` ramana 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).