[AVR][4.2][committed] Add __AVR_HAVE_MUL__ cpp macro.
Anatoly Sokolov
aesok@post.ru
Mon Jan 29 22:44:00 GMT 2007
Hello.
This patch define __AVR_HAVE_MUL__ cpp macro in GCC 4.2 when the device have MUL instruction.
2007-01-30 Anatoly Sokolov <aesok@post.ru>
* config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define __AVR_HAVE_MUL__.
Index: gcc/config/avr/avr.h ===================================================================
--- gcc/config/avr/avr.h (revision 121239)
+++ gcc/config/avr/avr.h (working copy)
@@ -39,6 +39,8 @@
builtin_define ("__AVR_ASM_ONLY__"); \
if (avr_enhanced_p) \
builtin_define ("__AVR_ENHANCED__"); \
+ if (avr_enhanced_p) \
+ builtin_define ("__AVR_HAVE_MUL__"); \
if (avr_mega_p) \
builtin_define ("__AVR_MEGA__"); \
if (TARGET_NO_INTERRUPTS) \
Anatoly.
More information about the Gcc-patches
mailing list