freebsd-ports/devel/flang/files/patch-runtime_flangrti_trace__lin.c
Johannes M Dieterich 443e836030 devel/flang[-clang]: update to later snapshots
This introduces flang-driver, a clang6-derived driver / companion compiler, and
uses math/libpgmath as the math library backend. Notably, the latter currently
limits us to 12-CURRENT.

Patches are a combination of carry-over and adapted OpenBSD ones.

While there, pet portlint.

Reviewed by:	zeising (mentor), mat
Approved by:	zeising (mentor)
Obtained from:	Brian Callahan (bcallah@openbsd.org) with adaptations
Differential Revision:	https://reviews.freebsd.org/D17036
2018-09-06 20:11:06 +00:00

20 lines
531 B
C

--- runtime/flangrti/trace_lin.c.orig 2018-09-03 06:03:48 UTC
+++ runtime/flangrti/trace_lin.c
@@ -87,7 +87,7 @@ static struct sigs sigs[] = {
{0, CODNULL, NULL} /* end of list */
};
-static gregset_t *regs; /* pointer to regs at signal */
+static void *regs; /* pointer to regs at signal */
extern char **__io_get_argv();
static char ** saved_argv;
@@ -143,7 +143,7 @@ __abort_trace(int skip)
char **strings;
size_t i;
- if (regs != (gregset_t *)0) {
+ if (regs != (void *)0) {
dumpregs(regs);
}