diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-17 08:26:33 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-17 08:26:33 +0000 |
commit | 8c3046881134b6f302c9153e02d3ce52ac94a110 (patch) | |
tree | 5c3602924b7b22d249bf895c0f919338d22ffe17 | |
parent | caeef7d92e5174f6df8236e6dc19221a8f1e09bb (diff) | |
download | gcc-8c3046881134b6f302c9153e02d3ce52ac94a110.tar.gz |
Zap some warnings in target files:
* frame.c: Include stdlib.h and unistd.h to possibly get various
function prototypes. The fixproto script guarantees these header
files exist on the target system.
* libgcc2.c: Likewise.
* gthr-single.h (__gthread_mutex_lock, __gthread_mutex_trylock,
__gthread_mutex_unlock): Add __attribute__ ((__unused__)) to the
function parameters.
* libgcc2.c (__udiv_w_sdiv): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19261 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/frame.c | 5 | ||||
-rw-r--r-- | gcc/gthr-single.h | 6 | ||||
-rw-r--r-- | gcc/libgcc2.c | 10 |
4 files changed, 29 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c49b4e4079b..5b5df3903fe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +Fri Apr 17 11:21:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * frame.c: Include stdlib.h and unistd.h to possibly get various + function prototypes. The fixproto script guarantees these header + files exist on the target system. + * libgcc2.c: Likewise. + + * gthr-single.h (__gthread_mutex_lock, __gthread_mutex_trylock, + __gthread_mutex_unlock): Add __attribute__ ((__unused__)) to the + function parameters. + * libgcc2.c (__udiv_w_sdiv): Likewise. + Thu Apr 16 22:41:02 1998 Jeffrey A Law (law@cygnus.com) * varasm.c (asm_output_bss): Add prototype. diff --git a/gcc/frame.c b/gcc/frame.c index 4c387210c15..6a81e41c2e2 100644 --- a/gcc/frame.c +++ b/gcc/frame.c @@ -32,6 +32,11 @@ Boston, MA 02111-1307, USA. */ do not apply. */ #include "tconfig.h" + +/* fixproto guarantees these system headers exist. */ +#include <stdlib.h> +#include <unistd.h> + #include "defaults.h" #ifdef DWARF2_UNWIND_INFO diff --git a/gcc/gthr-single.h b/gcc/gthr-single.h index 72edfc35285..f8dfbff4e64 100644 --- a/gcc/gthr-single.h +++ b/gcc/gthr-single.h @@ -42,19 +42,19 @@ __gthread_active_p () } static inline int -__gthread_mutex_lock (__gthread_mutex_t *mutex) +__gthread_mutex_lock (__gthread_mutex_t *mutex __attribute__ ((__unused__))) { return 0; } static inline int -__gthread_mutex_trylock (__gthread_mutex_t *mutex) +__gthread_mutex_trylock (__gthread_mutex_t *mutex __attribute__ ((__unused__))) { return 0; } static inline int -__gthread_mutex_unlock (__gthread_mutex_t *mutex) +__gthread_mutex_unlock (__gthread_mutex_t *mutex __attribute__ ((__unused__))) { return 0; } diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index dad2dca2101..690d6bf855c 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -31,6 +31,11 @@ Boston, MA 02111-1307, USA. */ do not apply. */ #include "tconfig.h" + +/* fixproto guarantees these system headers exist. */ +#include <stdlib.h> +#include <unistd.h> + #include "machmode.h" #include "defaults.h" #ifndef L_trampoline @@ -391,7 +396,10 @@ __udiv_w_sdiv (USItype *rp, USItype a1, USItype a0, USItype d) #else /* If sdiv_qrnnd doesn't exist, define dummy __udiv_w_sdiv. */ USItype -__udiv_w_sdiv (USItype *rp, USItype a1, USItype a0, USItype d) +__udiv_w_sdiv (USItype *rp __attribute__ ((__unused__)), + USItype a1 __attribute__ ((__unused__)), + USItype a0 __attribute__ ((__unused__)), + USItype d __attribute__ ((__unused__))) { return 0; } |