This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH REDUX: Robustify cp_fold_obj_type_ref() for ObjC++ use- PART I
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Ziemowit Laski <zlaski at apple dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 21 Sep 2004 22:58:14 -0700
- Subject: Re: PATCH REDUX: Robustify cp_fold_obj_type_ref() for ObjC++ use- PART I
- Organization: CodeSourcery, LLC
- References: <B9C0FA1A-0C30-11D9-8D1A-000393673036@apple.com>
Ziemowit Laski wrote:
+/* Fold an OBJ_TYPE_REF expression for ObjC method dispatches, where
+ this occurs. ObjC method dispatches are _not_ like C++ virtual
+ member function dispatches, and we account for the difference
here. */
+tree
+#ifdef OBJCPLUS
+objc_fold_obj_type_ref (tree ref, tree known_type)
+#else
+objc_fold_obj_type_ref (tree ref ATTRIBUTE_UNUSED,
+ tree known_type ATTRIBUTE_UNUSED)
I think most existing practice in GCC is to just use ATTRIBUTE_UNUSED
unconditionally, even in cases where it is used. I'm not sure I agree
with that existing practice, and I'm certainly not trying to have you
change this code, which is local to the Objective-C front end, just as I
asked -- this is just an FYI.
Thanks,
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com