public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/22524] fold (or the front-ends) produces UNARY (BIT_NOT_EXPR) tree with mismatch types
       [not found] <bug-22524-6528@http.gcc.gnu.org/bugzilla/>
@ 2005-10-17 17:57 ` pluto at agmk dot net
  2005-10-17 18:39 ` pluto at agmk dot net
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pluto at agmk dot net @ 2005-10-17 17:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pluto at agmk dot net  2005-10-17 17:57 -------
works for me with 4.1.0-20051005.


-- 


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


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

* [Bug middle-end/22524] fold (or the front-ends) produces UNARY (BIT_NOT_EXPR) tree with mismatch types
       [not found] <bug-22524-6528@http.gcc.gnu.org/bugzilla/>
  2005-10-17 17:57 ` [Bug middle-end/22524] fold (or the front-ends) produces UNARY (BIT_NOT_EXPR) tree with mismatch types pluto at agmk dot net
@ 2005-10-17 18:39 ` pluto at agmk dot net
  2005-10-17 20:30 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pluto at agmk dot net @ 2005-10-17 18:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pluto at agmk dot net  2005-10-17 18:39 -------
% cat pr22524.c.t03.gimple
main ()
{
  char * D.1282;
  int D.1283;
  int D.1284;
  int i;

  D.1282 = a ();
  D.1283 = (int) D.1282;
  D.1284 = ~&buf;
  i = D.1283 + D.1284;
}


-- 


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


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

* [Bug middle-end/22524] fold (or the front-ends) produces UNARY (BIT_NOT_EXPR) tree with mismatch types
       [not found] <bug-22524-6528@http.gcc.gnu.org/bugzilla/>
  2005-10-17 17:57 ` [Bug middle-end/22524] fold (or the front-ends) produces UNARY (BIT_NOT_EXPR) tree with mismatch types pluto at agmk dot net
  2005-10-17 18:39 ` pluto at agmk dot net
@ 2005-10-17 20:30 ` pinskia at gcc dot gnu dot org
  2005-12-05 18:23 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-17 20:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2005-10-17 20:30 -------
(In reply to comment #2)
> works for me with 4.1.0-20051005.

This with a patch from PR 22368 and did not the last time I tested which was
"Sun Oct  9 16:00:28 UTC 2005".


-- 


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


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

* [Bug middle-end/22524] fold (or the front-ends) produces UNARY (BIT_NOT_EXPR) tree with mismatch types
       [not found] <bug-22524-6528@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-10-17 20:30 ` pinskia at gcc dot gnu dot org
@ 2005-12-05 18:23 ` pinskia at gcc dot gnu dot org
  2006-03-28  5:01 ` sayle at gcc dot gnu dot org
  2006-03-28 19:34 ` roger at eyesopen dot com
  5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-05 18:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2005-12-05 18:23 -------
Hmm, I think we should ignore the -POINTER + 1 case as that would give use the
wrong results sometimes.


-- 


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


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

* [Bug middle-end/22524] fold (or the front-ends) produces UNARY (BIT_NOT_EXPR) tree with mismatch types
       [not found] <bug-22524-6528@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2005-12-05 18:23 ` pinskia at gcc dot gnu dot org
@ 2006-03-28  5:01 ` sayle at gcc dot gnu dot org
  2006-03-28 19:34 ` roger at eyesopen dot com
  5 siblings, 0 replies; 8+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-03-28  5:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from sayle at gcc dot gnu dot org  2006-03-28 05:01 -------
Subject: Bug 22524

Author: sayle
Date: Tue Mar 28 05:01:27 2006
New Revision: 112438

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112438
Log:

        PR middle-end/22524
        * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
        cast BIT_NOT_EXPR operand to the correct type.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c


-- 


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


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

* [Bug middle-end/22524] fold (or the front-ends) produces UNARY (BIT_NOT_EXPR) tree with mismatch types
       [not found] <bug-22524-6528@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2006-03-28  5:01 ` sayle at gcc dot gnu dot org
@ 2006-03-28 19:34 ` roger at eyesopen dot com
  5 siblings, 0 replies; 8+ messages in thread
From: roger at eyesopen dot com @ 2006-03-28 19:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from roger at eyesopen dot com  2006-03-28 19:34 -------
This should now be fixed on mainline.


-- 

roger at eyesopen dot com changed:

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


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


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

* [Bug middle-end/22524] fold (or the front-ends) produces UNARY (BIT_NOT_EXPR) tree with mismatch types
  2005-07-17 17:06 [Bug middle-end/22524] New: " pinskia at gcc dot gnu dot org
  2005-07-17 17:54 ` [Bug middle-end/22524] " pinskia at gcc dot gnu dot org
@ 2005-08-06 15:07 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-06 15:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-06 15:07 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-06 15:07:28
               date|                            |


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


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

* [Bug middle-end/22524] fold (or the front-ends) produces UNARY (BIT_NOT_EXPR) tree with mismatch types
  2005-07-17 17:06 [Bug middle-end/22524] New: " pinskia at gcc dot gnu dot org
@ 2005-07-17 17:54 ` pinskia at gcc dot gnu dot org
  2005-08-06 15:07 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-17 17:54 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

end of thread, other threads:[~2006-03-28 19:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-22524-6528@http.gcc.gnu.org/bugzilla/>
2005-10-17 17:57 ` [Bug middle-end/22524] fold (or the front-ends) produces UNARY (BIT_NOT_EXPR) tree with mismatch types pluto at agmk dot net
2005-10-17 18:39 ` pluto at agmk dot net
2005-10-17 20:30 ` pinskia at gcc dot gnu dot org
2005-12-05 18:23 ` pinskia at gcc dot gnu dot org
2006-03-28  5:01 ` sayle at gcc dot gnu dot org
2006-03-28 19:34 ` roger at eyesopen dot com
2005-07-17 17:06 [Bug middle-end/22524] New: " pinskia at gcc dot gnu dot org
2005-07-17 17:54 ` [Bug middle-end/22524] " pinskia at gcc dot gnu dot org
2005-08-06 15:07 ` 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).