public inbox for overseers@sourceware.org
 help / color / mirror / Atom feed
* Bugzilla account? In order to file array-bounds false positive
@ 2017-03-25 23:36 Michael Maltese
  0 siblings, 0 replies; only message in thread
From: Michael Maltese @ 2017-03-25 23:36 UTC (permalink / raw)
  To: overseers

Hi all,

I'd like to file a bug in GCC 6.3 (a weird -Warray-bounds false
positive). Any chance I could get an account created for this email
address?

To prove I'm not a spammer who's full of shit, here's the minimal
repro of the bug:

#include <stdint.h>

    enum {
      ACM0 = 1,
      ACM1
    };

    uint16_t ac[2];
    void foo(uint16_t);

    static inline uint16_t read(int reg)
    {
      switch (reg)
      {
      case ACM0:
      case ACM1:
        return ac[reg - ACM0];
      default:
        return 0;
      }

    }

    void srs(uint8_t reg)
    {
      if (reg < ACM0)
        foo(read(reg));
    }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-25 23:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-25 23:36 Bugzilla account? In order to file array-bounds false positive Michael Maltese

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).