On 10 Dec 09:22, Jakub Jelinek wrote:
> On Tue, Dec 09, 2014 at 03:32:33PM +0300, Ilya Verbin wrote:
> > However, I don't see -flto option in the build log.  It seems that
> > check_effective_target_lto isn't working inside libgomp/ directory.
> > Maybe because ENABLE_LTO is defined only in gcc/configure.ac ?
> > 
> > gcc/
> >     * varpool.c (varpool_node::get_create): Force output of vars with
> >     "omp declare target" attribute.
> > libgomp/
> >     * testsuite/libgomp.c/target-9.c: New test.
> 
> Ok, though please try to find out why effective target lto check doesn't
> work in libgomp.  Perhaps you just need to include some further *.exp
> file?

It lives in gcc/testsuite/lib/target-supports.exp, which is already included
into libgomp/testsuite/lib/libgomp.exp

proc check_effective_target_lto { } {
    global ENABLE_LTO
    if { [istarget nvptx-*-*] } {
        return 0;
    }
    return [info exists ENABLE_LTO]
}

I'm not sure how it works, but ENABLE_LTO is defined only in gcc/configure.ac .
Maybe it's possible to move it to top-level configure, or to check for "-flto"
support instead.
However, I will be able to fix this only in late Dec, I'm going on vacation
without access to the computer :)

  -- Ilya

Reply via email to