[Top][All Lists]

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

Re: Bison 3.6.92 released [beta]

From: Dennis Clarke
Subject: Re: Bison 3.6.92 released [beta]
Date: Sun, 19 Jul 2020 15:35:12 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Thunderbird/77.0

> Wow...  Thanks *a lot* for catching this.  sizeof (char*) is 8 on all
> the machines I ran this beta against...

It is just a 32-bit situation :

C_mars$ cat foo.c

#define _XOPEN_SOURCE 600

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv)

    printf("sizeof(char *) = %i\n", sizeof(char *));

    return EXIT_SUCCESS;


C_mars$ uname -a
Linux mars 5.7.0-1-686 #1 SMP Debian 5.7.6-1 (2020-06-24) i686 GNU/Linux

C_mars$ echo $CC

C_mars$ echo $CFLAGS
-std=iso9899:1999 -m32 -g -O0 -pedantic -pedantic-errors -Wall
-march=i686 -mtune=i686 -fno-builtin -malign-double -mpc80

C_mars$ echo $CPPFLAGS

C_mars$ $CC $CFLAGS $CPPFLAGS -o foo foo.c

C_mars$ ./foo
sizeof(char *) = 4


reply via email to

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