forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* config/i386/i386.c (device_alg): Fix up formatting. (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed similarly to count && count < epilogue_size_needed. Fix up comment typo. * builtins.c (determine_block_size): Fix comment typo. * gcc.c-torture/execute/pr59229.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205416 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
jakub
committed
Nov 26, 2013
1 parent
5970b99
commit 4a474a5
Showing
5 changed files
with
54 additions
and
16 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
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,29 @@ | ||
int i; | ||
|
||
__attribute__((noinline, noclone)) void | ||
bar (char *p) | ||
{ | ||
if (i < 1 || i > 6) | ||
__builtin_abort (); | ||
if (__builtin_memcmp (p, "abcdefg", i + 1) != 0) | ||
__builtin_abort (); | ||
__builtin_memset (p, ' ', 7); | ||
} | ||
|
||
__attribute__((noinline, noclone)) void | ||
foo (char *p, unsigned long l) | ||
{ | ||
if (l < 1 || l > 6) | ||
return; | ||
char buf[7]; | ||
__builtin_memcpy (buf, p, l + 1); | ||
bar (buf); | ||
} | ||
|
||
int | ||
main () | ||
{ | ||
for (i = 0; i < 16; i++) | ||
foo ("abcdefghijklmnop", i); | ||
return 0; | ||
} |