]> git.pld-linux.org Git - packages/crossavr-gcc.git/blob - 306-gcc-option-list-devices.patch
- rebuild with ppl 1.0
[packages/crossavr-gcc.git] / 306-gcc-option-list-devices.patch
1 diff -Naurp gcc/config/avr/avr.c gcc/config/avr/avr.c
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_
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
13 @@ -276,7 +278,24 @@ static const struct default_options avr_
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
38  static void
39 diff -Naurp gcc/config/avr/avr.opt gcc/config/avr/avr.opt
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
43  mpmem-wrap-around
44  Target Report
45  Make the linker relaxation machine assume that a program counter wrap-around occurs.
46 +
47 +mlist-devices
48 +Target RejectNegative Var(avr_list_supported_parts)
49 +Print the list of parts supported while printing --target-help
50 +
This page took 0.025305 seconds and 3 git commands to generate.