Merge branch 'keith-packard-picolibc-1.4.7'

This commit is contained in:
Chris Packham 2020-11-01 20:03:07 +13:00
commit e0bf7aa72a
5 changed files with 5 additions and 38 deletions

View File

@ -1,33 +0,0 @@
From 1ce74e28ba8d6f91aca5830bfbc15897b68fcfac Mon Sep 17 00:00:00 2001
From: Keith Packard <keithp@keithp.com>
Date: Sun, 16 Aug 2020 12:44:31 -0700
Subject: [PATCH] libc: Create a macro for 'errno' so that GCC tsystem.h works
GCC's tsystem.h adds a declaration for errno if it isn't a CPP symbol,
which it isn't in picolibc as it's just a regular global (thread
local) variable. Create a function macro with no arguments so that
Signed-off-by: Keith Packard <keithp@keithp.com>
---
newlib/libc/include/sys/errno.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/newlib/libc/include/sys/errno.h b/newlib/libc/include/sys/errno.h
index 0da73f44e..64f179bc0 100644
--- a/newlib/libc/include/sys/errno.h
+++ b/newlib/libc/include/sys/errno.h
@@ -59,6 +59,11 @@ extern NEWLIB_THREAD_LOCAL_ERRNO int errno;
#define __errno_r(ptr) (errno)
#define __errno() (&errno)
+/*
+ * This lets applications check for #ifdef errno without requiring
+ * that errno be a parameter-less macro
+ */
+#define errno() (errno)
#define EPERM 1 /* Not owner */
#define ENOENT 2 /* No such file or directory */
--
2.28.0

View File

@ -1,4 +0,0 @@
md5 1.4.6.tar.gz 9f5cff6d36b278d02e05f4c717855f8c
sha1 1.4.6.tar.gz de2579dab6cf488b476195edcaaa2b3829d3183f
sha256 1.4.6.tar.gz 00764d0c0a2e8685fd9c91685ee8c404ef935975eaa07a55b15243558d390a00
sha512 1.4.6.tar.gz 9a46f63f74292affcce5548968528c98b1614a49fd801a8192c4a276b727ca4355d3d3643daeb1c82a15c8eef703e2983110d95f49111e9f108d1f1760647172

4
packages/picolibc/1.4.7/chksum vendored Normal file
View File

@ -0,0 +1,4 @@
md5 1.4.7.tar.gz a70f6b9690ca5e8ea4af4ed5c10e73c2
sha1 1.4.7.tar.gz 9bff47dce0a1f01ff7f1a16669dc0851bcc76d11
sha256 1.4.7.tar.gz c46d37bbdea6eb1eb658f67d05c8c37f2b7e768e54f4d0b4312da9326c0cd92e
sha512 1.4.7.tar.gz 882e1ce682b084044efa5d2775498168fb0aa49bf5d5a76bc4b47a29ffcc03371e2602ed892e80e8801c2a6a4de340c1ddf0bc963f7b5c53d8c4c4e4a477d9c7

View File

@ -1,6 +1,6 @@
origin='keithp.com'
repository='git https://github.com/keith-packard/picolibc.git'
milestones='1.4.6'
milestones='1.4.7'
archive_filename='@{version}'
relevantpattern='*.*|.*. *.*|.'
archive_formats='.tar.gz'