]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: [multiple changes]
authorRichard Guenther <rguenther@suse.de>
Thu, 25 Jun 2009 09:44:12 +0000 (09:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 25 Jun 2009 09:44:12 +0000 (09:44 +0000)
commit49c1e2984d014e9e8fc5aee9c2c378bb64f57abd
tree0d3cf3a0dda0b6972e996cc02355ed86ed1d43fc
parent6a62ebcc864d2bf159f7c079fe7ca00bed8efa68
backport: [multiple changes]

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.

From-SVN: r148939
gcc/ChangeLog
gcc/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/offsetof9.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr32041.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr36891.c [new file with mode: 0644]
gcc/tree-ssa-loop-im.c