public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/15783] New: internal error in in emit_move_insn  (union assignment)
@ 2004-06-02 20:38 ppluzhnikov at charter dot net
  2004-06-02 20:43 ` [Bug target/15783] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ppluzhnikov at charter dot net @ 2004-06-02 20:38 UTC (permalink / raw)
  To: gcc-bugs

Attached test case causes:
c33c.i:12: internal compiler error: in emit_move_insn, at expr.c:2809

This happens with gcc-3.4.0 (but not gcc-3.3 or 3.1), and only in 64-bit mode.
Removing 'u2s_e' struct member makes the bug go away.

$ /usr/local/gcc-3.4.0/bin/gcc -c c33c.i -m64 -v
Reading specs from /usr/local/gcc-3.4.0/lib/gcc/sparc-sun-solaris2.7/3.4.0/specs
Configured with: /home/camel1/paul/Archive/gcc-3.4.0/configure
--prefix=/usr/local/gcc-3.4.0 --enable-languages=c,c++ : (reconfigured)
../../../camel1/paul/Archive/gcc-3.4.0/configure --prefix=/usr/local/gcc-3.4.0
--enable-languages=c,c++
Thread model: posix
gcc version 3.4.0
 /usr/local/gcc-3.4.0/libexec/gcc/sparc-sun-solaris2.7/3.4.0/cc1 -fpreprocessed
c33c.i -mptr64 -mstack-bias -mno-v8plus -quiet -dumpbase c33c.i -m64 -mcpu=v7
-auxbase c33c -version -o /home/solaris/development/devtest/tmp/ccQWlq8A.s
GNU C version 3.4.0 (sparc-sun-solaris2.7)
        compiled by GNU C version 2.95.3 20010315 (release).
GGC heuristics: --param ggc-min-expand=56 --param ggc-min-heapsize=49152
c33c.i: In function `unions':
c33c.i:12: internal compiler error: in emit_move_insn, at expr.c:2809
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

--- cut --- c33c.i ---
union u2 {
    struct
    {
        int u2s_a, u2s_b, u2s_c, u2s_d, u2s_e;
    } u2_s;
    double u2_d;
} u2a;

union u2 fu2();
void unions()
{
    u2a = fu2(11);
}
--- cut --- c33c.i ---

-- 
           Summary: internal error in in emit_move_insn  (union assignment)
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ppluzhnikov at charter dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.7
  GCC host triplet: sparc-sun-solaris2.7
GCC target triplet: sparc-sun-solaris2.7


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


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

* [Bug target/15783] internal error in in emit_move_insn  (union assignment)
  2004-06-02 20:38 [Bug c/15783] New: internal error in in emit_move_insn (union assignment) ppluzhnikov at charter dot net
@ 2004-06-02 20:43 ` pinskia at gcc dot gnu dot org
  2004-06-02 21:26 ` [Bug target/15783] [3.4/3.5 regression] ICE with union assignment in 64-bit mode ebotcazou at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-02 20:43 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

* [Bug target/15783] [3.4/3.5 regression] ICE with union assignment in 64-bit mode
  2004-06-02 20:38 [Bug c/15783] New: internal error in in emit_move_insn (union assignment) ppluzhnikov at charter dot net
  2004-06-02 20:43 ` [Bug target/15783] " pinskia at gcc dot gnu dot org
@ 2004-06-02 21:26 ` ebotcazou at gcc dot gnu dot org
  2004-06-03 11:26 ` ebotcazou at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-06-02 21:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-06-02 21:26 -------
Probably a fallout of the ABI fixes.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |3.4.0 3.4.1 3.5.0
      Known to work|                            |3.3.2 3.3.4
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-02 21:26:39
               date|                            |
            Summary|internal error in in        |[3.4/3.5 regression] ICE
                   |emit_move_insn  (union      |with union assignment in 64-
                   |assignment)                 |bit mode
   Target Milestone|---                         |3.4.1


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


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

* [Bug target/15783] [3.4/3.5 regression] ICE with union assignment in 64-bit mode
  2004-06-02 20:38 [Bug c/15783] New: internal error in in emit_move_insn (union assignment) ppluzhnikov at charter dot net
  2004-06-02 20:43 ` [Bug target/15783] " pinskia at gcc dot gnu dot org
  2004-06-02 21:26 ` [Bug target/15783] [3.4/3.5 regression] ICE with union assignment in 64-bit mode ebotcazou at gcc dot gnu dot org
@ 2004-06-03 11:26 ` ebotcazou at gcc dot gnu dot org
  2004-06-07 20:59 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-06-03 11:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-06-03 11:26 -------
