[hackers] [scc] [cc1] Fix size of pointers in 64 bit architectures || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Thu, 23 Jun 2016 09:16:02 +0200 (CEST)

commit 8e0d9d84f4f62953f1b3f4e6db6342f7f44bffd9
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Jun 23 09:15:01 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Jun 23 09:15:01 2016 +0200

    [cc1] Fix size of pointers in 64 bit architectures
    
    The size of pointers was 2 bytes instead of being
    8 bytes.

diff --git a/cc1/arch/amd64-sysv/arch.c b/cc1/arch/amd64-sysv/arch.c
index 552824b..7506373 100644
--- a/cc1/arch/amd64-sysv/arch.c
+++ b/cc1/arch/amd64-sysv/arch.c
_AT_@ -23,8 +23,8 @@ static Type types[] = {
                 .op = PTR,
                 .letter = L_POINTER,
                 .prop = TPRINTED | TDEFINED,
- .size = 2,
- .align = 2,
+ .size = 8,
+ .align = 8,
         },
         { /* 2 = booltype */
                 .op = INT,
diff --git a/cc1/arch/qbe/arch.c b/cc1/arch/qbe/arch.c
index 09bbc1c..201ed3a 100644
--- a/cc1/arch/qbe/arch.c
+++ b/cc1/arch/qbe/arch.c
_AT_@ -23,8 +23,8 @@ static Type types[] = {
                 .op = PTR,
                 .letter = L_POINTER,
                 .prop = TDEFINED | TPRINTED,
- .size = 2,
- .align = 2,
+ .size = 8,
+ .align = 8,
         },
         { /* 2 = booltype */
                 .op = INT,
Received on Thu Jun 23 2016 - 09:16:02 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 23 2016 - 09:24:19 CEST