This is the mail archive of the gcc-bugs@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]

[Bug target/79671] [7 Regression] mapnik miscompilation on armv7hl since r235622


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

--- Comment #43 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Would something like this also work?

  union function_buffer
  {
    [...]
    mutable char data;

    function_buffer() {}
    function_buffer(const function_buffer &other)
    {
       __builtin_memcpy(this, &other, sizeof(*this));
    }
    function_buffer& operator = (const function_buffer &other)
    {
       __builtin_memcpy(this, &other, sizeof(*this));
       return *this;
    }
  };

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]