aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2022-05-17 20:46:29 +0200
committerTobias Burnus <tobias@codesourcery.com>2022-05-17 20:54:32 +0200
commitc9852156dd2fedec130f6d8eb669579ef6237946 (patch)
treeb7c364620f844d4130a5f39e5c717104cd3bc336 /gcc/c
parentb7501739f3b14ac7749aace93f636d021fd607f7 (diff)
downloadgcc-c9852156dd2fedec130f6d8eb669579ef6237946.zip
gcc-c9852156dd2fedec130f6d8eb669579ef6237946.tar.gz
gcc-c9852156dd2fedec130f6d8eb669579ef6237946.tar.bz2
Revert 'Use more ARRAY_SIZE.' for mkoffload
Revert commit r13-472-gca32b29ec3e92dcf8dda5c2501d0baf9dd1cb09d partially; namely for {gcn,nvptx}/mkoffload.cc, only. The patch changed 'sizeof(...)/sizeof(...[0])' to the 'ARRAY_SIZE' macro, which is in principle a good idea – except that in the two mkoffload.cc, the change happened inside a string that is used to generate plain C code. With offlading to nvptx or gcn, the mkoffload genenates then the C file and compilation of the latter fails with "warning: implicit declaration of function 'ARRAY_SIZE'" followed by "error: initializer element is not constant" gcc/ * config/gcn/mkoffload.cc (process_obj): Revert: Use ARRAY_SIZE. * config/nvptx/mkoffload.cc (process): Likewise.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions