Skip to content

Commit

Permalink
Merge pull request #412 from c8ef/master
Browse files Browse the repository at this point in the history
update the x86_64 ABI link.
  • Loading branch information
vnmakarov authored Jul 23, 2024
2 parents 2719bf5 + 69c9208 commit d6dffef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions c2mir/x86_64/cx86_64-ABI-code.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
x86_64 ABI target specific code.
*/

/* See https://github.com/hjl-tools/x86-psABI/wiki/x86-64-psABI-1.0.pdf. We use MIR_T_UNDEF for
MEMORY. */
/* See https://gitlab.com/x86-psABIs/x86-64-ABI.
We use MIR_T_UNDEF for MEMORY.
*/

enum add_arg_class { NO_CLASS = MIR_T_BOUND + 1, X87UP_CLASS };

Expand Down
2 changes: 1 addition & 1 deletion c2mir/x86_64/cx86_64-code.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static string_include_t standard_includes[]
#define ADJUST_VAR_ALIGNMENT(c2m_ctx, align, type) x86_adjust_var_alignment (c2m_ctx, align, type)

static int x86_adjust_var_alignment (c2m_ctx_t c2m_ctx, int align, struct type *type) {
/* see https://www.uclibc.org/docs/psABI-x86_64.pdf */
/* see https://gitlab.com/x86-psABIs/x86-64-ABI */
if (type->mode == TM_ARR && raw_type_size (c2m_ctx, type) >= 16) return 16;
return align;
}
Expand Down
2 changes: 1 addition & 1 deletion c2mir/x86_64/mirc_x86_64_stdarg.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Copyright (C) 2019-2024 Vladimir Makarov <[email protected]>.
*/

/* See C11 7.16 and https://www.uclibc.org/docs/psABI-x86_64.pdf */
/* See C11 7.16 and https://gitlab.com/x86-psABIs/x86-64-ABI */
static char stdarg_str[]
= "#ifndef __STDARG_H\n"
"#define __STDARG_H\n"
Expand Down

0 comments on commit d6dffef

Please sign in to comment.