Eliminate redundant pst test.
authorAndrew Cagney <cagney@redhat.com>
Fri, 11 Aug 2000 01:47:47 +0000 (01:47 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 11 Aug 2000 01:47:47 +0000 (01:47 +0000)
gdb/ChangeLog
gdb/partial-stab.h

index e793492bcbffe09273b95c31fc9b1959e1ad3d29..da223618507faf68d9872b0cfbe6e2dff930d27c 100644 (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
index c07d9575e2d75ca6fa1f167f49ba02e9cff739b9..6691b75a0c5c60d8ad20466a8e953a3b8d9ab811 100644 (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;
       }
This page took 0.028135 seconds and 4 git commands to generate.