commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] MIG branch, master, updated. v1.4-14-g44753cf


From: Justus Winter
Subject: [SCM] MIG branch, master, updated. v1.4-14-g44753cf
Date: Sun, 15 Feb 2015 16:08:57 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MIG".

The branch, master has been updated
       via  44753cf5a30b9324d2c4ac9021843674bde5cc3c (commit)
      from  f573a84faeb902f74b5f4b6fc1a67e7579012a9e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 44753cf5a30b9324d2c4ac9021843674bde5cc3c
Author: Justus Winter <address@hidden>
Date:   Sun Feb 15 13:29:30 2015 +0100

    Do not generate code dereferencing type-punned pointers
    
    For variable-length arrays, up to 2048 bytes are transmitted inline.
    If the array is larger, the data is transmitted out-of-line, and a
    pointer to a vm_allocated region is stored at the beginning of the
    array.
    
    Previously, the generated code casted the field.  Use a union instead.
    
    This fixes the gcc warning `dereferencing type-punned pointer will
    break strict-aliasing rules [-Wstrict-aliasing]'.
    
    * global.c (OOLPostfix): New variable.
    * global.h (OOLPostfix): New declaration.
    * server.c (WriteServerCallArg): Avoid cast.
    (WriteDestroyArg): Likewise.
    (WritePackArgValue): Likewise.
    (WritePackArg): Likewise.
    * user.c (WriteExtractArgValue): Likewise.
    * utils.c (WriteFieldDeclPrim): Generate a union with an additional
    pointer field for variable-length arrays.

-----------------------------------------------------------------------

Summary of changes:
 global.c |    1 +
 global.h |    1 +
 server.c |   18 +++++++++---------
 user.c   |    9 +++++----
 utils.c  |    8 +++++++-
 5 files changed, 23 insertions(+), 14 deletions(-)


hooks/post-receive
-- 
MIG



reply via email to

[Prev in Thread] Current Thread [Next in Thread]