Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2023 05:11:46 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: e500acf64f29 - 2023Q1 - devel/arm-none-eabi-newlib: fix the build with newer clang
Message-ID:  <202303210511.32L5Bknf017775@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2023Q1 has been updated by kevans:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e500acf64f297fe5988068c4fe6e3ed4e2f39cd4

commit e500acf64f297fe5988068c4fe6e3ed4e2f39cd4
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2023-03-21 04:18:10 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2023-03-21 04:37:24 +0000

    devel/arm-none-eabi-newlib: fix the build with newer clang
    
    Taken from upstream commit 7bfa24c49563717426d1ee237f29d1ccfc4b51db,
    cast these two to stinst_type explicitly to fix the build.
    
    (cherry picked from commit d8dd1f531d8f6df9089074d166dbaa02c8aff7d3)
---
 .../files/patch-newlib_doc_makedoc.c                     | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/devel/arm-none-eabi-newlib/files/patch-newlib_doc_makedoc.c b/devel/arm-none-eabi-newlib/files/patch-newlib_doc_makedoc.c
new file mode 100644
index 000000000000..952b88e04a02
--- /dev/null
+++ b/devel/arm-none-eabi-newlib/files/patch-newlib_doc_makedoc.c
@@ -0,0 +1,16 @@
+--- newlib/doc/makedoc.c.orig	2023-03-21 04:12:20 UTC
++++ newlib/doc/makedoc.c
+@@ -1317,11 +1317,11 @@ DEFUN(compile, (string), 
+ 		     /* Got a number, embedd the magic push number
+ 			function */
+ 		     add_to_definition(ptr, push_number);
+-		     add_to_definition(ptr, atol(word));
++		     add_to_definition(ptr, (stinst_type)atol(word));
+ 		     break;
+ 		   default:
+ 		     add_to_definition(ptr, call);
+-		     add_to_definition(ptr, lookup_word(word));
++		     add_to_definition(ptr, (stinst_type)lookup_word(word));
+ 		 }
+ 
+ 		string = nextword(string, &word);		     



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303210511.32L5Bknf017775>