plan9fox/sys/src/cmd/cc
Ori Bernstein 3ba1d83d20 cc: promote integer constants according to c99 spec.
C99 integer constants with no type suffix promote differently
depending on the way that they're written: hex and oct consts
promote as int => uint => long => ulong => vlong => uvlong.
Decimal constants are always signed.

We used to promote all values to uint on overflow, and never
went wider. This change fixes that, and adds a warning when
a decimal constant that would have been promoted to uint in
the past gets promoted to int.
2020-08-08 11:39:25 -07:00
..
acid.c
bits.c
c99
cc.h cc: simplify macexpand() and off-by-one error 2020-04-25 22:16:44 +02:00
cc.y
com.c fix ccom idempotency 2020-03-15 15:08:04 -07:00
com64.c
compat cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
compat.c cc, ?[acl]: fix gethunk() and move common memory allocator code to cc/compat 2020-04-11 05:03:49 +02:00
compat.h cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
dcl.c
dpchk.c
funct.c cc: get rid of sprint() and temporary buffer for type conversion fuction 2020-04-19 20:44:19 +02:00
lex.c cc: promote integer constants according to c99 spec. 2020-08-08 11:39:25 -07:00
lexbody cc: simplify macexpand() and off-by-one error 2020-04-25 22:16:44 +02:00
mac.c cc, ?[acl]: fix gethunk() and move common memory allocator code to cc/compat 2020-04-11 05:03:49 +02:00
macbody cc: dont export gethunk(), hunk, nhunk and thunk 2020-05-12 23:18:48 +02:00
mkfile cc, ?[acl]: fix gethunk() and move common memory allocator code to cc/compat 2020-04-11 05:03:49 +02:00
omachcap.c
pgen.c
pickle.c
pswt.c
scon.c
sub.c