scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 8e0d9d84f4f62953f1b3f4e6db6342f7f44bffd9
parent f02dd2e8df49bc1d82e35dcd26f5b12d1293b422
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 23 Jun 2016 09:15:01 +0200

[cc1] Fix size of pointers in 64 bit architectures

The size of pointers was 2 bytes instead of being
8 bytes.

Diffstat:
Mcc1/arch/amd64-sysv/arch.c | 4++--
Mcc1/arch/qbe/arch.c | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 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 @@ -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,