public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/59132] New: Missing aggressive-loop-optimisation warning
@ 2013-11-14 14:36 jan.smets@alcatel-lucent.com
  2014-04-23 12:40 ` [Bug tree-optimization/59132] Missing aggressive array based optimisation warning jan.smets@alcatel-lucent.com
  2021-08-19  5:07 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: jan.smets@alcatel-lucent.com @ 2013-11-14 14:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59132
           Summary: Missing aggressive-loop-optimisation warning
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jan.smets@alcatel-lucent.com

#include <stdio.h>

char info = 0;
typedef enum { A = 0 } eA; 
typedef enum { B = 0 } eB; 
typedef enum { C = 0 } eC; 

int main (void)
{

    eA a = 0;  
    eB b;
    eC c[2];

    for (a = 1; a <= 2; a++)
    {   
        switch (info)
        {   
            case 1 : 
                c[a] = 3;  
                break;
            default:
                c[a] = 4;  
                break;
        }   

        for (b = 0; b < 1; b++)
        {   
            printf("b=%d a=%d c[a] = %d\n", b, a, c[a]);
        }   
    }   

    return 0;
}


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

* [Bug tree-optimization/59132] Missing aggressive array based optimisation warning
  2013-11-14 14:36 [Bug other/59132] New: Missing aggressive-loop-optimisation warning jan.smets@alcatel-lucent.com
@ 2014-04-23 12:40 ` jan.smets@alcatel-lucent.com
  2021-08-19  5:07 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jan.smets@alcatel-lucent.com @ 2014-04-23 12:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jan Smets <jan.smets@alcatel-lucent.com> ---
Ping


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

* [Bug tree-optimization/59132] Missing aggressive array based optimisation warning
  2013-11-14 14:36 [Bug other/59132] New: Missing aggressive-loop-optimisation warning jan.smets@alcatel-lucent.com
  2014-04-23 12:40 ` [Bug tree-optimization/59132] Missing aggressive array based optimisation warning jan.smets@alcatel-lucent.com
@ 2021-08-19  5:07 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-19  5:07 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|missed-optimization         |diagnostic

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Are you asking for an out of bounds warning?

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

end of thread, other threads:[~2021-08-19  5:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-14 14:36 [Bug other/59132] New: Missing aggressive-loop-optimisation warning jan.smets@alcatel-lucent.com
2014-04-23 12:40 ` [Bug tree-optimization/59132] Missing aggressive array based optimisation warning jan.smets@alcatel-lucent.com
2021-08-19  5:07 ` pinskia at gcc dot gnu.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).