public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/44061]  New: [4.5/4.6 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section
@ 2010-05-10 14:37 rguenth at gcc dot gnu dot org
  2010-05-10 14:38 ` [Bug tree-optimization/44061] " rguenth at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-10 14:37 UTC (permalink / raw)
  To: gcc-bugs

int a[2];
int foo (int q)
{
  if (__builtin_constant_p (q))
    {
      if (q == 4)
        return a[4];
      else
        return a[0];
    }
  else
    return a[q];
}


-- 
           Summary: [4.5/4.6 Regression] Warns about out-of-bounds array
                    access inside __builtin_constant_p guarded section
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

* [Bug tree-optimization/44061] [4.5/4.6 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section
  2010-05-10 14:37 [Bug tree-optimization/44061] New: [4.5/4.6 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section rguenth at gcc dot gnu dot org
@ 2010-05-10 14:38 ` rguenth at gcc dot gnu dot org
  2010-05-19 12:59 ` rguenth at gcc dot gnu dot org
  2010-07-31  9:35 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-10 14:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2010-05-10 14:38 -------
I have a patch.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
      Known to fail|                            |4.5.0
      Known to work|                            |4.3.4 4.4.3
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-10 14:38:05
               date|                            |
   Target Milestone|---                         |4.5.1


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


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

* [Bug tree-optimization/44061] [4.5/4.6 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section
  2010-05-10 14:37 [Bug tree-optimization/44061] New: [4.5/4.6 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section rguenth at gcc dot gnu dot org
  2010-05-10 14:38 ` [Bug tree-optimization/44061] " rguenth at gcc dot gnu dot org
@ 2010-05-19 12:59 ` rguenth at gcc dot gnu dot org
  2010-07-31  9:35 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-19 12:59 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug tree-optimization/44061] [4.5/4.6 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section
  2010-05-10 14:37 [Bug tree-optimization/44061] New: [4.5/4.6 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section rguenth at gcc dot gnu dot org
  2010-05-10 14:38 ` [Bug tree-optimization/44061] " rguenth at gcc dot gnu dot org
  2010-05-19 12:59 ` rguenth at gcc dot gnu dot org
@ 2010-07-31  9:35 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-31  9:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-07-31 09:29 -------
GCC 4.5.1 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.1                       |4.5.2


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


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

end of thread, other threads:[~2010-07-31  9:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-10 14:37 [Bug tree-optimization/44061] New: [4.5/4.6 Regression] Warns about out-of-bounds array access inside __builtin_constant_p guarded section rguenth at gcc dot gnu dot org
2010-05-10 14:38 ` [Bug tree-optimization/44061] " rguenth at gcc dot gnu dot org
2010-05-19 12:59 ` rguenth at gcc dot gnu dot org
2010-07-31  9:35 ` rguenth 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).