[PATCH 1/2] Add gdb_compile_openmp to lib/gdb.exp

Kevin Buettner kevinb@redhat.com
Thu Aug 22 17:27:00 GMT 2019


On Thu, 22 Aug 2019 12:18:13 -0500
Christian Biesinger <cbiesinger@google.com> wrote:

> > +# 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?

No good reason.  I've removed those lines from my local sources.

Thanks for noticing this.

Kevin



More information about the Gdb-patches mailing list