Investigating.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |ebotcazou at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug target/15783] [3.4/3.5 regression] ICE with union assignment in 64-bit mode
  2004-06-02 20:38 [Bug c/15783] New: internal error in in emit_move_insn (union assignment) ppluzhnikov at charter dot net
                   ` (2 preceding siblings ...)
  2004-06-03 11:26 ` ebotcazou at gcc dot gnu dot org
@ 2004-06-07 20:59 ` cvs-commit at gcc dot gnu dot org
  2004-06-07 21:03 ` cvs-commit at gcc dot gnu dot org
  2004-06-07 21:07 ` ebotcazou at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-07 20:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-07 20:58 -------
Subject: Bug 15783

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	ebotcazou@gcc.gnu.org	2004-06-07 20:58:34

Modified files:
	gcc            : ChangeLog 
	gcc/config/sparc: sparc.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: union-1.c 

Log message:
	PR target/15783
	* config/sparc/sparc.c (function_arg_union_value): Add 'mode'
	parameter.  Enumerate the registers inside the PARALLEL.
	(function_arg): Adjust call to function_arg_union_value.
	(function_value): Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3869&r2=2.3870
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/sparc.c.diff?cvsroot=gcc&r1=1.301&r2=1.302
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3823&r2=1.3824
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/union-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug target/15783] [3.4/3.5 regression] ICE with union assignment in 64-bit mode
  2004-06-02 20:38 [Bug c/15783] New: internal error in in emit_move_insn (union assignment) ppluzhnikov at charter dot net
                   ` (3 preceding siblings ...)
  2004-06-07 20:59 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-07 21:03 ` cvs-commit at gcc dot gnu dot org
  2004-06-07 21:07 ` ebotcazou at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-07 21:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-07 21:03 -------
Subject: Bug 15783

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	ebotcazou@gcc.gnu.org	2004-06-07 21:03:08

Modified files:
	gcc            : ChangeLog 
	gcc/config/sparc: sparc.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: union-1.c 

Log message:
	PR target/15783
	* config/sparc/sparc.c (function_arg_union_value): Add 'mode'
	parameter.  Enumerate the registers inside the PARALLEL.
	(function_arg): Adjust call to function_arg_union_value.
	(function_value): Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.476&r2=2.2326.2.477
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/sparc.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.271.4.14&r2=1.271.4.15
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.199&r2=1.3389.2.200
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/union-1.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug target/15783] [3.4/3.5 regression] ICE with union assignment in 64-bit mode
  2004-06-02 20:38 [Bug c/15783] New: internal error in in emit_move_insn (union assignment) ppluzhnikov at charter dot net
                   ` (4 preceding siblings ...)
  2004-06-07 21:03 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-07 21:07 ` ebotcazou at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-06-07 21:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-06-07 21:07 -------
See http://gcc.gnu.org/ml/gcc-patches/2004-06/msg00378.html


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-06-07 21:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-02 20:38 [Bug c/15783] New: internal error in in emit_move_insn (union assignment) ppluzhnikov at charter dot net
2004-06-02 20:43 ` [Bug target/15783] " pinskia at gcc dot gnu dot org
2004-06-02 21:26 ` [Bug target/15783] [3.4/3.5 regression] ICE with union assignment in 64-bit mode ebotcazou at gcc dot gnu dot org
2004-06-03 11:26 ` ebotcazou at gcc dot gnu dot org
2004-06-07 20:59 ` cvs-commit at gcc dot gnu dot org
2004-06-07 21:03 ` cvs-commit at gcc dot gnu dot org
2004-06-07 21:07 ` ebotcazou at gcc dot gnu dot 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).