* [PATCH] m4/stack-direction.m4: fix build on or1k
@ 2021-11-11 9:06 Fabrice Fontaine
2021-11-12 2:40 ` Paul Eggert
0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Fontaine @ 2021-11-11 9:06 UTC (permalink / raw)
To: bug-gnulib; +Cc: Fabrice Fontaine
Fix the following build failure on or1k with diffutils raised since
version 3.8 and
https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=e54aa6196947ed22ff66bcd714e4fc7bd0c5c3b4
sigsegv.c: In function 'sigsegv_handler':
sigsegv.c:979:28: error: 'struct vma_struct' has no member named 'is_near_this'
979 | : vma.is_near_this (addr, &vma))
| ^
Fixes:
- http://autobuild.buildroot.org/results/5427e52489d29ed4f18b4a70b3c36f0f7bb0ddd9
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
m4/stack-direction.m4 | 1 +
1 file changed, 1 insertion(+)
diff --git a/m4/stack-direction.m4 b/m4/stack-direction.m4
index 70286c8f5..29e398d77 100644
--- a/m4/stack-direction.m4
+++ b/m4/stack-direction.m4
@@ -45,6 +45,7 @@ AC_DEFUN([SV_STACK_DIRECTION],
nios2 | \
nds32* | \
ns32k | \
+ or1k | \
pdp11 | \
pj* | \
powerpc* | rs6000 | \
--
2.33.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] m4/stack-direction.m4: fix build on or1k
2021-11-11 9:06 [PATCH] m4/stack-direction.m4: fix build on or1k Fabrice Fontaine
@ 2021-11-12 2:40 ` Paul Eggert
2021-12-06 0:19 ` Bruno Haible
0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggert @ 2021-11-12 2:40 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Gnulib bugs
Thanks, I installed that patch, as well as the patch for microblazeel.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] m4/stack-direction.m4: fix build on or1k
2021-11-12 2:40 ` Paul Eggert
@ 2021-12-06 0:19 ` Bruno Haible
0 siblings, 0 replies; 3+ messages in thread
From: Bruno Haible @ 2021-12-06 0:19 UTC (permalink / raw)
To: Fabrice Fontaine, bug-gnulib, Paul Eggert
Paul Eggert wrote:
> Thanks, I installed that patch, as well as the patch for microblazeel.
Thanks. Going a step further, I searched for all "#define STACK_GROWS_DOWNWARD 1"
in the GCC 11 sources, and added the info for these embedded CPUs as well
(translating the CPU names in the same way as config.sub does).
2021-12-05 Bruno Haible <bruno@clisp.org>
sigsegv: Fix build on some more embedded CPUs.
* m4/stack-direction.m4 (SV_STACK_DIRECTION): Assume the stack grows
negative, when the GCC 11 sources say so.
diff --git a/m4/stack-direction.m4 b/m4/stack-direction.m4
index 29e398d77..b33920f28 100644
--- a/m4/stack-direction.m4
+++ b/m4/stack-direction.m4
@@ -1,4 +1,4 @@
-# stack-direction.m4 serial 9
+# stack-direction.m4 serial 10
dnl Copyright (C) 2002-2021 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
@@ -24,15 +24,23 @@ AC_DEFUN([SV_STACK_DIRECTION],
bfin | \
c1 | c2 | c32 | c34 | c38 | \
clipper | \
+ cr16 | \
cris | \
+ csky | \
d30v | \
+ epiphany | \
elxsi | \
fr30 | \
+ frv | \
+ ft32 | \
h8300 | \
i?86 | x86_64 | \
i860 | \
ia64 | \
+ iq2000 | \
+ lm32 | \
loongarch* | \
+ m32c | \
m32r | \
m68* | \
m88k | \
@@ -42,20 +50,30 @@ AC_DEFUN([SV_STACK_DIRECTION],
mmix | \
mn10200 | \
mn10300 | \
- nios2 | \
+ moxie | \
+ msp430 | \
nds32* | \
+ nios2 | nios2eb | nios2el | \
ns32k | \
+ nvptx | \
or1k | \
pdp11 | \
pj* | \
powerpc* | rs6000 | \
+ pru | \
riscv* | \
+ rl78 | \
romp | \
+ rx | \
s390* | \
sh* | \
sparc* | \
+ tic6x | \
+ tilegx | \
+ tilepro | \
v850 | \
vax | \
+ visium | \
xtensa)
sv_cv_stack_direction=-1 ;;
c4x | \
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-06 0:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 9:06 [PATCH] m4/stack-direction.m4: fix build on or1k Fabrice Fontaine
2021-11-12 2:40 ` Paul Eggert
2021-12-06 0:19 ` Bruno Haible
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).