Builds with GCC-5 failed due to misplaced `_Noreturn (__attribute__((noreturn)))` statement. Patch copied from upstream source repository: http://git.savannah.gnu.org/cgit/rcs.git/commit/?h=p&id=260704a9164dd34cf7128d6b1e88075ffa3be054 Upstream bug URL: https://savannah.gnu.org/bugs/?49568 commit 260704a9164dd34cf7128d6b1e88075ffa3be054 Author: Thien-Thi Nguyen Date: Thu Jun 18 21:25:53 2015 +0200 [C slog] Move ‘exiting’ to beginning of func decl. Apparently, ‘gcc --std=c11’ does not abide the ‘exiting’ attribute appearing at the end of the func decl. Reported by Romain Francoise. See also . * src/b-complain.h (generic_fatal, fatal_syntax, fatal_sys) * src/b-fb.h (Ierror, Oerror) * src/base.h (unexpected_EOF, thank_you_and_goodnight): Move ‘exiting’ attribute to beginning of func decl. diff --git a/src/b-complain.h b/src/b-complain.h index 0ffd157..ea0ffc5 100644 --- a/src/b-complain.h +++ b/src/b-complain.h @@ -32,12 +32,14 @@ extern void generic_warn (char const *who, char const *fmt, ...) printf_string (2, 3); extern void generic_error (char const *who, char const *fmt, ...) printf_string (2, 3); +exiting extern void generic_fatal (char const *who, char const *fmt, ...) - printf_string (2, 3) exiting; + printf_string (2, 3); +exiting extern void fatal_syntax (size_t lno, char const *fmt, ...) - printf_string (2, 3) exiting; -extern void fatal_sys (char const *who) - exiting; + printf_string (2, 3); +exiting +extern void fatal_sys (char const *who); /* Idioms. Here, prefix P stands for "program" (general operation); M for "manifestation"; R for "repository". */ diff --git a/src/b-fb.h b/src/b-fb.h index c9850e7..bf5eaf8 100644 --- a/src/b-fb.h +++ b/src/b-fb.h @@ -21,9 +21,11 @@ */ extern int change_mode (int fd, mode_t mode); -extern void Ierror (void) exiting; +exiting +extern void Ierror (void); extern void testIerror (FILE *f); -extern void Oerror (void) exiting; +exiting +extern void Oerror (void); extern void testOerror (FILE *o); extern FILE *fopen_safer (char const *filename, char const *type); extern void Ozclose (FILE **p); diff --git a/src/base.h b/src/base.h index 163ee09..5e7a9f8 100644 --- a/src/base.h +++ b/src/base.h @@ -755,8 +755,8 @@ int dorewrite (bool lockflag, int changed); int donerewrite (int changed, time_t newRCStime); void ORCSclose (void); void ORCSerror (void); -void unexpected_EOF (void) - exiting; +exiting +void unexpected_EOF (void); void initdiffcmd (struct diffcmd *dc); int getdiffcmd (struct fro *finfile, bool delimiter, FILE *foutfile, struct diffcmd *dc); @@ -831,8 +831,8 @@ char const *date2str (char const date[datesize], char datebuf[datesize + zonelenmax]); /* rcsutil */ -void thank_you_and_goodnight (int const how) - exiting; +exiting +void thank_you_and_goodnight (int const how); /* These are for ‘thank_you_and_goodnight’. */ #define TYAG_ORCSERROR (1 << 3) #define TYAG_DIRTMPUNLINK (1 << 2) /span>Nicolas Graves 2023-05-07gnu: icu4c-70: Fix gexp in builder script for riscv64....As phases from icu4c is a gexp. * gnu/packages/icu4c.scm (icu4c-70)[arguments]: Use gexps. Christopher Baines 2022-09-27Merge branch 'staging' into core-updates...Conflicts resolved in: gnu/local.mk gnu/packages/cran.scm gnu/packages/gnome.scm gnu/packages/gtk.scm gnu/packages/icu4c.scm gnu/packages/java.scm gnu/packages/machine-learning.scm gnu/packages/tex.scm Maxim Cournoyer 2022-09-24gnu: Remove icu4c-67....* gnu/packages/icu4c.scm (icu4c-67): Remove variable. Efraim Flashner 2022-07-22Merge branch 'staging' into core-updatesMarius Bakke 2022-07-16gnu: mozjs: Build with ICU 69....* gnu/packages/icu4c.scm (icu4c-69): New variable. * gnu/packages/gnuzilla.scm (mozjs)[inputs]: Change from ICU4C to ICU4C-69. Marius Bakke 2022-07-11gnu: icu4c-70: Fix building on riscv64-linux....* gnu/packages/icu4c.scm (icu4c-70)[arguments]: When building for riscv64-linux replace the custom 'disable-failing-test phase to skip an additional test. Efraim Flashner 2022-06-30gnu: icu4c: Remove input labels....* gnu/packages/icu4c.scm (icu4c)[arguments]: Use G-expression. [native-inputs]: Remove labels. * gnu/packages/icu4c.scm (icu4c-build-root)[arguments]: Use gexp. Marius Bakke 2022-06-27gnu: icu4c: Update to 71.1....* gnu/packages/icu4c.scm (icu4c): Update to 71.1. (icu4c-71): Remove variable. * gnu/packages/chromium.scm (ungoogled-chromium)[inputs]: Change ICU4C-71 to ICU4C. Marius Bakke 2022-06-23gnu: icu4c: Add 71.1....* gnu/packages/icu4c.scm (icu4c-71): New variable. Marius Bakke