bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] m4/stack-direction.m4: fix build on or1k


From: Bruno Haible
Subject: Re: [PATCH] m4/stack-direction.m4: fix build on or1k
Date: Mon, 06 Dec 2021 01:19:24 +0100

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 | \






reply via email to

[Prev in Thread] Current Thread [Next in Thread]