OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2009-09-09 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20051110-1.c
1
void add_unwind_adjustsp (long);
2
void abort (void);
3
4
unsigned char bytes[5];
5
6
void
7
add_unwind_adjustsp (long offset)
8
{
9
int n;
10
unsigned long o;
11
12
o = (long) ((offset - 0x204) >> 2);
13
14
n = 0;
15
while (o)
16
{
17
bytes[n] = o & 0x7f;
18
o >>= 7;
19
if (o)
20
bytes[n] |= 0x80;
21
n++;
22
}
23
}
24
25
int main(void)
26
{
27
add_unwind_adjustsp (4132);
28
if (bytes[0] != 0x88 || bytes[1] != 0x07)
29
abort ();
30
return 0;
31
}