aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-06-16 21:41:10 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-06-16 21:41:10 +0000
commitfad205ffba97267072c69704481aac372dd62f16 (patch)
tree5aa9e7cef82d21751e0893c56bdaeadef5722525 /gcc/cp
parent4ff58371763d8dfb211e776e22e74a51fa3eb909 (diff)
downloadgcc-fad205ffba97267072c69704481aac372dd62f16.zip
gcc-fad205ffba97267072c69704481aac372dd62f16.tar.gz
gcc-fad205ffba97267072c69704481aac372dd62f16.tar.bz2
decl.c, [...]: Don't use the PTR macro.
cp: * cp/decl.c, cp/pt.c, cp/search.c, cp/tree.c: Don't use the PTR macro. gcc: * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c, config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c, dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c, function.c, gcc.c, genoutput.c, gensupport.c, global.c, haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c, loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c, read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c, stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use the PTR macro. From-SVN: r68043
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl.c2
-rw-r--r--gcc/cp/pt.c6
-rw-r--r--gcc/cp/search.c2
-rw-r--r--gcc/cp/tree.c4
5 files changed, 12 insertions, 7 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 6f81c80..663c337 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * cp/decl.c, cp/pt.c, cp/search.c, cp/tree.c: Don't use the PTR
+ macro.
+
2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
* tree.c: Convert to ISO C.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 454e1ef..d76133a 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -5384,7 +5384,7 @@ build_typename_type (tree context, tree name, tree fullname)
{
tree t;
tree d;
- PTR *e;
+ void **e;
if (typename_htab == NULL)
{
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 926b26d..67e0eb0 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -2433,10 +2433,10 @@ process_partial_specialization (decl)
or some such would have been OK. */
tpd.level = TMPL_PARMS_DEPTH (current_template_parms);
tpd.parms = alloca (sizeof (int) * ntparms);
- memset ((PTR) tpd.parms, 0, sizeof (int) * ntparms);
+ memset (tpd.parms, 0, sizeof (int) * ntparms);
tpd.arg_uses_template_parms = alloca (sizeof (int) * nargs);
- memset ((PTR) tpd.arg_uses_template_parms, 0, sizeof (int) * nargs);
+ memset (tpd.arg_uses_template_parms, 0, sizeof (int) * nargs);
for (i = 0; i < nargs; ++i)
{
tpd.current_arg = i;
@@ -2521,7 +2521,7 @@ process_partial_specialization (decl)
template, not in the specialization. */
tpd2.current_arg = i;
tpd2.arg_uses_template_parms[i] = 0;
- memset ((PTR) tpd2.parms, 0, sizeof (int) * nargs);
+ memset (tpd2.parms, 0, sizeof (int) * nargs);
for_each_template_parm (type,
&mark_template_parm,
&tpd2,
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index 7bab0b1..0cc769e 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -1262,7 +1262,7 @@ lookup_member (tree xbasetype, tree name, int protect, bool want_type)
n_calls_lookup_field++;
#endif /* GATHER_STATISTICS */
- memset ((PTR) &lfi, 0, sizeof (lfi));
+ memset (&lfi, 0, sizeof (lfi));
lfi.type = type;
lfi.name = name;
lfi.want_type = want_type;
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index 64aa2db..92c1ab3 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -852,7 +852,7 @@ tree
hash_tree_cons (tree purpose, tree value, tree chain)
{
int hashcode = 0;
- PTR* slot;
+ void **slot;
struct list_proxy proxy;
/* Hash the list node. */
@@ -867,7 +867,7 @@ hash_tree_cons (tree purpose, tree value, tree chain)
INSERT);
/* If not, create a new node. */
if (!*slot)
- *slot = (PTR) tree_cons (purpose, value, chain);
+ *slot = tree_cons (purpose, value, chain);
return *slot;
}