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] |
The problem here is that create_component_ref_by_pieces does not handle STRING_CST. Since STRING_CST is constant, it just can return that tree.
Committed as both obvious and pre-approved by Daniel after a bootstrap and test on x86_64-linux-gnu.
Thanks, Andrew Pinski
* tree-ssa-pre.c (create_component_ref_by_pieces): Handle STRING_CST.
* gcc.c-torture/compile/pr26781-1.c: New test. * gcc.c-torture/compile/pr26781-2.c: New test.
Attachment:
fixPRE.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |