diff options
author | Vladimir Mezentsev <vladimir.mezentsev@oracle.com> | 2024-04-29 20:21:50 -0700 |
---|---|---|
committer | Vladimir Mezentsev <vladimir.mezentsev@oracle.com> | 2024-05-17 18:28:03 -0700 |
commit | 663741df74f975ca00de84ba17d2cd8417bb1d03 (patch) | |
tree | 1e993a502721767427c1d5f5f34654216b1387eb /gprofng/src/collctrl.cc | |
parent | f74ba96bb085494a14438a35f1c8cba3e3c81d4e (diff) | |
download | binutils-663741df74f975ca00de84ba17d2cd8417bb1d03.zip binutils-663741df74f975ca00de84ba17d2cd8417bb1d03.tar.gz binutils-663741df74f975ca00de84ba17d2cd8417bb1d03.tar.bz2 |
gprofng: remove old interface with libcpc
interface with libcpc was used on Solaris.
gprofng doesn't support profiling on Solaris.
I removed this old code and other unused macros and variables.
gprofng/ChangeLog
2024-04-29 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
PR gprofng/31123
* common/hwcdrv.c: remove old interface with libcpc.
* common/hwcdrv.h: Likewise.
* common/hwcentry.h: Likewise.
* common/hwcfuncs.c: Likewise.
* common/hwcfuncs.h: Likewise.
* common/hwctable.c: Likewise.
* src/Dbe.cc: Likewise.
* src/collctrl.cc: Likewise.
Diffstat (limited to 'gprofng/src/collctrl.cc')
-rw-r--r-- | gprofng/src/collctrl.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gprofng/src/collctrl.cc b/gprofng/src/collctrl.cc index ebf888c..7d2b23c 100644 --- a/gprofng/src/collctrl.cc +++ b/gprofng/src/collctrl.cc @@ -1361,20 +1361,6 @@ Coll_Ctrl::hwcentry_dup (Hwcentry *hnew, Hwcentry *_hwc) hnew->short_desc = strdup (_hwc->short_desc); else hnew->short_desc = NULL; - if (_hwc->reg_list != NULL) - { - hnew->reg_list = (regno_t*) malloc (sizeof (regno_t*) * MAX_PICS); - // poor way of dealing with malloc failure - if (hnew->reg_list) - { - for (int i = 0; i < MAX_PICS; i++) - { - hnew->reg_list[i] = _hwc->reg_list[i]; - if (hnew->reg_list[i] == REGNO_ANY) - break; - } - } - } } // Routine to initialize the HWC tables, set up the default experiment, etc. |