[Bug lto/94848] [Offloading][LTO] error due to only partially eliminated var / -ftree-pre causes link errors | libgomp.fortran/use_device_ptr-optional-3.f90 failures
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 17 22:16:25 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94848
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Thomas Schwinge <tschwinge@gcc.gnu.org>:
https://gcc.gnu.org/g:5864930754f63e2dcef9606f2514ae20e80f436e
commit r11-1466-g5864930754f63e2dcef9606f2514ae20e80f436e
Author: Thomas Schwinge <thomas@codesourcery.com>
Date: Tue Jan 7 17:40:14 2020 +0100
Add 'dg-do run' to 'libgomp.fortran/use_device_ptr-optional-3.f90'
[PR94848]
Fix-up for r279858/commit f760c0c77fe350616da9dbeaea16442b0acfb09c
"Fortran]
OpenMP/OpenACC â fix more issues with OPTIONAL".
With offloading enabled, we then saw:
PASS: libgomp.fortran/use_device_ptr-optional-3.f90 -O0 (test for
excess errors)
PASS: libgomp.fortran/use_device_ptr-optional-3.f90 -O0 execution
test
PASS: libgomp.fortran/use_device_ptr-optional-3.f90 -O1 (test for
excess errors)
PASS: libgomp.fortran/use_device_ptr-optional-3.f90 -O1 execution
test
FAIL: libgomp.fortran/use_device_ptr-optional-3.f90 -O2 (test for
excess errors)
UNRESOLVED: libgomp.fortran/use_device_ptr-optional-3.f90 -O2
compilation failed to produce executable
FAIL: libgomp.fortran/use_device_ptr-optional-3.f90 -O3
-fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions
(test for excess errors)
UNRESOLVED: libgomp.fortran/use_device_ptr-optional-3.f90 -O3
-fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions
compilation failed to produce executable
FAIL: libgomp.fortran/use_device_ptr-optional-3.f90 -O3 -g (test for
excess errors)
UNRESOLVED: libgomp.fortran/use_device_ptr-optional-3.f90 -O3 -g
compilation failed to produce executable
FAIL: libgomp.fortran/use_device_ptr-optional-3.f90 -Os (test for
excess errors)
UNRESOLVED: libgomp.fortran/use_device_ptr-optional-3.f90 -Os
compilation failed to produce executable
... due to:
/tmp/cciVc43I.o:(.gnu.offload_vars+0x10): undefined reference to
`A.12.4064'
[...]
..., but after the recent PR94848, PR95551 changes, that problem is now
gone.
libgomp/
PR lto/94848
* testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
'dg-do run'.
More information about the Gcc-bugs
mailing list