Warning fix
Andreas Schwab
schwab@suse.de
Thu Feb 13 12:28:00 GMT 2003
Fixes a warning on 64 bit systems. Tested on ia64 and installed as obvious.
Andreas.
2003-02-13 Andreas Schwab <schwab@suse.de>
* cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
Parenthesize properly.
(NPREDECESORS): Parenthesize properly.
--- gcc/cgraph.c.~1.1.~ 2003-02-12 22:48:57.000000000 +0100
+++ gcc/cgraph.c 2003-02-13 10:56:56.000000000 +0100
@@ -422,8 +422,8 @@ cgraph_finalize_compilation_unit ()
/* Expand all functions that must be output. */
-#define NPREDECESORS(node) (size_t)((node)->aux)
-#define SET_NPREDECESORS(node,n) (node)->aux = (void *) (n);
+#define NPREDECESORS(node) ((size_t) (node)->aux)
+#define SET_NPREDECESORS(node, n) ((node)->aux = (void *) (size_t) (n))
/* Figure out what functions we want to assemble. */
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Gcc-patches
mailing list