This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32041] [4.3 Regression] offsetof buglet
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jun 2009 09:44:28 -0000
- Subject: [Bug c/32041] [4.3 Regression] offsetof buglet
- References: <bug-32041-6@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from rguenth at gcc dot gnu dot org 2009-06-25 09:44 -------
Subject: Bug 32041
Author: rguenth
Date: Thu Jun 25 09:44:12 2009
New Revision: 148939
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148939
Log:
2009-06-25 Richard Guenther <rguenther@suse.de>
Backport from mainline
2009-01-12 Jakub Jelinek <jakub@redhat.com>
PR c/32041
* c-parser.c (c_parser_postfix_expression): Allow `->' in
offsetof member-designator, handle it as `[0].'.
cp/
* parser.c (cp_parser_builtin_offsetof): Allow `->' in
offsetof member-designator, handle it as `[0].'.
* gcc.dg/pr32041.c: New test.
* g++.dg/parse/offsetof9.C: New test.
2008-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
Kaushal Kantawala <kaushal_kantawala@playstation.sony.com>
PR tree-optimization/36891
* tree-ssa-loop-im.c (rewrite_reciprocal): Set DECL_GIMPLE_REG_P on
the newly created variable.
Create a VECTOR_CST of all 1s for vector types.
* gcc.dg/torture/pr36891.c: New testcase.
Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/parse/offsetof9.C
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr32041.c
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/torture/pr36891.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/c-parser.c
branches/gcc-4_3-branch/gcc/cp/ChangeLog
branches/gcc-4_3-branch/gcc/cp/parser.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
branches/gcc-4_3-branch/gcc/tree-ssa-loop-im.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32041