public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/15068] ICE in elim_reg_cond
  2004-04-22 11:20 [Bug optimization/15068] New: ICE in elim_reg_cond pb at gcc dot gnu dot org
@ 2004-04-22 11:20 ` pb at gcc dot gnu dot org
  2004-05-01  1:04 ` dhazeghi at yahoo dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pb at gcc dot gnu dot org @ 2004-04-22 11:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pb at gcc dot gnu dot org  2004-04-22 10:42 -------
This bug exists in the 3.3 branch (and the trunk) as well as the 3.4 branch.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.3.3 3.4.0
            Version|unknown                     |3.4.0


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


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

* [Bug optimization/15068] New: ICE in elim_reg_cond
@ 2004-04-22 11:20 pb at gcc dot gnu dot org
  2004-04-22 11:20 ` [Bug optimization/15068] " pb at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: pb at gcc dot gnu dot org @ 2004-04-22 11:20 UTC (permalink / raw)
  To: gcc-bugs

This code:

$ cat s_fmax.i
double
__fmax (double x, double y)
{
  return (__builtin_isgreaterequal(x, y) || (sizeof (y) == sizeof (float) ? 
__isnanf (y) : __isnan (y))) ? x : y;
}

crashes an arm-linux compiler when invoked as:

$ ./cc1 -O2 ~/s_fmax.i
 __fmax
 
Analyzing compilation unit
Performing intraprocedural optimizations
Assembling functions:
 __fmax
 
/home/pblundel/s_fmax.i: In function `__fmax':
/home/pblundel/s_fmax.i:5: internal compiler error: in elim_reg_cond, at 
flow.c:3257
Please submit a full bug report,
with preprocessed source if appropriate.
Send email to arm-gcc@codesourcery.com for instructions.

-- 
           Summary: ICE in elim_reg_cond
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: rearnsha at gcc dot gnu dot org
        ReportedBy: pb at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: arm-linux


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


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

* [Bug optimization/15068] ICE in elim_reg_cond
  2004-04-22 11:20 [Bug optimization/15068] New: ICE in elim_reg_cond pb at gcc dot gnu dot org
  2004-04-22 11:20 ` [Bug optimization/15068] " pb at gcc dot gnu dot org
@ 2004-05-01  1:04 ` dhazeghi at yahoo dot com
  2004-05-17 11:51 ` [Bug rtl-optimization/15068] " rearnsha at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-05-01  1:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dhazeghi at yahoo dot com  2004-05-01 01:04 -------
Confirmed (on 3.4 branch).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-01 01:04:05
               date|                            |


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


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

* [Bug rtl-optimization/15068] ICE in elim_reg_cond
  2004-04-22 11:20 [Bug optimization/15068] New: ICE in elim_reg_cond pb at gcc dot gnu dot org
  2004-04-22 11:20 ` [Bug optimization/15068] " pb at gcc dot gnu dot org
  2004-05-01  1:04 ` dhazeghi at yahoo dot com
@ 2004-05-17 11:51 ` rearnsha at gcc dot gnu dot org
  2004-07-21  1:38 ` random at rnd dot cx
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2004-05-17 11:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rearnsha at gcc dot gnu dot org  2004-05-16 22:28 -------
*** Bug 15297 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Michael dot Link at adc dot
                   |                            |com


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


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

* [Bug rtl-optimization/15068] ICE in elim_reg_cond
  2004-04-22 11:20 [Bug optimization/15068] New: ICE in elim_reg_cond pb at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-05-17 11:51 ` [Bug rtl-optimization/15068] " rearnsha at gcc dot gnu dot org
@ 2004-07-21  1:38 ` random at rnd dot cx
  2004-07-21 10:20 ` rearnsha at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: random at rnd dot cx @ 2004-07-21  1:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From random at rnd dot cx  2004-07-21 01:38 -------
I have had the same problem with GCC 3.2.3 (as well as 3.3.3 and 3.4.0),
building a native arm compiler.

I don't know anything substantial about GCC internals, so please excuse if this
comment is totally worthless...but:

In a cursory look at elim_reg_cond, it looked to me as though the function was
encountering an unexpected rtx code.  So I checked, and found that when the ICE
is encountered it's because elim_reg_cond is called with an rtx with code 0
(UNKNOWN).

So in an effort to work around the problem, I modified elim_reg_cond so that
instead of calling abort() it simply returns the original rtx, and as far as I
can tell that does seem to work. (At least, when I ran the test suites for the
glibc I built with this workaround, the tests for the relevant functions all
passed.)


-- 


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


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

* [Bug rtl-optimization/15068] ICE in elim_reg_cond
  2004-04-22 11:20 [Bug optimization/15068] New: ICE in elim_reg_cond pb at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-07-21  1:38 ` random at rnd dot cx
@ 2004-07-21 10:20 ` rearnsha at gcc dot gnu dot org
  2004-08-02 13:19 ` cvs-commit at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2004-07-21 10:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rearnsha at gcc dot gnu dot org  2004-07-21 10:20 -------
Subject: Re:  ICE in elim_reg_cond

On Wed, 2004-07-21 at 02:38, random at rnd dot cx wrote:

> So in an effort to work around the problem, I modified elim_reg_cond so that
> instead of calling abort() it simply returns the original rtx, and as far as I
> can tell that does seem to work. 
No, that's incorrect.

R.


-- 


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


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

* [Bug rtl-optimization/15068] ICE in elim_reg_cond
  2004-04-22 11:20 [Bug optimization/15068] New: ICE in elim_reg_cond pb at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-07-21 10:20 ` rearnsha at gcc dot gnu dot org
