Thread (1 message) 1 message, 1 author, 2012-03-31

Re: [PATCH V2] dtc: Basic integer expressions

From: Jon Loeliger <hidden>
Date: 2012-03-31 14:24:12

Written by David Gibson [off-list ref]. Additions by me:
* Ported to ToT dtc.
* Renamed cell to integer throughout.
* Implemented value range checks.
* Allow L/UL/LL/ULL suffix on literals.
* Enabled the commented test.

Signed-off-by: Stephen Warren <redacted>
---
v2:
* s/cell/integer/ throughout.
* Allow signed-extended values to pass the overall cell range check.
* Allow L/UL/LL/ULL suffix on literals. This is purely for compatibility
  with C, and has no effect on dtc's processing.
* Enabled the 3 disabled tests.

I'm not sure if the literal suffix handling is hacky or not...
I get this too:

 CC tests/integer-expressions.o
cc1: warnings being treated as errors
tests/integer-expressions.c: In function 'main'
tests/integer-expressions.c:105: error: format  tests/integer-expressions.o
cc1: warnings being treated as errors
tests/integer-expressions.c:105: error: format '%ld' expects type 'long int', but argument 3 has type 'unsigned int'
make: *** [tests/integer-expressions.o] Error 1

$ gcc --version
gcc (Debian 4.4.5-8) 4.4.5

jdl
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help