From 76402405d17a99f00b46e7bdc2a4896fb11f0d64 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 13 May 2023 21:47:10 -0700 Subject: stdio: use _GL_ATTRIBUTE_MALLOC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * lib/stdio.in.h (fdopen, fopen, popen, tmpfile): Declare with _GL_ATTRIBUTE_MALLOC, for consistency with glibc, and so that building the fopen module with ‘gcc -O2 -Wsuggest-attribute=malloc -Wsystem-headers -Werror’ does not fail with “stdio.h: In function ‘rpl_fopen’: stdio.h:970:1: error: function might be candidate for attribute ‘malloc’ [-Werror=suggest-attribute=malloc]”, a problem I noticed on both Fedora 38 and Ubuntu 23.04. sigsegv: Add tentative support for Hurd/x86_64. Reported by Samuel Thibault . --- ChangeLog | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 542706f252..e5accdb172 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2023-05-13 Paul Eggert + + stdio: use _GL_ATTRIBUTE_MALLOC + * lib/stdio.in.h (fdopen, fopen, popen, tmpfile): Declare with + _GL_ATTRIBUTE_MALLOC, for consistency with glibc, and so that + building the fopen module with ‘gcc -O2 -Wsuggest-attribute=malloc + -Wsystem-headers -Werror’ does not fail with “stdio.h: In function + ‘rpl_fopen’: stdio.h:970:1: error: function might be candidate for + attribute ‘malloc’ [-Werror=suggest-attribute=malloc]”, a problem + I noticed on both Fedora 38 and Ubuntu 23.04. + 2023-05-12 Bruno Haible sigsegv: Add tentative support for Hurd/x86_64. -- cgit v1.2.1