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 | |
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')
-rw-r--r-- | gprofng/src/Dbe.cc | 5 | ||||
-rw-r--r-- | gprofng/src/collctrl.cc | 14 |
2 files changed, 1 insertions, 18 deletions
diff --git a/gprofng/src/Dbe.cc b/gprofng/src/Dbe.cc index 91a5aa5..95daa72 100644 --- a/gprofng/src/Dbe.cc +++ b/gprofng/src/Dbe.cc @@ -7121,10 +7121,7 @@ dbeGetHwcs (Hwcentry **hwcs) { Hwcentry *ctr = hwcs[i]; Vector<int> *registers = new Vector<int>(MAX_PICS); - regno_t *reglist = ctr->reg_list; - for (int k = 0; !REG_LIST_EOL (reglist[k]) && k < MAX_PICS; k++) - registers->store (k, reglist[k]); - + registers->store (0, REGNO_ANY); i18n->store (i, dbe_strdup (hwc_i18n_metric (ctr))); name->store (i, dbe_strdup (ctr->name)); int_name->store (i, dbe_strdup (ctr->int_name)); 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. |