* ecoff.c (ecoff_frob_symbol): Remove casts from bfd_get_gp_size.

(ecoff_build_symbols): Likewise.
	* read.c (s_lcomm_internal): Fix signed/unsigned warning.
This commit is contained in:
Alan Modra 2001-08-17 16:01:49 +00:00
parent c0846b2397
commit 23fe39dfb9
3 changed files with 15 additions and 9 deletions

View file

@ -1,3 +1,9 @@
2001-08-17 Alan Modra <amodra@bigpond.net.au>
* ecoff.c (ecoff_frob_symbol): Remove casts from bfd_get_gp_size.
(ecoff_build_symbols): Likewise.
* read.c (s_lcomm_internal): Fix signed/unsigned warning.
2001-08-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
* config/tc-mips.c (mips_elf_final_processing): Set elf header flags

View file

@ -3616,7 +3616,7 @@ ecoff_frob_symbol (sym)
{
if (S_IS_COMMON (sym)
&& S_GET_VALUE (sym) > 0
&& S_GET_VALUE (sym) <= (unsigned) bfd_get_gp_size (stdoutput))
&& S_GET_VALUE (sym) <= bfd_get_gp_size (stdoutput))
{
static asection scom_section;
static asymbol scom_symbol;
@ -4081,7 +4081,7 @@ ecoff_build_symbols (backend, buf, bufend, offset)
s = symbol_get_obj (as_sym)->ecoff_extern_size;
if (s == 0
|| s > (unsigned) bfd_get_gp_size (stdoutput))
|| s > bfd_get_gp_size (stdoutput))
sc = sc_Undefined;
else
{
@ -4096,7 +4096,7 @@ ecoff_build_symbols (backend, buf, bufend, offset)
{
if (S_GET_VALUE (as_sym) > 0
&& (S_GET_VALUE (as_sym)
<= (unsigned) bfd_get_gp_size (stdoutput)))
<= bfd_get_gp_size (stdoutput)))
sc = sc_SCommon;
else
sc = sc_Common;

View file

@ -1988,7 +1988,7 @@ s_lcomm_internal (needs_align, bytes_p)
|| OUTPUT_FLAVOR == bfd_target_elf_flavour)
{
/* For MIPS and Alpha ECOFF or ELF, small objects are put in .sbss. */
if (temp <= bfd_get_gp_size (stdoutput))
if ((unsigned) temp <= bfd_get_gp_size (stdoutput))
{
bss_seg = subseg_new (".sbss", 1);
seg_info (bss_seg)->bss = 1;