diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-04-23 05:12:57 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-04-23 05:12:57 +0200 |
commit | c1ff805e236a818eb530ac68236c506448377419 (patch) | |
tree | 0a68327d7a436765bafb6800597eeec2648bac8d /sys/src/lib9p/mem.c | |
parent | 7f0728b7f446a77b8606ed3dffd48deb48697384 (diff) |
cc: fix non constant pointer initializer for other compilers than 8c/6c
i made a mistake here as this change breaks the arm and mips compilers
which lack an optimiation in xcom() that folds constant pointer arithmetic
into the offset. on arm, the a node is a complex expression with op OADD of
type TIND but the test rejected the (valid) pointer arithmetic.
instead, we now test for the operations which cannot be constant instead
of using the type as a proxy.
Diffstat (limited to 'sys/src/lib9p/mem.c')
0 files changed, 0 insertions, 0 deletions