commit 8e0d9d84f4f62953f1b3f4e6db6342f7f44bffd9
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Thu Jun 23 09:15:01 2016 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
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
@@ -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
@@ -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,

Reply via email to