-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add issue393.c and issue393.expect. Add new func hard_reg_used_in_bb_insn_p. Add new arg filter_p to move_bb_insn_dead_vars, use it define what dead var to add. Adjust calls.
- Loading branch information
Showing
3 changed files
with
38 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include <stdio.h> | ||
|
||
struct string { | ||
char* begin; | ||
char* end; | ||
}; | ||
|
||
unsigned long size (struct string a) { return (a.end - a.begin) / sizeof (char); } | ||
|
||
int main (void) { | ||
char c[3] = "foo"; | ||
struct string s = {c, c + 3}; | ||
printf ("%lu\n", size (s)); | ||
return 0; | ||
} |
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 @@ | ||
3 |
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