ctf: Do not warn for CTF not supported for GNU GIMPLE
authorIndu Bhagat <indu.bhagat@oracle.com>
Thu, 7 Oct 2021 19:09:14 +0000 (12:09 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Thu, 7 Oct 2021 19:09:14 +0000 (12:09 -0700)
commitae2df1a347fad44fa70990311ca981698487b780
tree9fa4da81a9e6b9bd5295908f96c57a35146c149c
parent0e90799071ee78f712f3b58fca7000bc0a258ade
ctf: Do not warn for CTF not supported for GNU GIMPLE

CTF is supported for C only.  Currently, a warning is emitted if the -gctf
command line option is specified for a non-C frontend.  This warning is also
used by the GCC testsuite framework - it skips adding -gctf to the list of
debug flags for automated testing, if CTF is not supported for the frontend.

The following warning, however, is not useful in case of LTO:

"lto1: note: CTF debug info requested, but not supported for ‘GNU GIMPLE’
frontend"

This patch disables the generation of the above warning for GNU GIMPLE.

gcc/ChangeLog:

* toplev.c (process_options): Do not warn for GNU GIMPLE.
gcc/toplev.c