public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/27907]  New: ICE in expand_simple_unop, at optabs.c:2307
@ 2006-06-06  1:17 tbm at cyrius dot com
  2006-06-07  9:12 ` [Bug target/27907] [4.2 regression] " falk at debian dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: tbm at cyrius dot com @ 2006-06-06  1:17 UTC (permalink / raw)
  To: gcc-bugs

ICE on Alpha with gcc 4.2 20060508:

tbm@juist:~/delta/bin$ /usr/lib/gcc-snapshot/bin/gcc -c -O1 mini.c
mini.c: In function 'fann_run':
mini.c:23: internal compiler error: in expand_simple_unop, at optabs.c:2307
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
tbm@juist:~/delta/bin$ /usr/lib/gcc-snapshot/bin/gcc -c mini.c
tbm@juist:~/delta/bin$ gcc-4.0 -c -O2 mini.c
tbm@juist:~/delta/bin$ gcc-4.1 -c -O2 mini.c
tbm@juist:~/delta/bin$
tbm@juist:~/delta/bin$ cat mini.c
typedef double fann_type;
typedef struct { } _G_fpos64_t;
struct fann_neuron
{
  fann_type value;
}
__attribute__ ((packed));
struct fann_layer
{
  struct fann_neuron *last_neuron;
};
struct fann
{
  struct fann_layer *first_layer;
};
fann_run (struct fann *ann, fann_type * input)
{
  struct fann_layer *layer_it, *layer_it2, *last_layer;
  for (layer_it = ann->first_layer + 1; layer_it != last_layer; layer_it++)
    {
      ((layer_it - 1)->last_neuron - 1)->value = 1;
    }
}


-- 
           Summary: ICE in expand_simple_unop, at optabs.c:2307
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com
 GCC build triplet: alpha-linux-gnu
  GCC host triplet: alpha-linux-gnu
GCC target triplet: alpha-linux-gnu


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


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

* [Bug target/27907] [4.2 regression] ICE in expand_simple_unop, at optabs.c:2307
  2006-06-06  1:17 [Bug target/27907] New: ICE in expand_simple_unop, at optabs.c:2307 tbm at cyrius dot com
@ 2006-06-07  9:12 ` falk at debian dot org
  2006-06-07 21:57 ` janis at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: falk at debian dot org @ 2006-06-07  9:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from falk at debian dot org  2006-06-07 08:12 -------
Confirmed with 4.2.0 20060606. Cleaned up test case:

struct fann_neuron {
  double value;
} __attribute__ ((packed));

void fann_run (struct fann_neuron **last_neuron) {
    while (1)
      (*last_neuron)->value = 1;    
}

The same ICE occurs in the ufraw package, test case:

void f(double);
void SaveNikonDataFile(void) {
    while (1) {
        union {
            double d;
            unsigned char b[8];
        } dat1, dat2;
        dat1.d = 1;
        dat2.d = 1;
        dat2.b[7] = dat1.b[0];
        f(dat2.d);
    }
}

This one occurs only with -ffast-math.


-- 

falk at debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1


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


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

* [Bug target/27907] [4.2 regression] ICE in expand_simple_unop, at optabs.c:2307
  2006-06-06  1:17 [Bug target/27907] New: ICE in expand_simple_unop, at optabs.c:2307 tbm at cyrius dot com
  2006-06-07  9:12 ` [Bug target/27907] [4.2 regression] " falk at debian dot org
@ 2006-06-07 21:57 ` janis at gcc dot gnu dot org
  2006-07-23 22:14 ` rakdver at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: janis at gcc dot gnu dot org @ 2006-06-07 21:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from janis at gcc dot gnu dot org  2006-06-07 21:52 -------
A regression hunt using an alpha-linux cross compiler on powerpc-linux with the
first testcase from comment #1 identified this patch:

    http://gcc.gnu.org/viewcvs?view=rev&rev=110912

    r110912 | rakdver | 2006-02-13 11:21:23 +0000 (Mon, 13 Feb 2006)


-- 

janis at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rakdver at gcc dot gnu dot
                   |                            |org


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


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

* [Bug target/27907] [4.2 regression] ICE in expand_simple_unop, at optabs.c:2307
  2006-06-06  1:17 [Bug target/27907] New: ICE in expand_simple_unop, at optabs.c:2307 tbm at cyrius dot com
  2006-06-07  9:12 ` [Bug target/27907] [4.2 regression] " falk at debian dot org
  2006-06-07 21:57 ` janis at gcc dot gnu dot org
@ 2006-07-23 22:14 ` rakdver at gcc dot gnu dot org
  2006-07-25 12:20 ` rakdver at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-07-23 22:14 UTC (permalink / raw)
  To: gcc-bugs



-- 

rakdver at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rakdver at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|0000-00-00 00:00:00         |2006-07-23 22:14:31
               date|                            |


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


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

* [Bug target/27907] [4.2 regression] ICE in expand_simple_unop, at optabs.c:2307
  2006-06-06  1:17 [Bug target/27907] New: ICE in expand_simple_unop, at optabs.c:2307 tbm at cyrius dot com
                   ` (2 preceding siblings ...)
  2006-07-23 22:14 ` rakdver at gcc dot gnu dot org
@ 2006-07-25 12:20 ` rakdver at gcc dot gnu dot org
  2006-07-26 16:47 ` rakdver at gcc dot gnu dot org
  2006-07-26 17:03 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-07-25 12:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rakdver at gcc dot gnu dot org  2006-07-25 12:20 -------
Patch:
http://gcc.gnu.org/ml/gcc-patches/2006-07/msg01064.html


-- 

rakdver at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2006-
                   |                            |07/msg01064.html
           Keywords|                            |patch


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


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

* [Bug target/27907] [4.2 regression] ICE in expand_simple_unop, at optabs.c:2307
  2006-06-06  1:17 [Bug target/27907] New: ICE in expand_simple_unop, at optabs.c:2307 tbm at cyrius dot com
                   ` (3 preceding siblings ...)
  2006-07-25 12:20 ` rakdver at gcc dot gnu dot org
@ 2006-07-26 16:47 ` rakdver at gcc dot gnu dot org
  2006-07-26 17:03 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-07-26 16:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rakdver at gcc dot gnu dot org  2006-07-26 16:47 -------
Subject: Bug 27907

Author: rakdver
Date: Wed Jul 26 16:47:28 2006
New Revision: 115760

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115760
Log:
        PR rtl-optimization/27907
        * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
        FLOAT_TRUNCATE.

        * gcc.c-torture/compile/pr27907.c: New test.


Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr27907.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/expr.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug target/27907] [4.2 regression] ICE in expand_simple_unop, at optabs.c:2307
  2006-06-06  1:17 [Bug target/27907] New: ICE in expand_simple_unop, at optabs.c:2307 tbm at cyrius dot com
                   ` (4 preceding siblings ...)
  2006-07-26 16:47 ` rakdver at gcc dot gnu dot org
@ 2006-07-26 17:03 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-26 17:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-07-26 17:02 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.0


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


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

end of thread, other threads:[~2006-07-26 17:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-06  1:17 [Bug target/27907] New: ICE in expand_simple_unop, at optabs.c:2307 tbm at cyrius dot com
2006-06-07  9:12 ` [Bug target/27907] [4.2 regression] " falk at debian dot org
2006-06-07 21:57 ` janis at gcc dot gnu dot org
2006-07-23 22:14 ` rakdver at gcc dot gnu dot org
2006-07-25 12:20 ` rakdver at gcc dot gnu dot org
2006-07-26 16:47 ` rakdver at gcc dot gnu dot org
2006-07-26 17:03 ` pinskia 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).