diff options
| author | Thomas Preud'homme <thomas.preudhomme@celest.fr> | 2011-05-16 14:15:32 +0200 |
|---|---|---|
| committer | Thomas Preud'homme <thomas.preudhomme@celest.fr> | 2011-05-16 14:15:32 +0200 |
| commit | ee06ef9dd394f26b11fef078f07c635a02fd95d6 (patch) | |
| tree | ff9839a42156909393bd121ade708221358377e7 /tccgen.c | |
| parent | db9d5f0fa4dc65bbf869ee4f98f53eafbab6059f (diff) | |
| download | tinycc-ee06ef9dd394f26b11fef078f07c635a02fd95d6.tar.gz tinycc-ee06ef9dd394f26b11fef078f07c635a02fd95d6.tar.bz2 | |
Remove unused variables
Remove unused local variables and declare them conditionally when they
are used only on some architectures.
Diffstat (limited to 'tccgen.c')
| -rw-r--r-- | tccgen.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -647,7 +647,10 @@ static void gbound(void) register value (such as structures). */ ST_FUNC int gv(int rc) { - int r, rc2, bit_pos, bit_size, size, align, i; + int r, bit_pos, bit_size, size, align, i; +#ifndef TCC_TARGET_X86_64 + int rc2; +#endif /* NOTE: get_reg can modify vstack[] */ if (vtop->type.t & VT_BITFIELD) { @@ -718,9 +721,11 @@ ST_FUNC int gv(int rc) #endif r = vtop->r & VT_VALMASK; +#ifndef TCC_TARGET_X86_64 rc2 = RC_INT; if (rc == RC_IRET) rc2 = RC_LRET; +#endif /* need to reload if: - constant - lvalue (need to dereference pointer) |
