aboutsummaryrefslogtreecommitdiffstats
path: root/lcc/src/stab.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-04 01:21:34 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-04 01:21:34 +0000
commit45d6a88841f0db650d615522b1f6594ea72ceb7e (patch)
treedec4fac8ff8638b6a0d8749d52e66d0207eb161b /lcc/src/stab.c
parent6d9be1722b2221cae39b389ce218e93d73d99335 (diff)
downloadioquake3-aero-45d6a88841f0db650d615522b1f6594ea72ceb7e.tar.gz
ioquake3-aero-45d6a88841f0db650d615522b1f6594ea72ceb7e.zip
* Dewarninged the lcc and q3asm source
* Removed traditional target platforms from the lcc build. This might break building lcc on Windows using nmake. Submit patches or be quiet :p * Default target for lcc is now bytecode, so -Wf-target=bytecode is no longer needed on the lcc command line git-svn-id: svn://svn.icculus.org/quake3/trunk@132 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'lcc/src/stab.c')
-rw-r--r--lcc/src/stab.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/lcc/src/stab.c b/lcc/src/stab.c
index e1b52cf..e53604d 100644
--- a/lcc/src/stab.c
+++ b/lcc/src/stab.c
@@ -201,9 +201,7 @@ void stabblock(int brace, int lev, Symbol *p) {
if (brace == '{')
while (*p)
stabsym(*p++);
- if (IR == &sparcIR)
- print(".stabd 0x%x,0,%d\n", brace == '{' ? N_LBRAC : N_RBRAC, lev);
- else {
+ {
int lab = genlabel(1);
print(".stabn 0x%x,0,%d,%s%d-%s\n", brace == '{' ? N_LBRAC : N_RBRAC, lev,
stabprefix, lab, cfunc->x.name);
@@ -252,9 +250,7 @@ void stabline(Coordinate *cp) {
print("%s%d:\n", stabprefix, lab);
currentfile = cp->file;
}
- if (IR == &sparcIR)
- print(".stabd 0x%x,0,%d\n", N_SLINE, cp->y);
- else {
+ {
int lab = genlabel(1);
print(".stabn 0x%x,0,%d,%s%d-%s\n", N_SLINE, cp->y,
stabprefix, lab, cfunc->x.name);
@@ -280,7 +276,7 @@ void stabsym(Symbol p) {
sz = p->type->type->size;
} else
tc = dbxtype(p->type);
- if (p->sclass == AUTO && p->scope == GLOBAL || p->sclass == EXTERN) {
+ if ((p->sclass == AUTO && p->scope == GLOBAL) || p->sclass == EXTERN) {
print(".stabs \"%s:G", p->name);
code = N_GSYM;
} else if (p->sclass == STATIC) {