public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-embedded/jal/files/, dev-embedded/jal/
@ 2023-08-20  9:33 Viorel Munteanu
  0 siblings, 0 replies; only message in thread
From: Viorel Munteanu @ 2023-08-20  9:33 UTC (permalink / raw
  To: gentoo-commits

commit:     ef2703f95f0ced3d2668226b9097a9e638054283
Author:     Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Fri Jul 28 18:55:56 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sun Aug 20 09:32:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef2703f9

dev-embedded/jal: Fix incompatible integer to pointer conversion

Closes: https://bugs.gentoo.org/883243
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/32025
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 ...x-incompatible-integer-to-pointer-clang16.patch | 23 ++++++++++++++++++++++
 dev-embedded/jal/jal-0.4.62-r1.ebuild              | 18 +++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/dev-embedded/jal/files/jal-0.4.62-fix-incompatible-integer-to-pointer-clang16.patch b/dev-embedded/jal/files/jal-0.4.62-fix-incompatible-integer-to-pointer-clang16.patch
new file mode 100644
index 000000000000..10bef3a4c573
--- /dev/null
+++ b/dev-embedded/jal/files/jal-0.4.62-fix-incompatible-integer-to-pointer-clang16.patch
@@ -0,0 +1,23 @@
+Bug: https://bugs.gentoo.org/883243
+--- a/jal/treerep.c
++++ b/jal/treerep.c
+@@ -892,7 +892,7 @@ tree new_asm(loc_t loc, opcode_t opcode, tree arg1, int arg2)
+ 
+ 
+     if (code_has(p->opcode, field_flabel)) {
+-        assert_pointer(NULL, arg2);
++        assert_pointer(NULL, (void *)arg2);
+         p->next = new_const(new_value(type_universal, arg2));
+     }
+ 
+--- a/jal/treetools.c
++++ b/jal/treetools.c
+@@ -600,7 +600,7 @@ tree arg(tree p, int n, boolean must_find)
+ #endif
+     assert_kind(p->loc, p, node_procedure);
+ /*    jal_assert(p->loc, n > 0); */
+-    assert_pointer(p->loc, n > 0);
++    assert_pointer(p->loc, (void *)( n > 0 ));
+     p = p->first;
+     assert_pointer(NULL, p);
+ 

diff --git a/dev-embedded/jal/jal-0.4.62-r1.ebuild b/dev-embedded/jal/jal-0.4.62-r1.ebuild
new file mode 100644
index 000000000000..efadbb6cadd9
--- /dev/null
+++ b/dev-embedded/jal/jal-0.4.62-r1.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="A high-level language for Microchip PIC and Ubicom SX microcontrollers"
+HOMEPAGE="https://jal.sourceforge.net/"
+SRC_URI="mirror://sourceforge/jal/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}/${PN}"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-0.4.62-fix-incompatible-integer-to-pointer-clang16.patch
+)


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-20  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-20  9:33 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/jal/files/, dev-embedded/jal/ Viorel Munteanu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox