diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/mangle.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/opt/operator1.C | 10 |
4 files changed, 20 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7809040..77d85a6 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-06-23 Jakub Jelinek <jakub@redhat.com> + + * mangle.c (hash_type): val is the TREE_LIST itself, not a pointer + to it. + 2003-06-21 Gabriel Dos Reis <gdr@integrable-solutions.net> PR c++/10784 diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index 2040ae9..e4c75b4 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -2597,7 +2597,7 @@ static GTY ((param_is (union tree_node))) htab_t conv_type_names; static hashval_t hash_type (const void *val) { - return htab_hash_pointer (TREE_PURPOSE (*((tree *) val))); + return htab_hash_pointer (TREE_PURPOSE ((tree) val)); } /* Compare VAL1 (a node in the table) with VAL2 (a TYPE). */ diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 099c830..985998a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-06-23 Jakub Jelinek <jakub@redhat.com> + + * g++.dg/opt/operator1.C: New test. + 2003-06-22 Roger Sayle <roger@eyesopen.com> * gcc.c-torture/execute/string-opt-16.c: New test case. diff --git a/gcc/testsuite/g++.dg/opt/operator1.C b/gcc/testsuite/g++.dg/opt/operator1.C new file mode 100644 index 0000000..9f286b9 --- /dev/null +++ b/gcc/testsuite/g++.dg/opt/operator1.C @@ -0,0 +1,10 @@ +// Tests whether g++ can handle large number of operators +// { dg-do compile } + +#define OP0(n) struct I##n { int i; }; operator I##n (); +#define OP1(n) OP0(n) +#define OP2(n) OP1(n##0) OP1(n##1) OP1(n##2) OP1(n##3) OP1(n##4) +#define OP3(n) OP2(n##0) OP2(n##1) OP2(n##2) OP2(n##3) OP2(n##4) +struct S { + OP3(0) OP3(1) OP3(2) OP3(3) OP3(4) OP3(5) +}; |