Skip to content

Commit

Permalink
Added xcodeml-tools patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael Stellio committed Aug 30, 2024
1 parent 9da1206 commit 71dd604
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions repos/c2sm/packages/claw/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class Claw(CMakePackage):
# Otherwise, they are cached to the user's home directory.
patch('ivy_local_cache.patch', when='@:2.0.3')

patch('xcodeml-tools.patch', working_dir="xcodeml-tools")

# https://github.com/claw-project/claw-compiler/pull/586
conflicts('%nag', when='@:2.0.1')

Expand Down
36 changes: 36 additions & 0 deletions repos/c2sm/packages/claw/xcodeml-tools.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
--- a/C-FrontEnd/src/c-xcodeml.c
+++ b/C-FrontEnd/src/c-xcodeml.c
@@ -251,7 +251,8 @@ outxTag(FILE *fp, int indent, CExpr *expr, const char *tag, int xattrFlag,
voutxTag(fp, indent, expr, tag, xattrFlag, attrFmt, args);
va_end(args);
} else {
- voutxTag(fp, indent, expr, tag, xattrFlag, attrFmt, NULL);
+ va_list empty_va_list = va_list();
+ voutxTag(fp, indent, expr, tag, xattrFlag, attrFmt, empty_va_list);
}
}

@@ -282,9 +283,10 @@ outxTagForStmt(FILE *fp, int indent, CExpr *expr, const char *tag, int addXattrF
attrFmt, args);
va_end(args);
} else {
+ va_list empty_va_list = va_list();
voutxTag(fp, indent, expr, tag,
XATTR_LINENO|XATTR_COMMON|addXattrFlag,
- attrFmt, NULL);
+ attrFmt, empty_va_list);
}
}

@@ -301,9 +303,10 @@ outxTagForExpr(FILE *fp, int indent, CExpr *expr, const char *tag, int addXattrF
attrFmt, args);
va_end(args);
} else {
+ va_list empty_va_list = va_list();
voutxTag(fp, indent, expr, tag,
XATTR_TYPE|XATTR_IS_GCCEXTENSION|XATTR_COMMON|addXattrFlag,
- attrFmt, NULL);
+ attrFmt, empty_va_list);
}
}

0 comments on commit 71dd604

Please sign in to comment.