foss-for-synopsys-dwc-arc-processors/toolchain — pull request #20 by anthony-kolesov (2013-09-10 08:58:03+00:00)
Title: Do not use testglue for nSIM ELF32 toolchain tests

ARC newlib doesn't have function _exit, however Dejagnu testglue is intended
to wrap around it. Thus function _exit() gets created even though it is
never called. When performing execution tests Dejagnu sets breakpoints at
"exit" functions: abort() and _exit(), if it couldn't set at _exit() then at
exit(). That latter case should be applied to ARC, but instead we get
breakpoint at function created by testglue which is never called.

This patch explicitly request Dejagnu to not use testglue. GCC testsuite
uses `board_info needs_status_wrapper` to define whether testglue is needed.
Upstream binutils doesn't have this change, so binutils testsuite must be
patched for this to work properly.