This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix -fmerge-all-constants
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 19 Jun 2006 07:24:06 -0700
- Subject: Re: [PATCH] Fix -fmerge-all-constants
- References: <20060619111455.GC3115@devserv.devel.redhat.com>
On Mon, Jun 19, 2006 at 07:14:55AM -0400, Jakub Jelinek wrote:
> * varasm.c (mergeable_string_section): Check for embedded NULs and
> NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
> rather than TREE_STRING_LENGTH bytes.
>
> * gcc.dg/merge-all-constants-1.c: New test.
Ok by me.
r~