diff options
author | Tom de Vries <tdevries@suse.de> | 2022-02-18 12:31:02 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-02-22 14:51:59 +0100 |
commit | c2b23aaaf4457278403c01cd145cd3936683384e (patch) | |
tree | 12f97c92c87ef889bcc443f3e16b683e96a21399 /gcc/config/tilepro | |
parent | d669237f7d56d83b3c7bc12a957db22b3c410b43 (diff) | |
download | gcc-c2b23aaaf4457278403c01cd145cd3936683384e.zip gcc-c2b23aaaf4457278403c01cd145cd3936683384e.tar.gz gcc-c2b23aaaf4457278403c01cd145cd3936683384e.tar.bz2 |
[nvptx] Add -mptx-comment
Add functionality that indicates which insns are added by -minit-regs, such
that for instance we have for pr53465.s:
...
// #APP
// 9 "gcc/testsuite/gcc.c-torture/execute/pr53465.c" 1
// Start: Added by -minit-regs=3:
// #NO_APP
mov.u32 %r26, 0;
// #APP
// 9 "gcc/testsuite/gcc.c-torture/execute/pr53465.c" 1
// End: Added by -minit-regs=3:
// #NO_APP
...
Can be switched off using -mno-ptx-comment.
Tested on nvptx.
gcc/ChangeLog:
2022-02-21 Tom de Vries <tdevries@suse.de>
* config/nvptx/nvptx.cc (gen_comment): New function.
(workaround_uninit_method_1, workaround_uninit_method_2)
(workaround_uninit_method_3): : Use gen_comment.
* config/nvptx/nvptx.opt (mptx-comment): New option.
Diffstat (limited to 'gcc/config/tilepro')
0 files changed, 0 insertions, 0 deletions