aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-13 12:00:29 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:06:07 -0700
commit6278edfccdbb3b6a0bbe9f066991e28564ea0884 (patch)
treed1f3c4fe4125a8899eb74c16e4b289b08c25cb04 /memops.c
parentMake sure to mark all registers that have already been allocated (diff)
downloadsparse-6278edfccdbb3b6a0bbe9f066991e28564ea0884.tar.gz
sparse-6278edfccdbb3b6a0bbe9f066991e28564ea0884.tar.bz2
sparse-6278edfccdbb3b6a0bbe9f066991e28564ea0884.zip
Split OP_SETVAL into OP_SETVAL (fp expressions and labels) and OP_SYMADDR
(symbol addresses). They are pretty different. Symbol addresses have special meaning during various phases, from symbol simplification to CSE.
Diffstat (limited to 'memops.c')
-rw-r--r--memops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memops.c b/memops.c
index 7246ca5..daae061 100644
--- a/memops.c
+++ b/memops.c
@@ -69,7 +69,7 @@ static inline int address_taken(pseudo_t pseudo)
pseudo_t *usep;
FOR_EACH_PTR(pseudo->users, usep) {
struct instruction *insn = container(usep, struct instruction, src);
- if (insn->bb && insn->opcode == OP_SETVAL)
+ if (insn->bb && insn->opcode == OP_SYMADDR)
return 1;
} END_FOR_EACH_PTR(usep);
return 0;