From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32998 invoked by alias); 22 Aug 2019 17:18:54 -0000 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 Received: (qmail 32987 invoked by uid 89); 22 Aug 2019 17:18:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-30.6 required=5.0 tests=AWL,BAYES_00,ENV_AND_HDR_SPF_MATCH,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS,USER_IN_DEF_SPF_WL autolearn=ham version=3.3.1 spammy=Kevin, U*kevinb, kevinb@redhat.com, HX-Languages-Length:1255 X-HELO: mail-ot1-f67.google.com Received: from mail-ot1-f67.google.com (HELO mail-ot1-f67.google.com) (209.85.210.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Aug 2019 17:18:52 +0000 Received: by mail-ot1-f67.google.com with SMTP id o101so6149891ota.8 for ; Thu, 22 Aug 2019 10:18:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P1WKxunnIfyIciGWtF0/s+SM+RfLpdfHRzcwkmZ1zLU=; b=K01OOchMbR6doQwsQ7xziHGDSb6FQup39gkL/WXtKgnZFDhdeiphq6O6prR/BalZ5q p3xnYjFBkrqge0BzkZBIFgWhkt6OwXOsW4MgoShLVQPX2Ec7nRNN6HO+vpBHWYaVZNF6 vhNdBXvKlRqpy4flAvXBRUzhrEtfTshSEyGOTfXvingZ2Uy21VyYusccA6UtP4m5XJsg M3juVLyfINXNENH0vQuPzYdoVG+M4GgoYLHwfa6EoJ3+tp+dOTZPOVKcYgizSWklWWsv u5h57SwIYFYldm5yR24zG+jYLE2CM9LlS9IKarpK9vSUwFEBL03oIB7xOh/kt3LsP8XM 8edQ== MIME-Version: 1.0 References: <20190822171408.28271-1-kevinb@redhat.com> <20190822171408.28271-2-kevinb@redhat.com> In-Reply-To: <20190822171408.28271-2-kevinb@redhat.com> From: "Christian Biesinger via gdb-patches" Reply-To: Christian Biesinger Date: Thu, 22 Aug 2019 17:18:00 -0000 Message-ID: Subject: Re: [PATCH 1/2] Add gdb_compile_openmp to lib/gdb.exp To: Kevin Buettner Cc: gdb-patches Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00535.txt.bz2 On Thu, Aug 22, 2019 at 12:14 PM Kevin Buettner wrote: > > gdb/testsuite/ChangeLog: > > * lib/gdb.exp (gdb_compile_openmp): New proc. > --- > gdb/testsuite/lib/gdb.exp | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp > index af56e8aa12..c8bca2f277 100644 > --- a/gdb/testsuite/lib/gdb.exp > +++ b/gdb/testsuite/lib/gdb.exp > @@ -4053,6 +4053,26 @@ proc gdb_compile_objc {source dest type options} { > } > } > > +# Build an OpenMP program from SOURCE. See prefatory comment for > +# gdb_compile, above, for discussion of the parameters to this proc. > + > +proc gdb_compile_openmp {source dest type options} { > + switch -glob [test_compiler_info] { > + "gcc-*" { > + if { !([istarget "*-*-cygwin*"] > + || [istarget "*-*-mingw*"] > + || [istarget "*-*-pe*"]) } { > + lappend options "additional_flags=-fopenmp" Why exclude cygwin/mingw here? > + } > + } > + default { > + # Don't know what flags to pass for this compiler > + } > + } > + > + return [gdb_compile $source $dest $type $options] > +} > + > # Send a command to GDB. > # For options for TYPE see gdb_stdin_log_write > > -- > 2.21.0 >