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] |
On Fri, Oct 30, 2009 at 7:45 PM, Jason Merrill<jason@redhat.com> wrote:On 10/28/2009 03:02 PM, Jason Merrill wrote:
I noticed that the call to build_string was unnecessarily adding 1 to the length argument for build_string.
Reverted, the 1 wasn't so unnecessary after all.
I think it was unnecessary. build_string allocates space for the terminating '\0' already, so build_string (strlen (str), str) is the correct way of building a STRING_CST.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |