diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 2011-12-17 09:56:31 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 2011-12-17 09:56:31 +0000 |
commit | 0c19ecdca81ec7e4185424d7cf8e0bf78f919ec3 (patch) | |
tree | a269548b716362dd686d216cffdb13014870f25f /devel/avr-gcc/files/patch-306-gcc-4.5.1-option-list-devices | |
parent | - Update to 1.7.8 (diff) |
Upgrade to GCC 4.5.1.
Completely reorganize the patches for this port.
Patches for new devices are now synchronized with the Atmel AVR tools.
The main difference is the naming scheme, as FreeBSD patches start
with "patch-", while the Atmel AVR Tools patches end up in ".patch".
Notes
Notes:
svn path=/head/; revision=287533
Diffstat (limited to 'devel/avr-gcc/files/patch-306-gcc-4.5.1-option-list-devices')
-rw-r--r-- | devel/avr-gcc/files/patch-306-gcc-4.5.1-option-list-devices | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/devel/avr-gcc/files/patch-306-gcc-4.5.1-option-list-devices b/devel/avr-gcc/files/patch-306-gcc-4.5.1-option-list-devices new file mode 100644 index 000000000000..d6ffffca12f1 --- /dev/null +++ b/devel/avr-gcc/files/patch-306-gcc-4.5.1-option-list-devices @@ -0,0 +1,49 @@ +diff -Naurp gcc/config/avr/avr.c gcc/config/avr/avr.c +--- gcc/config/avr/avr.c 2011-02-11 14:56:08.000000000 -0600 ++++ gcc/config/avr/avr.c 2011-02-11 14:54:05.000000000 -0600 +@@ -211,6 +211,8 @@ static const struct attribute_spec avr_a + #undef TARGET_EXPAND_BUILTIN + #define TARGET_EXPAND_BUILTIN avr_expand_builtin + ++#undef TARGET_HELP ++#define TARGET_HELP avr_target_help + + /* Implement TARGET_SCALAR_MODE_SUPPORTED_P. */ + static bool +@@ -232,7 +234,24 @@ static const struct attribute_spec avr_a + return default_fixed_point_supported_p (); + } + +- ++/* Implement TARGET_HELP. */ ++void ++avr_target_help (void) ++{ ++ if (avr_list_supported_parts) ++ { ++ const struct mcu_type_s *list_part; ++ fprintf (stdout, "List of parts supported by avr-gcc:\n"); ++ for (list_part = &avr_mcu_types[0]; (list_part + 1)->name; list_part++) ++ { ++ if (!list_part->macro) ++ list_part++; ++ fprintf (stdout, "%-20s%s\n", list_part->name, list_part->macro); ++ } ++ fprintf (stdout, "\n"); ++ } ++} ++ + struct gcc_target targetm = TARGET_INITIALIZER; + + void +diff -Naurp gcc/config/avr/avr.opt gcc/config/avr/avr.opt +--- gcc/config/avr/avr.opt 2009-10-08 13:28:48.000000000 -0500 ++++ gcc/config/avr/avr.opt 2011-02-11 14:53:20.000000000 -0600 +@@ -58,3 +58,7 @@ Relax branches + mpmem-wrap-around + Target Report + Make the linker relaxation machine assume that a program counter wrap-around occures. ++ ++mlist-devices ++Target RejectNegative Var(avr_list_supported_parts) ++Print the list of parts supported while printing --target-help |