mirrored from git://gcc.gnu.org/git/gcc.git
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2018-04-06 Richard Biener <rguenther@suse.de>
PR middle-end/85180 * alias.c (find_base_term): New wrapper around find_base_term unwinding CSELIB_VAL_PTR changes. (find_base_term): Do not restore CSELIB_VAL_PTR during the recursion. * gcc.dg/pr85180.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259166 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
rguenth
committed
Apr 6, 2018
1 parent
d989347
commit df03ebc
Showing
4 changed files
with
59 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* { dg-do compile } */ | ||
/* { dg-options "-O" } */ | ||
|
||
char *bar (void); | ||
__INTPTR_TYPE__ baz (void); | ||
|
||
void | ||
foo (__INTPTR_TYPE__ *q) | ||
{ | ||
char *p = bar (); | ||
__INTPTR_TYPE__ a = baz (); | ||
__INTPTR_TYPE__ b = baz (); | ||
int i = 0; | ||
#define X q[i++] = a; q[i++] = b; a = a + b; b = b + a; | ||
#define Y X X X X X X X X X X | ||
#define Z Y Y Y Y Y Y Y Y Y Y | ||
Z Z Z Z Z Z Z Z Z Z | ||
p[a] = 1; | ||
p[b] = 2; | ||
} |