https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78257

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot 
gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> Confirmed.  Note handling the terminating nul is likely some off-by-one
> error somewhere.

Yes, I'm having patch for that, that was trivial to fix.

> 
> Handling arrays of integers (arrays in general) is harder as we do not store
> the constructors in target representation (same for strings written as
> { 'a', 'b', '\0' } btw.).  One can't use the host library routines to perform
> the folding but has to compare two CONSTRUCTORs elementwise (they are at
> least
> sorted).

That would be harder, I'm wondering Richi how would it be difficult to
transform a ctor data to a binary blob we can use for memcmp, memchr, etc. ?
Element wise comparison may be doable, however I'm wondering how usefull the
job would be?

Reply via email to