[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inttypes.h error for Bison
From: |
Joel E. Denny |
Subject: |
Re: inttypes.h error for Bison |
Date: |
Sun, 1 Jul 2007 20:58:23 -0400 (EDT) |
On Sun, 1 Jul 2007, James Youngman wrote:
> Thanks for the detailed bug report; what are the values of these C
> proprocessor macros on your system when you use the same set of
> compiler options as you were using to build Bison?
>
> INT_MIN
> INT_MAX
> INT32_MIN
> INT32_MAX
I created tmp.c:
---------------------------
#include <inttypes.h>
INT_MIN
INT_MAX
INT32_MIN
INT32_MAX
---------------------------
Using the same compiler options as for building Bison:
---------------------------
% gcc -std=gnu99 -I. -I. -I../lib -I../lib \
-Wall -Wextra -Wno-sign-compare -Wcast-align -Wcast-qual -Wformat \
-Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wmissing-declarations \
-Wmissing-prototypes -Wshadow -Wstrict-prototypes -Werror -E tmp.c \
| tail -4
(-2147483647 - 1)
2147483647
(~ 2147483647)
2147483647
---------------------------
And now compiling as for the C++ test cases:
---------------------------
% g++ -g \
-Wall -Wextra -Wno-sign-compare -Wcast-align -Wcast-qual -Wformat \
-Wpointer-arith -Wwrite-strings -Werror -I/home/jdenny/bison/lib \
-E tmp.c | tail -4
(-2147483647 - 1)
2147483647
INT32_MIN
INT32_MAX
---------------------------
- inttypes.h error for Bison, Joel E. Denny, 2007/07/01
- Re: inttypes.h error for Bison, James Youngman, 2007/07/01
- Re: inttypes.h error for Bison,
Joel E. Denny <=
- Re: inttypes.h error for Bison, Bruno Haible, 2007/07/01
- Re: inttypes.h error for Bison, Joel E. Denny, 2007/07/01
- Re: inttypes.h error for Bison, Bruno Haible, 2007/07/01
- Re: inttypes.h error for Bison, Joel E. Denny, 2007/07/01
- Re: inttypes.h error for Bison, Bruno Haible, 2007/07/01
- Re: inttypes.h error for Bison, Joel E. Denny, 2007/07/02
- Re: inttypes.h error for Bison, Paul Eggert, 2007/07/02
- Re: inttypes.h error for Bison, Bruno Haible, 2007/07/02
- Re: inttypes.h error for Bison, Joel E. Denny, 2007/07/02
- Re: inttypes.h error for Bison, Bruno Haible, 2007/07/02