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] |
While working on another issue, I noticed that cp_build_indirect_ref was still folding away *&, which is incorrect because (int)*&var is an odr-use of var, whereas (int)var may not be. However, many of the existing users of cp_build_indirect_ref don't care about that distinction, and indeed rely on the folding, so I've introduce cp_build_fold_indirect_ref for such users. This function replaces most of the calls to cp_build_indirect_ref with a RO_NULL argument; the others are corrected to use the right RO_ argument instead. This patch revealed a typo bug in cp-ubsan, which I've also fixed. Tested x86_64-pc-linux-gnu, applying to trunk.
Attachment:
ind-addr.diff
Description: Text document
Attachment:
ind-addr-ubsan.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |