https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68733
--- Comment #2 from dave.anglin at bell dot net ---
On 2015-12-10, at 12:31 PM, jakub at gcc dot gnu.org wrote:
> Has OpenMP ever worked on PA?
Likely not.
Although the issue is not exposed in the libgomp for earlier gcc versions, I
came across the problem looking
at build results of the Debian cdo package on hppa:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../libcdi/src
-I/usr/include/magics
-I/usr/include -I/usr/include -I/usr/include -I/usr/include
-I/usr/lib/hppa-lin
ux-gnu/hdf5/serial/include -I/usr/include -D_FORTIFY_SOURCE=2 -DgFortran
-I/usr/
include -g -O2 -Wformat -Werror=format-security -Wall -pedantic -fPIC -fopenmp
-
MT libcdo_la-remaplib.lo -MD -MP -MF .deps/libcdo_la-remaplib.Tpo -c remaplib.c
-fPIC -DPIC -o .libs/libcdo_la-remaplib.o
remaplib.c:338:6: warning: ‘check_lon_range2’ defined but not used
[-Wunused-fun
ction]
void check_lon_range2(long nc, long nlons, double *corners, double *centers)
^
remaplib.c: In function ‘remap_gradients’:
remaplib.c:1602:16: error: ‘grid.124’ not specified in enclosing parallel
if ( grid.mask[n] )
^
remaplib.c:1592:9: error: enclosing parallel
#pragma omp parallel for default(none) \
Copying the argument "grid" to a local fixed the build error.
> The OpenMP gimplification is unprepared to see the result of
> gimplify_parameters
> if reference_callee_copied is true on some parameter.
--
John David Anglin [email protected]