diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/mips/x-osfrose | 2 | ||||
-rw-r--r-- | gcc/halfpic.c | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/gcc/config/mips/x-osfrose b/gcc/config/mips/x-osfrose index 48dc9939794..ac6d660e733 100644 --- a/gcc/config/mips/x-osfrose +++ b/gcc/config/mips/x-osfrose @@ -6,7 +6,7 @@ BUILD = CC = $(OLDCC) -CLIB = -lld +CLIB = -lbsd -lld X_CFLAGS = $(DEB_OPT) $(MSTATS) $(SHLIB) X_CFLAGS_NODEBUG = $(NO_DEBUG) $(MSTATS) $(OPT) $(PROFILE) $(SHLIB) $(XCFLAGS) CPP_ABORT = # -Dabort=fancy_abort diff --git a/gcc/halfpic.c b/gcc/halfpic.c index d78d1b028e8..649bdbb776e 100644 --- a/gcc/halfpic.c +++ b/gcc/halfpic.c @@ -73,11 +73,12 @@ half_pic_address_p (addr) switch (GET_CODE (addr)) { case CONST: - rtx offset = const0_rtx; - addr = eliminate_constant_term (addr, &offset); - if (GET_CODE (addr) != SYMBOL_REF) - return FALSE; - + { + rtx offset = const0_rtx; + addr = eliminate_constant_term (addr, &offset); + if (GET_CODE (addr) != SYMBOL_REF) + return FALSE; + } /* fall through */ case SYMBOL_REF: |