@ 2004-08-02 13:19 ` cvs-commit at gcc dot gnu dot org
  2004-08-02 13:57 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-02 13:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-08-02 13:19 -------
Subject: Bug 15068

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pbrook@gcc.gnu.org	2004-08-02 13:19:41

Modified files:
	gcc            : ChangeLog flow.c 

Log message:
	PR rtl-optimization/15068
	* flow.c (init_propagate_block_info): Check condition is reversible.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.4763&r2=2.4764
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/flow.c.diff?cvsroot=gcc&r1=1.593&r2=1.594



-- 


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


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

* [Bug rtl-optimization/15068] ICE in elim_reg_cond
  2004-04-22 11:20 [Bug optimization/15068] New: ICE in elim_reg_cond pb at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-08-02 13:19 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-02 13:57 ` cvs-commit at gcc dot gnu dot org
  2004-08-02 16:52 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-02 13:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-08-02 13:57 -------
Subject: Bug 15068

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	csl-arm-branch
Changes by:	pbrook@gcc.gnu.org	2004-08-02 13:57:06

Modified files:
	gcc            : ChangeLog flow.c 

Log message:
	PR rtl-optimization/15068
	* flow.c (init_propagate_block_info): Check condition is reversible.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=csl-arm-branch&r1=2.1568.2.81&r2=2.1568.2.82
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/flow.c.diff?cvsroot=gcc&only_with_tag=csl-arm-branch&r1=1.563.4.2&r2=1.563.4.3



-- 


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


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

* [Bug rtl-optimization/15068] ICE in elim_reg_cond
  2004-04-22 11:20 [Bug optimization/15068] New: ICE in elim_reg_cond pb at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-08-02 13:57 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-02 16:52 ` pinskia at gcc dot gnu dot org
  2005-02-22  4:50 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-02 16:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-02 16:52 -------
Fixed in 3.5.0.

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


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


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

* [Bug rtl-optimization/15068] ICE in elim_reg_cond
  2004-04-22 11:20 [Bug optimization/15068] New: ICE in elim_reg_cond pb at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2004-08-02 16:52 ` pinskia at gcc dot gnu dot org
@ 2005-02-22  4:50 ` pinskia at gcc dot gnu dot org
  2005-05-22 18:47 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-22  4:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-21 23:17 -------
*** Bug 20129 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |molletts at yahoo dot com


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


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

* [Bug rtl-optimization/15068] ICE in elim_reg_cond
  2004-04-22 11:20 [Bug optimization/15068] New: ICE in elim_reg_cond pb at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2005-02-22  4:50 ` pinskia at gcc dot gnu dot org
@ 2005-05-22 18:47 ` pinskia at gcc dot gnu dot org
  2005-06-15 14:59 ` xuguangyi at ee dot buaa dot edu dot cn
  2005-06-15 15:05 ` rearnsha at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-22 18:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-22 18:47 -------
*** Bug 21710 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at csd dot uu dot se


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


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

* [Bug rtl-optimization/15068] ICE in elim_reg_cond
  2004-04-22 11:20 [Bug optimization/15068] New: ICE in elim_reg_cond pb at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2005-05-22 18:47 ` pinskia at gcc dot gnu dot org
@ 2005-06-15 14:59 ` xuguangyi at ee dot buaa dot edu dot cn
  2005-06-15 15:05 ` rearnsha at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: xuguangyi at ee dot buaa dot edu dot cn @ 2005-06-15 14:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From xuguangyi at ee dot buaa dot edu dot cn  2005-06-15 14:59 -------
(In reply to comment #10)
> *** Bug 21710 has been marked as a duplicate of this bug. ***


Is there any patch of it for gcc-3.3.6.




-- 


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


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

* [Bug rtl-optimization/15068] ICE in elim_reg_cond
  2004-04-22 11:20 [Bug optimization/15068] New: ICE in elim_reg_cond pb at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2005-06-15 14:59 ` xuguangyi at ee dot buaa dot edu dot cn
@ 2005-06-15 15:05 ` rearnsha at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2005-06-15 15:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rearnsha at gcc dot gnu dot org  2005-06-15 15:05 -------
Subject: Re:  ICE in elim_reg_cond

On Wed, 2005-06-15 at 15:59, xuguangyi at ee dot buaa dot edu dot cn
wrote:
> ------- Additional Comments From xuguangyi at ee dot buaa dot edu dot cn  2005-06-15 14:59 -------
> (In reply to comment #10)
> > *** Bug 21710 has been marked as a duplicate of this bug. ***
> 
> 
> Is there any patch of it for gcc-3.3.6.
> 

No.  The code that was fixed was not in gcc-3.3.

R.


-- 


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


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

end of thread, other threads:[~2005-06-15 15:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-22 11:20 [Bug optimization/15068] New: ICE in elim_reg_cond pb at gcc dot gnu dot org
2004-04-22 11:20 ` [Bug optimization/15068] " pb at gcc dot gnu dot org
2004-05-01  1:04 ` dhazeghi at yahoo dot com
2004-05-17 11:51 ` [Bug rtl-optimization/15068] " rearnsha at gcc dot gnu dot org
2004-07-21  1:38 ` random at rnd dot cx
2004-07-21 10:20 ` rearnsha at gcc dot gnu dot org
2004-08-02 13:19 ` cvs-commit at gcc dot gnu dot org
2004-08-02 13:57 ` cvs-commit at gcc dot gnu dot org
2004-08-02 16:52 ` pinskia at gcc dot gnu dot org
2005-02-22  4:50 ` pinskia at gcc dot gnu dot org
2005-05-22 18:47 ` pinskia at gcc dot gnu dot org
2005-06-15 14:59 ` xuguangyi at ee dot buaa dot edu dot cn
2005-06-15 15:05 ` rearnsha 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).