On 6/26/2026 4:07 AM, Richard Braun wrote:
On Thu, May 28, 2026 at 08:05:37AM -0600, Jeffrey Law wrote:
On 5/28/2026 3:58 AM, Richard Braun wrote:
On Wed, May 27, 2026 at 09:15:34AM -0600, Jeffrey Law wrote:
My tester does the usual build binutils, minimal gcc & target libraries,
then newlib.
I should have something close locally then, thanks.
Sounds good.  Other than using qemu to bootstrap weird dead platforms like
m68k, alpha, hppa, etc I don't think it does anything special/unique.
Hello,

I've had some urgencies I needed to attend to, but I can restart work on this.

I'm having trouble making sure I'm running all relevant tests. Can you share
the command line or lines you use to run the testsuite ? Thanks.
So my tester builds a dummy simulator that always returns success. That lets me at least verify the code generator isn't triggering internal compiler errors, verify the generated code can be assembled & linked.  Obviously with a dummy simulator it can't actually test the resulting code for correctness.

Assuming you're in your gcc object subdirectory I use

make -j <whatever>  check RUNTESTFLAGS="--target_board=c6x-sim"

You'll need a c6x-sim.exp in your dejagnu boardsboards directory. I've attached mine.

jeff
# Copyright (C) 1997-2016 Free Software Foundation, Inc.
#
# This file is part of DejaGnu.
#
# DejaGnu is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# DejaGnu is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with DejaGnu; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.

# This is a list of toolchains that are supported on this board.
set_board_info target_install {c6x-elf}

# Load the generic configuration for this board. This will define a basic set
# of routines needed by the tool to communicate with the board.
load_generic_config "sim"

# basic-sim.exp is a basic description for the standard Cygnus simulator.
load_base_board_description "basic-sim"

# "fr30" is the name of the sim subdir.
setup_sim c6x

# No multilib options needed by default.
process_multilib_options ""

# We only support newlib on this target. We assume that all multilib
# options have been specified before we get here.

set_board_info compiler  "[find_gcc]"
set_board_info cflags    "[libgloss_include_flags] [newlib_include_flags]"
set_board_info ldflags   "-msim [libgloss_link_flags] [newlib_link_flags]"
# No linker script needed.
set_board_info ldscript ""

# The simulator doesn't return exit statuses and we need to indicate this;
# the standard GCC wrapper will work with this target.
set_board_info needs_status_wrapper  1
# Doesn't pass arguments or signals, can't return results, and doesn't
# do inferiorio.
set_board_info noargs 1
set_board_info gdb,nosignals 1
set_board_info gdb,noresults 1
set_board_info gdb,noinferiorio 1

set_board_info gcc,stack_size  4096

Reply via email to