aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-intrinsic.cc
diff options
context:
space:
mode:
authorPrathamesh Kulkarni <prathameshk@nvidia.com>2024-08-20 12:54:02 +0530
committerPrathamesh Kulkarni <prathameshk@nvidia.com>2024-08-20 12:58:54 +0530
commitdb2e9a2a46f64b037494e8300c46f2d90a9fa55c (patch)
tree8871353344f7cb07fa94c724503c399084f95c13 /gcc/fortran/trans-intrinsic.cc
parentc1a53d9dcf9ebf0a6b4528a8c3eae48a583f272c (diff)
downloadgcc-db2e9a2a46f64b037494e8300c46f2d90a9fa55c.zip
gcc-db2e9a2a46f64b037494e8300c46f2d90a9fa55c.tar.gz
gcc-db2e9a2a46f64b037494e8300c46f2d90a9fa55c.tar.bz2
[optc-save-gen.awk] Fix streaming of command line options for offloading.
The patch modifies optc-save-gen.awk to generate if (!lto_stream_offload_p) check before streaming out target-specific opt in cl_optimization_stream_out, when offloading is enabled. Also, it modifies cl_optimization_stream_in to issue an error during build time if accelerator backend defines a target-specific Optimization option. This restriction currently is in place to maintain consistency for streaming of Optimization options between host and accelerator. A proper fix would be to merge target-specific Optimization options for host and accelerators enabled for offloading. gcc/ChangeLog: * optc-save-gen.awk: New array var_target_opt. Use it to generate if (!lto_stream_offload_p) check in cl_optimization_stream_out, and generate a diagnostic with #error if accelerator backend uses Optimization for target-specifc options in cl_optimization_stream_in. Signed-off-by: Prathamesh Kulkarni <prathameshk@nvidia.com>
Diffstat (limited to 'gcc/fortran/trans-intrinsic.cc')
0 files changed, 0 insertions, 0 deletions