CVS update by stephent xemacs/src ...
xemacs-cvs at xemacs.org
xemacs-cvs at xemacs.org
Fri Jun 22 13:15:43 EDT 2007
User: stephent
Date: 07/06/22 19:15:43
Modified: xemacs/src ChangeLog compiler.h
Log:
Try to use UNUSED with more versions of GCC and ICC. <87tzsz52bs.fsf at uwakimon.sk.tsukuba.ac.jp>
Revision Changes Path
1.1071 +4 -0 XEmacs/xemacs/src/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.1070
retrieving revision 1.1071
diff -u -p -r1.1070 -r1.1071
--- ChangeLog 2007/06/22 00:21:12 1.1070
+++ ChangeLog 2007/06/22 17:15:34 1.1071
@@ -1,3 +1,7 @@
+2007-06-23 Stephen J. Turnbull <stephen at xemacs.org>
+
+ * compiler.h: Try to use USED with more compilers. Thanks, Jerry!
+
2007-06-22 Aidan Kehoe <kehoea at parhasard.net>
* eval.c (restore_int):
1.12 +7 -2 XEmacs/xemacs/src/compiler.h
Index: compiler.h
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/compiler.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -p -r1.11 -r1.12
--- compiler.h 2005/11/26 11:46:07 1.11
+++ compiler.h 2007/06/22 17:15:37 1.12
@@ -210,19 +210,24 @@ Boston, MA 02111-1307, USA. */
# endif /* GCC_VERSION >= NEED_GCC (2, 5, 0) */
#endif /* ATTRIBUTE_CONST */
-/* Unused declarations; g++ and icc do not support this. */
/*
NOTE: These macros MUST be named UNUSED (exactly) or something
prefixed with USED_IF_, or DEFUN docstrings will be parsed incorrectly.
See comments in make_docfile.c (write_c_args). You'd think that this
wouldn't happen, but unfortunately we do indeed have some arguments
of DEFUNs unused for GNU compatibility or because features are missing.
+
+ #### At one time, __attribute__ ((unused)) confused G++. We don't know
+ which versions. Please report problems and fix conditionals.
+ #### A similar issue arose with the Intel CC. We know that v7 didn't
+ work and v9 does. Let us know if v8 works or not, please.
+ See <m34plsmh88.fsf at jerrypc.cs.usu.edu>.
*/
#ifndef UNUSED_ARG
# define UNUSED_ARG(decl) unused_##decl
#endif
#ifndef UNUSED
-# if defined(__GNUC__) && !defined(__cplusplus) && !defined(__INTEL_COMPILER)
+# if defined(__GNUC__) && (!defined(__INTEL_COMPILER) || __INTEL_COMPILER >= 800)
# define ATTRIBUTE_UNUSED __attribute__ ((unused))
# else
# define ATTRIBUTE_UNUSED
More information about the XEmacs-CVS
mailing list