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

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