Message ID | 20210419164737.26566-4-jose.marchesi@oracle.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=EdrtTY4S; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FPCS40mP1z9tkg for <incoming@patchwork.ozlabs.org>; Tue, 20 Apr 2021 02:48:20 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 97A17395B45F; Mon, 19 Apr 2021 16:48:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 97A17395B45F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1618850884; bh=95om05OodLV8xf2efayjwbtg5JqM/2Wb3TCDQ1ITJSg=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=EdrtTY4SvE05ieIf/pqpqW+dT7O8hIoXf95g8dP0ineQ/+91R/oUXMULfCFiJq/Wb wKI5Et9N3WtyOrfp9LzxOy67Agj5hXPjHRIMmcT5b/4s4EzXrYiwiCRhhUXz+Nn0TT 7X4zFmvW49FGygX/YqZvLAvwK+JNx19+oJe+qjno= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from userp2130.oracle.com (userp2130.oracle.com [156.151.31.86]) by sourceware.org (Postfix) with ESMTPS id 024C93951E7E for <gcc-patches@gcc.gnu.org>; Mon, 19 Apr 2021 16:47:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 024C93951E7E Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 13JGiJ7H138196 for <gcc-patches@gcc.gnu.org>; Mon, 19 Apr 2021 16:47:55 GMT Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 37yveac155-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <gcc-patches@gcc.gnu.org>; Mon, 19 Apr 2021 16:47:55 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 13JGk4Uk015066 for <gcc-patches@gcc.gnu.org>; Mon, 19 Apr 2021 16:47:54 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2054.outbound.protection.outlook.com [104.47.36.54]) by aserp3020.oracle.com with ESMTP id 3809jy3ar2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <gcc-patches@gcc.gnu.org>; Mon, 19 Apr 2021 16:47:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DXiCqAiVHp2qpntKCqgFtYc9h1KKHOFv22TQi6qZ9qcoTER+FkIBIzeelbk6CfaiqrvIUVDgcEhSYsfwI/rFU4OsdtD+UgBjH0x7N26Osj8qVbGtT+KSKMo/e2OCf+BSxh2JyuMtLNDoILaWpYyd+mMxVpqe8oxI+iucRF0pbOy73OCzE3C3OqjBp8DH+fCbZC1VGav6P1sTnpEjl6ErClKIkwdmOPHZUsf7v+laRa7GWlR1QiV0hDn2hXtXgVTjtyIRC6KiBkWQJ5y+S+/Xl5OYfVMC0jBWzwYIL8utlLFzzB/Fso80CO3ivTqbm8g+ChV7VHTul2yslnZ8aoSQyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=95om05OodLV8xf2efayjwbtg5JqM/2Wb3TCDQ1ITJSg=; b=cdgh9SGmIN9Gb0xP8Vcd1wAvWeudWDRJoO107yDiEjc7Y5rOaxiw3Cp+byyKPsZFZTB3Rs/gHiRe4Fr1B+diy0qF5AUt81W3o9eAsW9KSYbSSZOhmQqdaZZcJI4YfJA5OnbWyXA0LWknrFXp/YXEf7eSGLJIHF4ITVu7XEnu7cdPz0DCFskTjIimqIwXRQXbKPEv1A18xcf7nnNRAjcVdsd1/gOLmVzOzH56nb1hVa+XWgqnUjrV6IrGFfNM6ssx20TFnXdcXinBjvATO34c4v21diJ0DVbmf/LRbfh6Lez9UKBYPZnHgQFsPxAKrgbwGdcp8k0nnD5HaV6v8+fShg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from DM5PR10MB2041.namprd10.prod.outlook.com (2603:10b6:3:111::16) by DS7PR10MB4941.namprd10.prod.outlook.com (2603:10b6:5:38f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.18; Mon, 19 Apr 2021 16:47:53 +0000 Received: from DM5PR10MB2041.namprd10.prod.outlook.com ([fe80::35f2:ac4c:f8c0:ee4]) by DM5PR10MB2041.namprd10.prod.outlook.com ([fe80::35f2:ac4c:f8c0:ee4%7]) with mapi id 15.20.4042.024; Mon, 19 Apr 2021 16:47:53 +0000 To: gcc-patches@gcc.gnu.org Subject: [PATCH V7 3/7] dejagnu: modularize gcc-dg-debug-runtest a bit Date: Mon, 19 Apr 2021 18:47:33 +0200 Message-Id: <20210419164737.26566-4-jose.marchesi@oracle.com> X-Mailer: git-send-email 2.25.0.2.g232378479e In-Reply-To: <20210419164737.26566-1-jose.marchesi@oracle.com> References: <20210419164737.26566-1-jose.marchesi@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [141.143.193.69] X-ClientProxiedBy: LO4P123CA0055.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:153::6) To DM5PR10MB2041.namprd10.prod.outlook.com (2603:10b6:3:111::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from termi.localdomain (141.143.193.69) by LO4P123CA0055.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:153::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19 via Frontend Transport; Mon, 19 Apr 2021 16:47:52 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 72d0f2d4-cfd2-4fec-d8d9-08d90352dfe6 X-MS-TrafficTypeDiagnostic: DS7PR10MB4941: X-Microsoft-Antispam-PRVS: <DS7PR10MB494127E9CCB85A128579F75D94499@DS7PR10MB4941.namprd10.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0Jlf+8nTJHwGjRYNJvh03zSvf0pL0/U5bpEjUZfV+/hxj6vz4xiwrvYf9G/dy7lqtcxR5r6bvM6Zs7u0tgXzvhvL20iUQXqFWBQnRsACleejgYLrdljZo7FddKJHC3jzwvWOkbCxQ6UYjQOV0vL7REw2CYzTwV5QLNyXlck/RMP7aZP75xUUtS4h9rtP+4+6u0i6MOzZpG5czpB6GFRBVXP1nXmDL75/i7tNaIc1ywrCrG89//uK3nkv07lCw9mvxe98zo/WeZBJTn0nWEkNRsllcFGxhUu+XToR3oiyGSZY2WqcWGbYCYVJgILVFyNU8VUG1zVGRwJy/3VS5TQVVjZHOuUFEJNfXCTwB9Q5Rjcwa5t1Cx8CNSXgnQ43J6hmRUODbXCrPqmeESD9losaoVjjGleliI6wPzSZDhjQ7Y2XA46hEGoYJ6Q072d4OddPOe4cydV6nWHLQR/xPHFEWwSr/n26CE364rhZWa/OCA5YW0dYayfUR6NCdA2h0Vry37HrLfYlQSlYZcH2KZC0HGsdidMmcv4UoGH++qemC/hFNeN8TwY7hU0cnFdYlvjFJXMoCL+HwY9Y0inHoz6jZ4cpu+EBXu3A+hFak0R45EoPofahWpElSOpL9RdtpBhxAhiSwBFEpWa/YlA4zpx3vQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR10MB2041.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(136003)(366004)(396003)(376002)(39860400002)(2906002)(38350700002)(478600001)(38100700002)(956004)(52116002)(6486002)(5660300002)(1076003)(6506007)(8936002)(83380400001)(2616005)(8676002)(86362001)(6916009)(66946007)(316002)(6512007)(6666004)(26005)(16526019)(66556008)(66476007)(36756003)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: NF8CkmhHjYY+PseJXF6bCTGZm9nhBW2ks/Edq5BZaRbIEq8ZirqvB6ovRnhpE+gmXRLIBo4A11/ckE2IluA3BD+48n4kEknLaFt+QvItMNE/gHiQ+uHByO3fEZzu0B/F4rYfN1eh3fIJN5SPkga9YJT1GEWZg4pS/4dxTihX40bbwYlxG+gfjMh3vMAT/8PonKIUS3Ji0xTXS304Piy7r490fU8rfiJA/Ly/PB8AF/X/DskfCWLY58dSIAvXztXFc2gRvzZbts61beHrpXpGyKh7YFzzylLYyV0Jb+VV4V1v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-CrossTenant-Network-Message-Id: 72d0f2d4-cfd2-4fec-d8d9-08d90352dfe6 X-MS-Exchange-CrossTenant-AuthSource: DM5PR10MB2041.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2021 16:47:52.9804 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: TWkqrNArifgVTIhW596W0l4FulRjjlMDtdnvvjcqzWQpTp6vb8MwQG4u2s1DdxAfT7dadLHdhPLayCfhTGg93Q+nhbNE8F8vJXnIAPUJkcE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB4941 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9959 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 bulkscore=0 malwarescore=0 suspectscore=0 phishscore=0 spamscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104190114 X-Proofpoint-GUID: H80RlUC0T2JuR4oKFZRG0P3533wBCc3s X-Proofpoint-ORIG-GUID: H80RlUC0T2JuR4oKFZRG0P3533wBCc3s X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9959 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 impostorscore=0 phishscore=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 adultscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104190114 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, MSGID_FROM_MTA_HEADER, RCVD_IN_MSPIKE_BL, RCVD_IN_MSPIKE_L3, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: "Jose E. Marchesi via Gcc-patches" <gcc-patches@gcc.gnu.org> Reply-To: "Jose E. Marchesi" <jose.marchesi@oracle.com> Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces@gcc.gnu.org> |
Series |
Support for the CTF and BTF debug formats
|
expand
|
diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp index e48a184f991..a2b1c6436ab 100644 --- a/gcc/testsuite/lib/gcc-dg.exp +++ b/gcc/testsuite/lib/gcc-dg.exp @@ -621,18 +621,27 @@ proc gcc-dg-runtest { testcases flags default-extra-flags } { } } -proc gcc-dg-debug-runtest { target_compile trivial opt_opts testcases } { +# Check if the target system supports the debug format +proc gcc-dg-target-supports-debug-format { target_compile trivial type } { global srcdir subdir + set comp_output [$target_compile \ + "$srcdir/$subdir/$trivial" "trivial.S" assembly \ + "additional_flags=$type"] + if { ! [string match "*: target system does not support the * debug format*" \ + $comp_output] } { + remove-build-file "trivial.S" + return 1 + } + return 0 +} + +proc gcc-dg-debug-runtest { target_compile trivial opt_opts testcases } { if ![info exists DEBUG_TORTURE_OPTIONS] { set DEBUG_TORTURE_OPTIONS "" foreach type {-gdwarf-2 -gstabs -gstabs+ -gxcoff -gxcoff+} { - set comp_output [$target_compile \ - "$srcdir/$subdir/$trivial" "trivial.S" assembly \ - "additional_flags=$type"] - if { ! [string match "*: target system does not support the * debug format*" \ - $comp_output] } { - remove-build-file "trivial.S" + if [expr [gcc-dg-target-supports-debug-format \ + $target_compile $trivial $type]] { foreach level {1 "" 3} { if { ($type == "-gdwarf-2") && ($level != "") } { lappend DEBUG_TORTURE_OPTIONS [list "${type}" "-g${level}"]