aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2022-12-29 14:33:00 -0300
committerAlexandre Oliva <oliva@gnu.org>2022-12-29 14:39:47 -0300
commit3d40144cb4b19c2de4470b699e7bb3a6232ab425 (patch)
treecb01549022ea60616f763e725dcc7896bd0d0bdc /gcc/lto
parent6ec8079e0b7dc7c44a7001ffb20ca038362191d5 (diff)
downloadgcc-3d40144cb4b19c2de4470b699e7bb3a6232ab425.zip
gcc-3d40144cb4b19c2de4470b699e7bb3a6232ab425.tar.gz
gcc-3d40144cb4b19c2de4470b699e7bb3a6232ab425.tar.bz2
lto: drop dummy partition mapping
When adding a catch-all partition, we map NULL to it. That mapping is ineffective and unnecessary. Drop it. for gcc/lto/ChangeLog * lto-partition.cc (lto_1_to_1_map): Drop NULL partition mapping.
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/lto-partition.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/lto/lto-partition.cc b/gcc/lto/lto-partition.cc
index ebb9c3a..654d67f 100644
--- a/gcc/lto/lto-partition.cc
+++ b/gcc/lto/lto-partition.cc
@@ -333,7 +333,6 @@ lto_1_to_1_map (void)
else
{
partition = new_partition ("");
- pmap.put (NULL, partition);
npartitions++;
}