]> git.pld-linux.org Git - packages/crossavr-gcc.git/blame - 306-gcc-option-list-devices.patch
crossavr-gcc: Synchronized with official AVR toolchain 3.4.0.663.
[packages/crossavr-gcc.git] / 306-gcc-option-list-devices.patch
CommitLineData
dbe7ab63 1diff -Naurp gcc/config/avr/avr.c gcc/config/avr/avr.c
6ef8d480
PZ
2--- gcc/config/avr/avr.c 2011-10-27 18:05:35.000000000 +0530
3+++ gcc/config/avr/avr.c 2011-10-27 18:10:00.000000000 +0530
4@@ -255,6 +255,8 @@ static const struct default_options avr_
dbe7ab63 5 #undef TARGET_EXPAND_BUILTIN
6 #define TARGET_EXPAND_BUILTIN avr_expand_builtin
7
8+#undef TARGET_HELP
9+#define TARGET_HELP avr_target_help
10
11 /* Implement TARGET_SCALAR_MODE_SUPPORTED_P. */
12 static bool
6ef8d480 13@@ -276,7 +278,24 @@ static const struct default_options avr_
dbe7ab63 14 return default_fixed_point_supported_p ();
15 }
16
17-
18+/* Implement TARGET_HELP. */
19+void
20+avr_target_help (void)
21+{
22+ if (avr_list_supported_parts)
23+ {
24+ const struct mcu_type_s *list_part;
25+ fprintf (stdout, "List of parts supported by avr-gcc:\n");
26+ for (list_part = &avr_mcu_types[0]; (list_part + 1)->name; list_part++)
27+ {
28+ if (!list_part->macro)
29+ list_part++;
30+ fprintf (stdout, "%-20s%s\n", list_part->name, list_part->macro);
31+ }
32+ fprintf (stdout, "\n");
33+ }
34+}
35+
36 struct gcc_target targetm = TARGET_INITIALIZER;
37 \f
6ef8d480 38 static void
dbe7ab63 39diff -Naurp gcc/config/avr/avr.opt gcc/config/avr/avr.opt
6ef8d480
PZ
40--- gcc/config/avr/avr.opt 2011-10-27 18:05:13.000000000 +0530
41+++ gcc/config/avr/avr.opt 2011-10-27 18:10:00.000000000 +0530
42@@ -58,3 +58,8 @@ Relax branches
dbe7ab63 43 mpmem-wrap-around
44 Target Report
6ef8d480 45 Make the linker relaxation machine assume that a program counter wrap-around occurs.
dbe7ab63 46+
47+mlist-devices
48+Target RejectNegative Var(avr_list_supported_parts)
49+Print the list of parts supported while printing --target-help
6ef8d480 50+
This page took 0.062609 seconds and 4 git commands to generate.