diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-02 23:48:24 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-02 23:48:24 +0000 |
commit | 26106956ef6123257239c131b2b57c004fb21313 (patch) | |
tree | dd337e98138e2da58b3e49d8165131ab88d7a068 /gcc | |
parent | 93e9a106ded2a9bc86fd48960edcda36f6047dc2 (diff) | |
download | gcc-26106956ef6123257239c131b2b57c004fb21313.tar.gz |
* ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63704 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ggc-common.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bdb2192f5b1..4b7b239ec4b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid + warnings. + 2003-03-02 Richard Henderson <rth@redhat.com> * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test. diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 5b0e330ecfd..a6b7ea3aa4b 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -640,19 +640,19 @@ ggc_rlimit_bound (limit) struct rlimit rlim; # ifdef RLIMIT_RSS if (getrlimit (RLIMIT_RSS, &rlim) == 0 - && rlim.rlim_cur != RLIM_INFINITY + && rlim.rlim_cur != (rlim_t) RLIM_INFINITY && rlim.rlim_cur < limit) limit = rlim.rlim_cur; # endif # ifdef RLIMIT_DATA if (getrlimit (RLIMIT_DATA, &rlim) == 0 - && rlim.rlim_cur != RLIM_INFINITY + && rlim.rlim_cur != (rlim_t) RLIM_INFINITY && rlim.rlim_cur < limit) limit = rlim.rlim_cur; # endif # ifdef RLIMIT_AS if (getrlimit (RLIMIT_AS, &rlim) == 0 - && rlim.rlim_cur != RLIM_INFINITY + && rlim.rlim_cur != (rlim_t) RLIM_INFINITY && rlim.rlim_cur < limit) limit = rlim.rlim_cur; # endif |