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] |
@@ -219,10 +219,15 @@ cp_convert_to_pointer (tree type, tree expr, tsubs - expr = build_int_cst (type, 0); + expr = (TREE_SIDE_EFFECTS (expr) + ? build_nop (type, expr) + : build_int_cst (type, 0));
- pfn = build_c_cast (input_location, type, nullptr_node); + pfn = (TREE_SIDE_EFFECTS (pfn) + ? build_nop (type, pfn) + : build_c_cast (input_location, type, nullptr_node));
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |