Messages in this thread | | | Date | Wed, 19 Dec 2007 20:56:17 +0100 | From | Clemens Koller <> | Subject | What's this __dummy in asm-cris/bitops.h? |
| |
Hello,
while looking for some assembly out of order / optimization stuff for something else, I found some strange code in .../linux/include/asm-cris/bitops.h:22
/* * Some hacks to defeat gcc over-optimizations.. */ struct __dummy { unsigned long a[100]; }; #define ADDR (*(struct __dummy *) addr) #define CONST_ADDR (*(const struct __dummy *) addr)
CONST_ADDR is never used in the kernel. Maybe some -cris people could have a look.
Thanks, -- Clemens Koller __________________________________ R&D Imaging Devices Anagramm GmbH Rupert-Mayer-Straße 45/1 Linhof Werksgelände D-81379 München Tel.089-741518-50 Fax 089-741518-19 http://www.anagramm-technology.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |