This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] sim: tests: support .S files
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Mike Frysinger <vapier at gentoo dot org>, toolchain-devel at blackfin dot uclinux dot org, Jie Zhang <jie at codesourcery dot com>
- Date: Mon, 14 Mar 2011 11:56:23 +0000
- Subject: Re: [PATCH] sim: tests: support .S files
- References: <1300057848-2316-1-git-send-email-vapier@gentoo.org>
On Sunday 13 March 2011 23:10:48, Mike Frysinger wrote:
> - set comp_output [target_assemble $sourcefile ${name}.o "$as_options $global_as_options"]
> + if [string match "*.S" $sourcefile] {
> + set comp_output [target_compile $sourcefile ${name}.s "preprocess" "incdir=$srcdir/$subdir"]
> + if ![string match "" $comp_output] {
> + verbose -log "$comp_output" 3
> + fail "$mach $testname (preprocessing)"
> + continue
> + }
> + set comp_output [target_assemble ${name}.s ${name}.o "$as_options $global_as_options"]
> + file delete ${name}.s
> + } else {
> + set comp_output [target_assemble $sourcefile ${name}.o "$as_options $global_as_options"]
> + }
>
When using srcdir==buildir, won't this overwrite the source file on
non case-sensitive filesystems?
--
Pedro Alves