From 3d40144cb4b19c2de4470b699e7bb3a6232ab425 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Thu, 29 Dec 2022 14:33:00 -0300 Subject: [PATCH] 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. --- gcc/lto/lto-partition.cc | 1 - 1 file changed, 1 deletion(-) 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++; } -- 2.7.4