Ivan Vucica wrote:

> In that sad case, I'll leave the code as it is.
> 

Now that's silly.  You've been told the compiler is not
at fault here.  Why don't you just do something like:

        uint8_t* buffer = (uint8_t*)msg.getBuffer();

        int read_post = 0;
        while (read_pos < messageLength) {
                uint32_t v0 = read32(buffer);
                uint32_t v1 = read32(buffer + 4);

                (...)

                write32(buffer, v0);
                write32(buffer + 4, v1);
                read_pos += 8;
        }

... and write read32/write32 as macros or inline functions that
just copy and just a few bytes:

uin32_t read32(uint8_t*);
void write32(uint8_t*, uin32_t);

Could you at least remove the comment
mentioning the (non-existing) compiler bug ?

-- 
Pedro Alves


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to