* TREE_USED and DECL_READ_P
[not found] <1115898549.6964702.1532084663023.ref@mail.yahoo.com>
@ 2018-07-20 12:19 ` å 人 ç via gcc
0 siblings, 0 replies; only message in thread
From: å 人 ç via gcc @ 2018-07-20 12:19 UTC (permalink / raw)
To: gcc
GCC Edition:7.3.0
I find in source code/gcc/c/c-decl.c ,
Line 1265 to 1281 decides what situation leads to warnings for unused variables
I am confused about line 1266:
I think only the DECL_READ_P is enough for program to
decides the warning for unused variables, so I can elmiminate
" !TREE_USED(p) || "
Am I right ?
The comment for "DECL_READ_P":
InVAR_DECL and PARM_DECL, set when the decl has been used except for being set
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-07-20 11:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1115898549.6964702.1532084663023.ref@mail.yahoo.com>
2018-07-20 12:19 ` TREE_USED and DECL_READ_P å 人 ç via gcc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).