Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9cda4233
Commit
9cda4233
authored
Apr 15, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Pass 16-byte structures by value on ARM64.
parent
cc88d917
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
typegen.c
tools/widl/typegen.c
+12
-1
widl.c
tools/widl/widl.c
+1
-1
widl.h
tools/widl/widl.h
+1
-0
No files found.
tools/widl/typegen.c
View file @
9cda4233
...
...
@@ -431,7 +431,18 @@ static unsigned int get_stack_size( const var_t *var, int *by_value )
case
TGT_UNION
:
case
TGT_USER_TYPE
:
stack_size
=
type_memsize
(
var
->
declspec
.
type
);
by_val
=
(
pointer_size
<
8
||
stack_size
<=
pointer_size
);
/* FIXME: should be platform-specific */
switch
(
target
.
cpu
)
{
case
CPU_x86_64
:
by_val
=
(
stack_size
<=
pointer_size
);
break
;
case
CPU_ARM64
:
by_val
=
(
stack_size
<=
2
*
pointer_size
);
break
;
default:
by_val
=
1
;
break
;
}
break
;
default:
by_val
=
0
;
...
...
tools/widl/widl.c
View file @
9cda4233
...
...
@@ -89,7 +89,7 @@ static const char usage[] =
static
const
char
version_string
[]
=
"Wine IDL Compiler version "
PACKAGE_VERSION
"
\n
"
"Copyright 2002 Ove Kaaven
\n
"
;
st
atic
struct
target
target
;
st
ruct
target
target
=
{
0
}
;
int
debuglevel
=
DEBUGLEVEL_NONE
;
int
parser_debug
,
yy_flex_debug
;
...
...
tools/widl/widl.h
View file @
9cda4233
...
...
@@ -71,6 +71,7 @@ extern const char *prefix_client;
extern
const
char
*
prefix_server
;
extern
unsigned
int
packing
;
extern
unsigned
int
pointer_size
;
extern
struct
target
target
;
extern
time_t
now
;
extern
int
open_typelib
(
const
char
*
name
);
...
...
Write
Preview
Markdown
is supported
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