public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/47948] New: ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code
@ 2011-03-01 23:04 zsojka at seznam dot cz
  2011-03-02 10:21 ` [Bug target/47948] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2011-03-01 23:04 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2
                    on very simple code
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 23510
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23510
reduced testcase

Compiler output:
$ gcc -mno-sse2 testcase.c 
testcase.c: In function 'foo':
testcase.c:5:3: internal compiler error: in emit_move_insn, at expr.c:3355
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(gdb) bt
#0  fancy_abort (file=0x110b640 "/mnt/svn/gcc-trunk/gcc/expr.c", line=3355,
function=0x110c9e5 "emit_move_insn")
    at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892
#1  0x00000000006b0eb9 in emit_move_insn (x=0x7ffff7fc3ba0, y=0x7ffff7fc3b40)
at /mnt/svn/gcc-trunk/gcc/expr.c:3354
#2  0x00000000008ca7d1 in expand_value_return (val=0x7ffff7fc3b40) at
/mnt/svn/gcc-trunk/gcc/stmt.c:1631
#3  0x00000000008d066b in expand_return (retval=0x7ffff7ff9118) at
/mnt/svn/gcc-trunk/gcc/stmt.c:1815
#4  0x00000000005e0e8b in expand_gimple_stmt_1 (stmt=0x7ffff7fbd510) at
/mnt/svn/gcc-trunk/gcc/cfgexpand.c:1951
#5  expand_gimple_stmt (stmt=0x7ffff7fbd510) at
/mnt/svn/gcc-trunk/gcc/cfgexpand.c:2080
#6  0x00000000005e2f29 in expand_gimple_basic_block (bb=0x7ffff7fb81a0) at
/mnt/svn/gcc-trunk/gcc/cfgexpand.c:3609
#7  0x00000000005e81d9 in gimple_expand_cfg () at
/mnt/svn/gcc-trunk/gcc/cfgexpand.c:4092
#8  0x00000000007f7056 in execute_one_pass (pass=0x1638ac0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1556
#9  0x00000000007f7355 in execute_pass_list (pass=0x1638ac0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1611
#10 0x000000000093a2b6 in tree_rest_of_compilation (fndecl=0x7ffff7fbac00) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:422
#11 0x0000000000b02312 in cgraph_expand_function (node=0x7ffff5b87000) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1576
#12 0x0000000000b04d4d in cgraph_output_in_order () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1733
#13 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1894
#14 0x0000000000b04fda in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1096
#15 0x00000000005097bc in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:9872
#16 0x00000000008e3248 in compile_file (argc=13, argv=0x7fffffffdba8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:591
#17 do_compile (argc=13, argv=0x7fffffffdba8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1900
#18 toplev_main (argc=13, argv=0x7fffffffdba8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1963
#19 0x00007ffff6446bbd in __libc_start_main () from /lib/libc.so.6
#20 0x00000000004f036d in _start ()


It doesn't ICE with -m32.

Tested revisions:
r170594 - crash
4.5 r170013 - crash
4.4 r170013 - crash


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

* [Bug target/47948] ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code
  2011-03-01 23:04 [Bug target/47948] New: ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code zsojka at seznam dot cz
@ 2011-03-02 10:21 ` rguenth at gcc dot gnu.org
  2011-03-02 10:47 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-02 10:21 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.03.02 10:20:59
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-02 10:20:59 UTC ---
I think this is expected.  But we should sorry () instead when you disable
HW features required for the ABI and you make use of that part of the ABI.

I also think we have a dup for this PR.


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

* [Bug target/47948] ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code
  2011-03-01 23:04 [Bug target/47948] New: ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code zsojka at seznam dot cz
  2011-03-02 10:21 ` [Bug target/47948] " rguenth at gcc dot gnu.org
@ 2011-03-02 10:47 ` jakub at gcc dot gnu.org
  2011-03-02 11:42 ` zsojka at seznam dot cz
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-03-02 10:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-02 10:47:12 UTC ---
We have PR46716, but that's wrong-code with m64 -mno-sse2, not ICE.  Other than
that, it is basically a dup, yeah.


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

* [Bug target/47948] ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code
  2011-03-01 23:04 [Bug target/47948] New: ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code zsojka at seznam dot cz
  2011-03-02 10:21 ` [Bug target/47948] " rguenth at gcc dot gnu.org
  2011-03-02 10:47 ` jakub at gcc dot gnu.org
@ 2011-03-02 11:42 ` zsojka at seznam dot cz
  2021-08-09  6:17 ` pinskia at gcc dot gnu.org
  2021-08-09  6:19 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2011-03-02 11:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> 2011-03-02 11:42:47 UTC ---
Thank you for replies. I am sorry for a wrong report, I thought this switch
combination is valid and expected to work. There are tests in the testsuite
that use -msse -mno-sse2. I didn't expect that vector of shorts is SSE2
specific (that is, doesn't work with just SSE).


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

* [Bug target/47948] ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code
  2011-03-01 23:04 [Bug target/47948] New: ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2011-03-02 11:42 ` zsojka at seznam dot cz
@ 2021-08-09  6:17 ` pinskia at gcc dot gnu.org
  2021-08-09  6:19 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-09  6:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 44332 has been marked as a duplicate of this bug. ***

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

* [Bug target/47948] ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code
  2011-03-01 23:04 [Bug target/47948] New: ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2021-08-09  6:17 ` pinskia at gcc dot gnu.org
@ 2021-08-09  6:19 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-09  6:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |4.8.0
         Resolution|---                         |FIXED

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed for 4.8., most likely by r0-116771 .

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

end of thread, other threads:[~2021-08-09  6:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-01 23:04 [Bug target/47948] New: ICE: in emit_move_insn, at expr.c:3355 with -mno-sse2 on very simple code zsojka at seznam dot cz
2011-03-02 10:21 ` [Bug target/47948] " rguenth at gcc dot gnu.org
2011-03-02 10:47 ` jakub at gcc dot gnu.org
2011-03-02 11:42 ` zsojka at seznam dot cz
2021-08-09  6:17 ` pinskia at gcc dot gnu.org
2021-08-09  6:19 ` pinskia 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).