aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-05-01 10:06:15 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-05-01 10:06:31 -0700
commite10cfd063328872efa721b4a08b9d52486fb5878 (patch)
tree1b0483a697333eb1085f14797b38c33dd7aa2904 /gold/testsuite
parentde6d6067f59bdcd97ea5e5b72ca3161d4448493e (diff)
downloadgdb-e10cfd063328872efa721b4a08b9d52486fb5878.zip
gdb-e10cfd063328872efa721b4a08b9d52486fb5878.tar.gz
gdb-e10cfd063328872efa721b4a08b9d52486fb5878.tar.bz2
gold: Make Ordering::operator() even more complex
GCC 9 generates the same function size for Ordering::operator() in odr_violation1.cc and odr_violation2.cc on x32: 134: 00000000 31 FUNC WEAK DEFAULT 64 _ZN8OrderingclEii 40: 00000000 31 FUNC GLOBAL DEFAULT 10 _ZN8OrderingclEii This patch makes Ordering::operator() even more complex 134: 00000000 31 FUNC WEAK DEFAULT 64 _ZN8OrderingclEii 42: 00000000 35 FUNC GLOBAL DEFAULT 11 _ZN8OrderingclEii * testsuite/odr_violation2.cc (Ordering::operator()): Make expression even more complex.
Diffstat (limited to 'gold/testsuite')
-rw-r--r--gold/testsuite/odr_violation2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/testsuite/odr_violation2.cc b/gold/testsuite/odr_violation2.cc
index aa9868f..35dd454 100644
--- a/gold/testsuite/odr_violation2.cc
+++ b/gold/testsuite/odr_violation2.cc
@@ -12,7 +12,7 @@ class Ordering {
bool Ordering::operator()(int a, int b) {
// Optimization makes this operator() a different size than the one
// in odr_violation1.cc.
- return a + 12345 > b / 67;
+ return (a * 30 + b + 12345) > b / 67;
}
void SortDescending(int array[], int size) {