bug in gprofng

David Binderman dcb314@hotmail.com
Wed Sep 21 07:46:27 GMT 2022


Hello there Vladimir,

I just did a build of recent binutils with recent gcc. It said:

gprofng/src/collctrl.cc:763:12: warning: duplicated ‘if’ condition [-Wduplicated-cond]

Source code is

      if (synctrace_thresh < 0)
        *p++ = strdup ("calibrate");
      else if (synctrace_thresh < 0)
        *p++ = strdup ("all");

Suggest code rework.

Regards

David Binderman


More information about the Binutils mailing list