Build failure in dwarf2out.c for sh target

Andrew Stubbs Andrew.Stubbs@st.com
Wed May 23 07:48:00 GMT 2001


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



More information about the Gcc-bugs mailing list