From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31029 invoked by alias); 14 Mar 2011 11:56:38 -0000 Received: (qmail 31015 invoked by uid 22791); 14 Mar 2011 11:56:38 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Mar 2011 11:56:30 +0000 Received: (qmail 12958 invoked from network); 14 Mar 2011 11:56:27 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 14 Mar 2011 11:56:27 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [PATCH] sim: tests: support .S files Date: Mon, 14 Mar 2011 12:32:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.35-27-generic; KDE/4.6.1; x86_64; ; ) Cc: Mike Frysinger , toolchain-devel@blackfin.uclinux.org, Jie Zhang References: <1300057848-2316-1-git-send-email-vapier@gentoo.org> In-Reply-To: <1300057848-2316-1-git-send-email-vapier@gentoo.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201103141156.23648.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00712.txt.bz2 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