aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard>2004-10-27 21:29:50 +0000
committerbellard <bellard>2004-10-27 21:29:50 +0000
commit32ba2eadf6f2c47bb3682d57a1b1b87bda933eb7 (patch)
treee367a9982be29122b2f0f036ecaa64aaa99c39b3
parent3e74b91de606f393629bd7e97a2fdf0153ea3e6d (diff)
downloadtinycc-32ba2eadf6f2c47bb3682d57a1b1b87bda933eb7.tar.gz
tinycc-32ba2eadf6f2c47bb3682d57a1b1b87bda933eb7.tar.bz2
compile fix
-rw-r--r--tcccoff.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tcccoff.c b/tcccoff.c
index ecc91ed..6739797 100644
--- a/tcccoff.c
+++ b/tcccoff.c
@@ -82,6 +82,7 @@ int tcc_output_coff(TCCState *s1, FILE *f)
int CoffTextSectionNo, coff_nb_syms;
FILHDR file_hdr; /* FILE HEADER STRUCTURE */
Section *stext, *sdata, *sbss;
+ int i, NSectionsToOutput = 0;
stext = FindSection(s1, ".text");
sdata = FindSection(s1, ".data");
@@ -108,8 +109,6 @@ int tcc_output_coff(TCCState *s1, FILE *f)
// create all the section headers
- int i, NSectionsToOutput = 0;
-
file_pointer = FILHSZ + sizeof(AOUTHDR);
CoffTextSectionNo = -1;