Eliminate redundant pst test.

This commit is contained in:
Andrew Cagney 2000-08-11 01:47:47 +00:00
parent 16f33e2966
commit c5f231f75b
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2000-08-10 Andrew Cagney <cagney@ops1.cygnus.com>
* partial-stab.h (DBX_READ): Eliminate redundant check for null
``pst''. Also fixes GCC warning.
2000-08-10 Andrew Cagney <cagney@ops1.cygnus.com>
* rs6000-nat.c (set_host_arch): Check value returned by

View file

@ -401,7 +401,7 @@ switch (CUR_SYMBOL_TYPE)
function relative stabs, or the address of the function's
end for old style stabs. */
valu = CUR_SYMBOL_VALUE + last_function_start;
if (pst && pst->texthigh == 0 || valu > pst->texthigh)
if (pst->texthigh == 0 || valu > pst->texthigh)
pst->texthigh = valu;
break;
}