Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:plunky:20140606191358

Diff

Diff from 1.4 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/pcc/pcc-tests/regress/jira/PCC-158.c

Annotated File View

faceless
1.1
1 /* 
2  * PCC-158
plunky
1.4
3  *  pcc does not support the attribute "always_inline"
faceless
1.1
4  *
5  */
6 struct _TEB;
7
8 static inline __attribute__((always_inline)) struct _TEB * __attribute__((__stdcall__)) NtCurrentTeb(void)
9 {
10             struct _TEB *teb;
ragge
1.3
11 #ifdef __i386__
faceless
1.1
12                      __asm__(".byte 0x64\n\tmovl (0x18),%0" : "=r" (teb));
ragge
1.3
13 #endif
faceless
1.1
14                               return teb;
15 }
16
17 struct _TEB * foo(void)
18 {
19             return NtCurrentTeb();
20 }
21
22
plunky
1.2
23 int main(int argcchar *argv[]) { return 0; }
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-21 05:04 +0100