public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/48666] New: [4.5.2/4.6 regression] -Warray-bounds doesn't trigger anymore for simple case
@ 2011-04-18 13:41 franz.sirl-kernel at lauterbach dot com
  2011-06-12 12:38 ` [Bug c/48666] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: franz.sirl-kernel at lauterbach dot com @ 2011-04-18 13:41 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.5.2/4.6 regression] -Warray-bounds doesn't trigger
                    anymore for simple case
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: franz.sirl-kernel@lauterbach.com


Created attachment 24031
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24031
testcase

A simple testcase like

typedef union
{
          int val32;
          int val32Tab2[4];
          int val32Tab3[3];
          long long val64;
} SrcVal;

void f(SrcVal *x)
{
  x->val32Tab3[4] = 42;
}

doesn't warn anymore when compiled with -O2 -Warray-bounds.

Tested OK (x86_64):
gcc-4.3 (SLES11): gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973]
gcc-4.5.1 (FC14): gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)

Tested NOT OK (x86_64):
gcc-4.5.2 (OBS): gcc-4.5 (SUSE Linux) 4.5.2 20110302 [gcc-4_5-branch revision
170616]
gcc-4.6.0 (OBS): gcc-4.6 (SUSE Linux) 4.6.0 20110314 [gcc-4_6-branch revision
170941]
gcc-4.6.0 (OBS): gcc-4.6 (SUSE Linux) 4.6.0 20110415 [gcc-4_6-branch revision
172496]


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

end of thread, other threads:[~2011-12-06 13:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-18 13:41 [Bug c/48666] New: [4.5.2/4.6 regression] -Warray-bounds doesn't trigger anymore for simple case franz.sirl-kernel at lauterbach dot com
2011-06-12 12:38 ` [Bug c/48666] " rguenth at gcc dot gnu.org
2011-06-12 13:09 ` [Bug middle-end/48666] [4.6/4.7 Regression] " rguenth at gcc dot gnu.org
2011-06-27 15:38 ` jakub at gcc dot gnu.org
2011-10-26 17:32 ` jakub at gcc dot gnu.org
2011-12-06 10:27 ` rguenth at gcc dot gnu.org
2011-12-06 13:09 ` franz.sirl-kernel at lauterbach dot com
2011-12-06 13:25 ` manu 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).