aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-08-06 01:49:04 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-08-06 01:49:04 +0000
commit3127105cd92865c0fc77ad74b0f10c87da18f744 (patch)
tree6a12dfe75d8aed5629632c71d70da23d0b6fce13 /shell
parent41dfb007739f43adaf22fcaaaccec5dea8967b40 (diff)
downloadbusybox-w32-3127105cd92865c0fc77ad74b0f10c87da18f744.tar.gz
busybox-w32-3127105cd92865c0fc77ad74b0f10c87da18f744.tar.bz2
busybox-w32-3127105cd92865c0fc77ad74b0f10c87da18f744.zip
Patch from Tito to fix warnings about redifined functionions barrier and likely.
git-svn-id: svn://busybox.net/trunk/busybox@9064 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/shell/ash.c b/shell/ash.c
index ee3bfb42f..6d1dc603c 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -212,24 +212,24 @@ static volatile sig_atomic_t pendingsigs;
212 * more fun than worrying about efficiency and portability. :-)) 212 * more fun than worrying about efficiency and portability. :-))
213 */ 213 */
214 214
215#define barrier() ({ __asm__ __volatile__ ("": : :"memory"); }) 215#define xbarrier() ({ __asm__ __volatile__ ("": : :"memory"); })
216#define INTOFF \ 216#define INTOFF \
217 ({ \ 217 ({ \
218 suppressint++; \ 218 suppressint++; \
219 barrier(); \ 219 xbarrier(); \
220 0; \ 220 0; \
221 }) 221 })
222#define SAVEINT(v) ((v) = suppressint) 222#define SAVEINT(v) ((v) = suppressint)
223#define RESTOREINT(v) \ 223#define RESTOREINT(v) \
224 ({ \ 224 ({ \
225 barrier(); \ 225 xbarrier(); \
226 if ((suppressint = (v)) == 0 && intpending) onint(); \ 226 if ((suppressint = (v)) == 0 && intpending) onint(); \
227 0; \ 227 0; \
228 }) 228 })
229#define EXSIGON() \ 229#define EXSIGON() \
230 ({ \ 230 ({ \
231 exsig++; \ 231 exsig++; \
232 barrier(); \ 232 xbarrier(); \
233 if (pendingsigs) \ 233 if (pendingsigs) \
234 exraise(EXSIG); \ 234 exraise(EXSIG); \
235 0; \ 235 0; \
@@ -263,13 +263,13 @@ static void forceinton(void)
263#else 263#else
264#define INTON \ 264#define INTON \
265 ({ \ 265 ({ \
266 barrier(); \ 266 xbarrier(); \
267 if (--suppressint == 0 && intpending) onint(); \ 267 if (--suppressint == 0 && intpending) onint(); \
268 0; \ 268 0; \
269 }) 269 })
270#define FORCEINTON \ 270#define FORCEINTON \
271 ({ \ 271 ({ \
272 barrier(); \ 272 xbarrier(); \
273 suppressint = 0; \ 273 suppressint = 0; \
274 if (intpending) onint(); \ 274 if (intpending) onint(); \
275 0; \ 275 0; \
@@ -624,7 +624,7 @@ static const char homestr[] = "HOME";
624#define __builtin_expect(x, expected_value) (x) 624#define __builtin_expect(x, expected_value) (x)
625#endif 625#endif
626 626
627#define likely(x) __builtin_expect((x),1) 627#define xlikely(x) __builtin_expect((x),1)
628 628
629 629
630#define TEOF 0 630#define TEOF 0
@@ -7084,7 +7084,7 @@ growjobtab(void)
7084 jq--; 7084 jq--;
7085#define joff(p) ((struct job *)((char *)(p) + l)) 7085#define joff(p) ((struct job *)((char *)(p) + l))
7086#define jmove(p) (p) = (void *)((char *)(p) + offset) 7086#define jmove(p) (p) = (void *)((char *)(p) + offset)
7087 if (likely(joff(jp)->ps == &jq->ps0)) 7087 if (xlikely(joff(jp)->ps == &jq->ps0))
7088 jmove(joff(jp)->ps); 7088 jmove(joff(jp)->ps);
7089 if (joff(jp)->prev_job) 7089 if (joff(jp)->prev_job)
7090 jmove(joff(jp)->prev_job); 7090 jmove(joff(jp)->prev_job);
@@ -11813,7 +11813,7 @@ dotrap(void)
11813 11813
11814 savestatus = exitstatus; 11814 savestatus = exitstatus;
11815 q = gotsig; 11815 q = gotsig;
11816 while (pendingsigs = 0, barrier(), (p = memchr(q, 1, NSIG - 1))) { 11816 while (pendingsigs = 0, xbarrier(), (p = memchr(q, 1, NSIG - 1))) {
11817 *p = 0; 11817 *p = 0;
11818 p = trap[p - q + 1]; 11818 p = trap[p - q + 1];
11819 if (!p) 11819 if (!p)