From patchwork Thu Nov 23 15:32:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 24465 Received: (qmail 20593 invoked by alias); 23 Nov 2017 15:33:02 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 20576 invoked by uid 89); 23 Nov 2017 15:33:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.7 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KB_WAM_FROM_NAME_SINGLEWORD, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1323, H*r:sk:static. X-HELO: mail-wm0-f45.google.com Received: from mail-wm0-f45.google.com (HELO mail-wm0-f45.google.com) (74.125.82.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Nov 2017 15:33:00 +0000 Received: by mail-wm0-f45.google.com with SMTP id r68so17459661wmr.1 for ; Thu, 23 Nov 2017 07:32:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=H5PSTkVbX+LGBxM+sM7l6BftOCVl9FJhMjk7pCZa/5w=; b=ZyvgZbBmelGdOwBZs025z+Tl0jID1ceazD41Xs8Ln6FWfkwFRLWC/yNEXGujXe9MIo f8nU45dLER88nNrsAwxnyJ+saFlGbu906bWbBy9lP78aGf6a7T0nSJC+xwwy7o1CRDyn pxWL1fz/h+nrRMsZ5/Hp5hWFeDAbPX+v5dDzZV0mWQegHR3NZOL28fVfltb/2iIMNz9H nwMvMW/nyHlSk1kgz/DdzjQyhsmO+zvv+pWN60zpr6zkllJn4kCsyJ3ZTI1mAdoUp3/8 KyGkVjnThX2DEA76pqHywoFjMnhnwR7TCjSVC3AQFymQ9vpeb0IN65AbUQXvqxQoeUj0 wonw== X-Gm-Message-State: AJaThX59EN36ae7VfkZFaurNgUn95PP2/lqdj0iXv1nIcX8gsKt/mt12 uC7gva0rAxYARb1+GQzGjkrZFQ== X-Google-Smtp-Source: AGs4zMYB5S3aJrntd9jGrlkC4yW/b4sfAiORBllHtc/J93UzKrXHuguxnFwYNZK5CzyRjV1ZxpZbEw== X-Received: by 10.28.184.143 with SMTP id i137mr7784135wmf.143.1511451177994; Thu, 23 Nov 2017 07:32:57 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id o48sm3523758wrf.85.2017.11.23.07.32.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Nov 2017 07:32:57 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [pushed] [testsuite] Pass -g3 to clang in gdb.base/macscp.exp Date: Thu, 23 Nov 2017 15:32:52 +0000 Message-Id: <1511451172-30300-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes clang accepts option -g3 too. I checked the manual of xlc and icc, looks they don't accept -g3 option, so I don't pass -g3 for them. gdb/testsuite: 2017-11-23 Yao Qi * gdb.base/macscp.exp: Append -g3 to additional_flags for clang. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/macscp.exp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8ff1180..f3f1186 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-11-22 Yao Qi + + * gdb.base/macscp.exp: Append -g3 to additional_flags for clang. + 2017-11-22 Simon Marchi * gdb.opt/inline-locals.exp: Mark tests as KFAIL. diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp index c5cd899..d4242cc 100644 --- a/gdb/testsuite/gdb.base/macscp.exp +++ b/gdb/testsuite/gdb.base/macscp.exp @@ -21,7 +21,7 @@ set objfile [standard_output_file ${testfile}.o] set options { debug additional_flags=-DFROM_COMMANDLINE=ARG} get_compiler_info -if [test_compiler_info gcc*] { +if { [test_compiler_info "gcc-*"] || [test_compiler_info "clang-*"] } { lappend options additional_flags=-g3 }