From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7183 invoked by alias); 26 Apr 2002 18:06:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7127 invoked by uid 71); 26 Apr 2002 18:06:02 -0000 Resent-Date: 26 Apr 2002 18:06:01 -0000 Resent-Message-ID: <20020426180601.7126.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Kelley Cook Received:(qmail 6502 invoked by uid 61); 26 Apr 2002 18:05:17 -0000 Message-Id:<20020426180517.6500.qmail@sources.redhat.com> Date: Fri, 26 Apr 2002 11:06:00 -0000 From: Kelley Cook Reply-To: Kelley Cook To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: other/6480: C testsuite '--tool_opts' has incorrect precedence X-SW-Source: 2002-04/txt/msg01481.txt.bz2 List-Id: >Number: 6480 >Category: other >Synopsis: C testsuite '--tool_opts' has incorrect precedence >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Apr 26 11:06:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Kelley Cook >Release: gcc version 3.1 20020423 (prerelease) >Organization: >Environment: i686-pc-cygwin >Description: When invesigating the difference between testsuite runs with and without RUNFLAGS="--tool_opts='-march=pentium3 -mfpmath=sse'", it turned out that all the failures were either due to poorly constructed testcases or from a bug in C testing framework. The latter occured because gcc.exp, unlike g77.exp and g++.exp, appends tool_opts *after* the Testcase-specific options. Some tests may require those particular --tool_opt options to be overriden. >How-To-Repeat: make -k RUNTESTFLAGS="--tool_opts '-march=pentium3'" check gcc Specifically, look at the failure of gcc.misc-tests/i386-pf-none-1.c >Fix: See Attachment for one-line patch. It simply puts the --tool_opts overrides before any test specific options. Testsuite behaves identically without "--tool_opts" specified. I don't use Objective C, but the same patch could be applied to objc.exp. >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="gcc.exp.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="gcc.exp.diff" LS0tIHRlc3RzdWl0ZS9saWIvZ2NjLmV4cC5vcmlnCU1vbiBGZWIgIDQgMDA6MDA6MjUgMjAwMg0K KysrIHRlc3RzdWl0ZS9saWIvZ2NjLmV4cAlGcmkgQXByIDI2IDA5OjQ5OjAxIDIwMDINCkBAIC0x NDcsNyArMTQ3LDcgQEAgcHJvYyBnY2NfdGFyZ2V0X2NvbXBpbGUgeyBzb3VyY2UgZGVzdCB0eQ0K IAlsYXBwZW5kIG9wdGlvbnMgImFkZGl0aW9uYWxfZmxhZ3M9LUROT19MQUJFTF9WQUxVRVMiDQog ICAgIH0NCiAgICAgaWYgW2luZm8gZXhpc3RzIFRPT0xfT1BUSU9OU10gew0KLQlsYXBwZW5kIG9w dGlvbnMgImFkZGl0aW9uYWxfZmxhZ3M9JFRPT0xfT1BUSU9OUyINCisJc2V0IG9wdGlvbnMgW2xp bnNlcnQgJG9wdGlvbnMgMCAiYWRkaXRpb25hbF9mbGFncz0kVE9PTF9PUFRJT05TIl0NCiAgICAg fQ0KICAgICBpZiBbdGFyZ2V0X2luZm8gZXhpc3RzIGdjYyxub192YXJhcmdzXSB7DQogCWxhcHBl bmQgb3B0aW9ucyAiYWRkaXRpb25hbF9mbGFncz0tRE5PX1ZBUkFSR1MiDQo=