Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
e2192b74
Commit
e2192b74
authored
Jul 11, 2007
by
Matthias Braun
Browse files
make fehler39 work with gcc at least
[r15018]
parent
9f54772e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/test/fehler39.c
View file @
e2192b74
typedef
signed
short
INT16
;
typedef
signed
int
INT32
;
/* register allocator fails to resolve IMul Constraints correctly */
#ifdef __GNUC__
#define NO_INLINE __attribute__((noinline))
#else
#define NO_INLINE __declspec(noinline)
#endif
int
LightSpriteCreate
()
{
return
42
;
}
void
LightSpritePosition
(
int
x
,
int
y
,
int
z
)
{
(
void
)
x
;
(
void
)
y
;
(
void
)
z
;
}
typedef
struct
{
INT16
sX
;
INT16
sY
;
INT32
iLightID
;
short
sX
;
short
sY
;
int
iLightID
;
}
EXPLOSIONTYPE
;
static
void
GenerateExplosionFromExplosionPointer
(
EXPLOSIONTYPE
*
pExplosion
)
{
INT16
sX
=
pExplosion
->
sX
;
INT16
sY
=
pExplosion
->
sY
;
short
sX
=
pExplosion
->
sX
;
short
sY
=
pExplosion
->
sY
;
if
(
pExplosion
->
iLightID
=
LightSpriteCreate
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment