This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Build failure in dwarf2out.c for sh target
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Build failure in dwarf2out.c for sh target
- From: Andrew Stubbs <Andrew dot Stubbs at st dot com>
- Date: Wed, 23 May 2001 15:47:39 +0100 (BST)
The GCC 3.0 snapshot 20010521 build fails with the error:
gcc-20010521/gcc/dwarf2out.c:1598: `ACCUMULATE_OUTGOING_ARGS' undeclared
(first use in this function)
The host is i686-pc-linux-gnu and the target is sh-hitachi-elf.
This failure is almost certainly because ACCUMULATE_OUTGOING_ARGS is not
defined for the sh architecture (unlike many others).
The problem appears to be fixed by adding the following three lines near
the top of dwarf2out.c:
#ifndef ACCUMULATE_OUTGOING_ARGS
#define ACCUMULATE_OUTGOING_ARGS 0
#endif
This idiom appears to be used in a number of other files. If this is
indeed the correct solution then I can send a patch file if necessary.
------------------------------------------------------------------------
| Andrew Stubbs, | E-mail: Andrew.Stubbs@st.com |
| STMicroelectronics Ltd., | or stubbsa@bristol.st.com |
| 1000 Aztec West, | |
| Almondsbury, | Tel: +44 (0)1454 462325 |
| Bristol, BS32 4SQ, U.K. | Fax: +44 (0)1454 617910 |
------------------------------------------------------------------------