-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I do not understand abused C well enough to figure out what this code is doing but the NVIDIA (nee PGI) C compiler rejects it (GCC accepts it).
I have already filed a bug against NVC to request support for this non-standard usage but perhaps Bale could also avoid the apparently non-standard usage.
jehammond@dgx-a100-math:~/SHMEM/bale/src/bale_classic/build_unknown/apps$ /opt/nvidia/hpc_sdk/Linux_x86_64/21.5/comm_libs/openmpi4/openmpi-4.0.5/bin/oshcc -DHAVE_SHMEM_FREE=1 -I. -I/local/jehammond/SHMEM/bale/src/bale_classic/apps -I/local/jehammond/SHMEM/bale/src/bale_classic/build_unknown/include -I/local/jehammond/SHMEM/bale/src/bale_classic/apps/histo_src -DUSE_SHMEM -g -O2 -std=c11 -c histo_src/alternates/histo_exstack2_goto__c.c -o histo_src/alternates/histo-histo_exstack2_goto__c.o
"histo_src/alternates/histo_exstack2_goto__c.c", line 55: error: "goto *expr" is nonstandard
goto *loop_ptr;
^
"histo_src/alternates/histo_exstack2_goto__c.c", line 31: warning: variable "ret" was declared but never referenced
int ret;
^
"histo_src/alternates/histo_exstack2_goto__c.c", line 33: warning: variable "idxp" was declared but never referenced
int64_t pe, col, idx, *idxp;
^
1 error detected in the compilation of "histo_src/alternates/histo_exstack2_goto__c.c".
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels