public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/53886] New: Seg fault in sh_insn_length_adjustment
@ 2012-07-07 16:41 rmansfield at qnx dot com
  2012-07-08 11:33 ` [Bug target/53886] " olegendo at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: rmansfield at qnx dot com @ 2012-07-07 16:41 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53886
           Summary: Seg fault in sh_insn_length_adjustment
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rmansfield@qnx.com
              Host: x86_64-linux-gnu
            Target: sh4-unknown-linux-gnu
             Build: x86_64-linux-gnu


$ ./xgcc -v
Using built-in specs.
COLLECT_GCC=./xgcc
Target: sh4-unknown-linux-gnu
Configured with: ../configure --target=sh4-unknown-linux-gnu
--prefix=/home/ryan/x-tools/sh4-unknown-linux-gnuc
--with-local-prefix=/home/ryan/x-tools/sh4-unknown-linux-gnu/sh4-unknown-linux-gnu/sys-root
--disable-multilib
--with-sysroot=/home/ryan/x-tools/sh4-unknown-linux-gnu/sh4-unknown-linux-gnu/sys-root
--with-newlib --enable-threads=no --disable-shared --enable-__cxa_atexit
--disable-nls --enable-symvers=gnu --enable-languages=c
--enable-target-optspace --enable-checking --disable-libmudflap
--disable-libssp
Thread model: single
gcc version 4.8.0 20120707 (experimental) [trunk revision 189349] (GCC) 

$ ./xgcc -B. /home/ryan/r.i -c -Os
/home/ryan/r.i: In function 'i2d_ECPrivateKey':
/home/ryan/r.i:31:17: warning: assignment makes pointer from integer without a
cast [enabled by default]
   if ((priv_key = EC_PRIVATEKEY_new ()) == 0)
                 ^
/home/ryan/r.i:47:6: warning: initialization makes pointer from integer without
a cast [enabled by default]
      CRYPTO_realloc ((char *) buffer, (int) tmp_len, "", 1293);
      ^
/home/ryan/r.i:60:1: internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(gdb) bt
#0  0x0000000000abcab6 in sh_insn_length_adjustment (insn=0x7ffff7053168)
    at ../../gcc/config/sh/sh.c:9665
#1  0x000000000066d00c in get_attr_length_1 (fallback_fn=<optimized out>, 
    insn=0x7ffff7053168) at ../../gcc/final.c:433
#2  get_attr_length (insn=0x7ffff7053168) at ../../gcc/final.c:448
#3  0x0000000000ac6e1b in get_attr_in_delay_slot (insn=0x7ffff7053168)
    at ../../gcc/config/sh/sh.md:241
#4  0x0000000000ac6fc6 in get_attr_cond_delay_slot (insn=0x7ffff7053168)
    at ../../gcc/config/sh/sh.md:239
#5  0x0000000000aca638 in eligible_for_annul_true (delay_insn=0x7ffff70507d0, 
    slot=4, candidate_insn=0x7ffff7053168, flags=<optimized out>)
    at ../../gcc/config/sh/sh.md:444
#6  0x0000000000825f8e in optimize_skip (insn=0x7ffff70507d0)
    at ../../gcc/reorg.c:864
#7  fill_simple_delay_slots (non_jumps_p=0) at ../../gcc/reorg.c:2201
#8  0x0000000000826c71 in dbr_schedule (first=0x7ffff7042f40)
    at ../../gcc/reorg.c:3931
#9  0x0000000000828640 in rest_of_handle_delay_slots ()
    at ../../gcc/reorg.c:4115
#10 0x00000000007d5a17 in execute_one_pass (pass=0x108a600)
    at ../../gcc/passes.c:2165
---Type <return> to continue, or q <return> to quit---
#11 0x00000000007d5d85 in execute_pass_list (pass=0x108a600)
    at ../../gcc/passes.c:2220
#12 0x00000000007d5d97 in execute_pass_list (pass=0x1089aa0)
    at ../../gcc/passes.c:2221
#13 0x00000000007d5d97 in execute_pass_list (pass=0x1089a40)
    at ../../gcc/passes.c:2221
#14 0x00000000005af9ac in expand_function (node=0x7ffff7043000)
    at ../../gcc/cgraphunit.c:1615
#15 0x00000000005b13ea in expand_all_functions ()
    at ../../gcc/cgraphunit.c:1720
#16 compile () at ../../gcc/cgraphunit.c:2018
#17 0x00000000005b1d65 in finalize_compilation_unit ()
    at ../../gcc/cgraphunit.c:2095
#18 0x000000000049fbe8 in c_write_global_declarations ()
    at ../../gcc/c/c-decl.c:10116
#19 0x000000000088158d in compile_file () at ../../gcc/toplev.c:564
#20 0x0000000000883134 in do_compile () at ../../gcc/toplev.c:1867
#21 toplev_main (argc=10, argv=0x7fffffffe118) at ../../gcc/toplev.c:1943
#22 0x00007ffff715c76d in __libc_start_main ()
   from /lib/x86_64-linux-gnu/libc.so.6
#23 0x0000000000483011 in _start ()


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

end of thread, other threads:[~2012-07-10 22:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-07 16:41 [Bug target/53886] New: Seg fault in sh_insn_length_adjustment rmansfield at qnx dot com
2012-07-08 11:33 ` [Bug target/53886] " olegendo at gcc dot gnu.org
2012-07-08 11:41 ` olegendo at gcc dot gnu.org
2012-07-08 11:52 ` rmansfield at qnx dot com
2012-07-08 12:19 ` olegendo at gcc dot gnu.org
2012-07-08 12:23 ` olegendo at gcc dot gnu.org
2012-07-08 13:41 ` kkojima at gcc dot gnu.org
2012-07-08 13:45 ` olegendo at gcc dot gnu.org
2012-07-08 13:59 ` kkojima at gcc dot gnu.org
2012-07-09 22:39 ` olegendo at gcc dot gnu.org
2012-07-10 22:08 ` olegendo at gcc dot gnu.org
2012-07-10 22:12 ` olegendo 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).