This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 10/14] warn_for_memset: handle location wrappers


On 11/10/2017 04:45 PM, David Malcolm wrote:
gcc/c-family/ChangeLog:
	* c-warn.c (warn_for_memset): Strip any location wrappers
	from arg0 and arg2.

gcc/cp/ChangeLog:
	* parser.c (cp_parser_postfix_expression): Before warn_for_memset,
	strip any wrapper around "arg2" before testing for CONST_DECL.

Despite my earlier comment about fold_for_warn, I guess this is specifically interested in literals, so this is OK.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]