public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23331] FIXME from tree-ssa-ccp: dealing with "a"[3]
       [not found] <bug-23331-4@http.gcc.gnu.org/bugzilla/>
@ 2015-04-01 12:07 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-04-01 12:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23331

Richard Biener <rguenth at gcc dot gnu.org> changed:

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
The FIXME is gone and we transform this to

f ()
{
  int a;
  char _2;
  int _3;

  <bb 2>:
  _2 = "a"[13];
  _3 = (int) _2;
  return _3;

}

which is good enough (we could make CCP more optimistic, treating _2 as
UNDEFINED and finally replacing remaining UNDEFINED uses with
__builtin_unreachable ()).

But that's a different bug.


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

* [Bug tree-optimization/23331] FIXME from tree-ssa-ccp: dealing with "a"[3]
  2005-08-11 17:17 [Bug tree-optimization/23331] New: " pinskia at gcc dot gnu dot org
  2005-08-20 14:04 ` [Bug tree-optimization/23331] " pinskia at gcc dot gnu dot org
@ 2005-09-25  4:25 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-25  4:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-25 04:25 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-09-25 04:25:03
               date|                            |


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


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

* [Bug tree-optimization/23331] FIXME from tree-ssa-ccp: dealing with "a"[3]
  2005-08-11 17:17 [Bug tree-optimization/23331] New: " pinskia at gcc dot gnu dot org
@ 2005-08-20 14:04 ` pinskia at gcc dot gnu dot org
  2005-09-25  4:25 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-20 14:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-20 13:54 -------
Testcase:
int f(void)
{
  int a = 13;
  return "a"[a];
}

This should be converted over to:
int f(void)
{
  __builtin_trap ();
}

-- 


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


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

end of thread, other threads:[~2015-04-01 12:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23331-4@http.gcc.gnu.org/bugzilla/>
2015-04-01 12:07 ` [Bug tree-optimization/23331] FIXME from tree-ssa-ccp: dealing with "a"[3] rguenth at gcc dot gnu.org
2005-08-11 17:17 [Bug tree-optimization/23331] New: " pinskia at gcc dot gnu dot org
2005-08-20 14:04 ` [Bug tree-optimization/23331] " pinskia at gcc dot gnu dot org
2005-09-25  4:25 ` 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).