public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/50700] New: [4.6/4.7 Regression] __builtin_object_size computed wrong
@ 2011-10-12 9:56 rguenth at gcc dot gnu.org
2011-10-12 9:57 ` [Bug middle-end/50700] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-12 9:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50700
Bug #: 50700
Summary: [4.6/4.7 Regression] __builtin_object_size computed
wrong
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rguenth@gcc.gnu.org
extern void abort (void);
struct S {
int len;
char s[0];
};
int main()
{
char buf[sizeof (struct S) + 32];
if (__builtin_object_size (((struct S *)&buf[0])->s, 1) != 32)
abort ();
return 0;
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/50700] [4.6/4.7 Regression] __builtin_object_size computed wrong
2011-10-12 9:56 [Bug middle-end/50700] New: [4.6/4.7 Regression] __builtin_object_size computed wrong rguenth at gcc dot gnu.org
@ 2011-10-12 9:57 ` rguenth at gcc dot gnu.org
2011-10-12 13:20 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-12 9:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50700
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011-10-12
Known to work| |4.5.3
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
Target Milestone|--- |4.6.2
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-12 09:56:33 UTC ---
I have a patch.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/50700] [4.6/4.7 Regression] __builtin_object_size computed wrong
2011-10-12 9:56 [Bug middle-end/50700] New: [4.6/4.7 Regression] __builtin_object_size computed wrong rguenth at gcc dot gnu.org
2011-10-12 9:57 ` [Bug middle-end/50700] " rguenth at gcc dot gnu.org
@ 2011-10-12 13:20 ` rguenth at gcc dot gnu.org
2011-10-12 13:22 ` rguenth at gcc dot gnu.org
2011-10-12 14:27 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-12 13:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50700
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-12 13:19:38 UTC ---
Author: rguenth
Date: Wed Oct 12 13:19:34 2011
New Revision: 179850
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179850
Log:
2011-10-12 Richard Guenther <rguenther@suse.de>
PR tree-optimization/50700
* tree-object-size.c (addr_object_size): Simplify and treat
MEM_REF bases consistently.
* gcc.dg/builtin-object-size-12.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/builtin-object-size-12.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-object-size.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/50700] [4.6/4.7 Regression] __builtin_object_size computed wrong
2011-10-12 9:56 [Bug middle-end/50700] New: [4.6/4.7 Regression] __builtin_object_size computed wrong rguenth at gcc dot gnu.org
2011-10-12 9:57 ` [Bug middle-end/50700] " rguenth at gcc dot gnu.org
2011-10-12 13:20 ` rguenth at gcc dot gnu.org
@ 2011-10-12 13:22 ` rguenth at gcc dot gnu.org
2011-10-12 14:27 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-12 13:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50700
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-12 13:22:18 UTC ---
Author: rguenth
Date: Wed Oct 12 13:22:12 2011
New Revision: 179851
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179851
Log:
2011-10-12 Richard Guenther <rguenther@suse.de>
PR tree-optimization/50700
* tree-object-size.c (addr_object_size): Simplify and treat
MEM_REF bases consistently.
* gcc.dg/builtin-object-size-12.c: New testcase.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/builtin-object-size-12.c
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/gcc/tree-object-size.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/50700] [4.6/4.7 Regression] __builtin_object_size computed wrong
2011-10-12 9:56 [Bug middle-end/50700] New: [4.6/4.7 Regression] __builtin_object_size computed wrong rguenth at gcc dot gnu.org
` (2 preceding siblings ...)
2011-10-12 13:22 ` rguenth at gcc dot gnu.org
@ 2011-10-12 14:27 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-12 14:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50700
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-12 14:26:42 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-12 14:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-12 9:56 [Bug middle-end/50700] New: [4.6/4.7 Regression] __builtin_object_size computed wrong rguenth at gcc dot gnu.org
2011-10-12 9:57 ` [Bug middle-end/50700] " rguenth at gcc dot gnu.org
2011-10-12 13:20 ` rguenth at gcc dot gnu.org
2011-10-12 13:22 ` rguenth at gcc dot gnu.org
2011-10-12 14:27 ` rguenth 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).