Skip to content

Commit

Permalink
PR c/27898
Browse files Browse the repository at this point in the history
	* gcc.dg/pr27898.c: New test.

	PR tree-optimization/32139
	* gcc.c-torture/compile/pr32139.c: New test.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145052 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
uros committed Mar 25, 2009
1 parent 850fc3f commit 0648196
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcc/ChangeLog
Expand Up @@ -448,8 +448,8 @@
2009-03-07 Jan Hubicka <jh@suse.cz>

PR target/39361
* tree-inline.c (setup_one_parameter): Do replacement of const argument
by constant in SSA form.
* tree-inline.c (setup_one_parameter): Do replacement of const
argument by constant in SSA form.

2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>

Expand Down
8 changes: 8 additions & 0 deletions gcc/testsuite/ChangeLog
@@ -1,3 +1,11 @@
2009-03-25 Jakub Jelinek <jakub@redhat.com>

PR c/27898
* gcc.dg/pr27898.c: New test.

PR tree-optimization/32139
* gcc.c-torture/compile/pr32139.c: New test.

2009-03-24 Jason Merrill <jason@redhat.com>

PR c++/28274
Expand Down
11 changes: 11 additions & 0 deletions gcc/testsuite/gcc.c-torture/compile/pr32139.c
@@ -0,0 +1,11 @@
/* PR tree-optimization/32139 */
int foo (void);
int bar (void) __attribute__ ((const));

int
test (int x)
{
int a = (x == 10000 ? foo : bar) ();
int b = (x == 10000 ? foo : bar) ();
return a + b;
}
8 changes: 8 additions & 0 deletions gcc/testsuite/gcc.dg/pr27898.c
@@ -0,0 +1,8 @@
/* PR c/27898 */
/* { dg-do compile } */
/* { dg-options "--combine" } */
/* { dg-additional-sources "pr27898.c" } */

union u { struct { int i; }; };

extern int foo (union u *);

0 comments on commit 0648196

Please sign in to comment.