[hackers] [scc] [cc1] Rearrange fields of struct type || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 6 Mar 2017 14:24:40 +0100 (CET)

commit 995a0fbf451fbaa189f000c809db92e885f2a512
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Mar 6 13:39:32 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Mar 6 13:39:32 2017 +0100

    [cc1] Rearrange fields of struct type
    
    There were some types that could be changed to consume less
    memory and with a better memory layout.

diff --git a/cc1/cc1.h b/cc1/cc1.h
index 26cd787..1b2d6a2 100644
--- a/cc1/cc1.h
+++ b/cc1/cc1.h
_AT_@ -302,12 +302,12 @@ struct keyword {
 
 struct type {
         unsigned char op; /* type builder operator */
- char ns; /* namespace for struct members */
+ unsigned char ns; /* namespace for struct members */
         short id; /* type id, used in dcls */
         char letter; /* letter of the type */
- unsigned int prop; /* type properties */
- unsigned long size; /* sizeof the type */
+ unsigned char prop; /* type properties */
         unsigned char align; /* align of the type */
+ unsigned long size; /* sizeof the type */
         Type *type; /* base type */
         Symbol *tag; /* symbol of the strug tag */
         union {
Received on Mon Mar 06 2017 - 14:24:40 CET

This archive was generated by hypermail 2.3.0 : Mon Mar 06 2017 - 14:36:32 CET