Re: [patch,wwwdocs] Add v7 AVR release notes.

2017-02-03 Thread Gerald Pfeifer

On Fri, 7 Oct 2016, Georg-Johann Lay wrote:

Mentioning some AVR target specific improvements.


Below some small editorial changes that I just applied on top
of this.

Gerald

Index: gcc-7/changes.html
===
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-7/changes.html,v
retrieving revision 1.56
diff -u -r1.56 changes.html
--- gcc-7/changes.html  2 Feb 2017 19:10:59 -   1.56
+++ gcc-7/changes.html  3 Feb 2017 08:42:26 -
@@ -804,10 +804,10 @@
is now properly supported.  Respective read-only variables are located
in flash memory in section .progmem.data.  No special
code is needed to access such variables; the compiler automatically
-adds an offset of 0x4000 to all addresses which is needed
+adds an offset of 0x4000 to all addresses, which is needed
to access variables in flash memory.  As opposed to ordinary cores
where it is sufficient to specify the progmem attribute
-with definitions, on the reduced Tiny cores the attribute has also to
+with definitions, on the reduced Tiny cores the attribute also has to
be specified with (external) declarations:

extern const int array[] __attribute__((__progmem__));
@@ -824,15 +824,15 @@
  return array[idx];
}
  A new command-line option -Wmisspelled-isr has been added.
-It can be used to turn off  or turn into errors 
+It turns off  or turns into errors 
warnings that are reported for interrupt service routines (ISRs)
which don't follow AVR-LibC's naming convention of prefixing
ISR names with __vector.
-  __builtin_avr_nops(n_nops) is a new
+  __builtin_avr_nops(n) is a new
https://gcc.gnu.org/onlinedocs/gcc/AVR-Built-in-Functions.html;>built-in
  function
-that inserts n_nops NOP instructions into
-the instruction stream. n_nops must be a value known at
+that inserts n NOP instructions into
+the instruction stream. n must be a value known at
compile time.




Re: [patch,wwwdocs] Add v7 AVR release notes.

2016-10-07 Thread Denis Chertykov
2016-10-07 17:06 GMT+03:00 Georg-Johann Lay :
> Mentioning some AVR target specific improvements.
>
> Ok?
>

Ok.


[patch,wwwdocs] Add v7 AVR release notes.

2016-10-07 Thread Georg-Johann Lay

Mentioning some AVR target specific improvements.

Ok?

Index: changes.html
===
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-7/changes.html,v
retrieving revision 1.15
diff -r1.15 changes.html
261c261,299
< 
---
> AVR
> 
>   On the reduced Tiny cores, the progmem
> https://gcc.gnu.org/onlinedocs/gcc/AVR-Variable-Attributes.html;>variable
>   attribute
> is now properly supported.  Respective read-only variables are located
> in flash memory in section .progmem.data.  No special
> code is needed to access such variables; the compiler automatically
> adds an offset of 0x4000 to all addresses which is needed
> to access variables in flash memory.  As opposed to ordinary cores
> where it is sufficient to specify the progmem attribute
> with definitions, on the reduced Tiny cores the attribute has also to
> be specified with (external) declarations:
> 
> extern const int array[] __attribute__((__progmem__));
> 
> int get_value2 (void)
> {
>   /* Access via addresses array + 0x4004 and array + 0x4005. */
>   return array[2];
> }
> 
> const int* get_address (unsigned idx)
> {
>   /* Returns array + 0x4000 + 2 * idx. */
>   return array[idx];
> }
>   A new command line option -Wmisspelled-isr has been added.
> It can be used to turn off  or turn into errors 
> warnings that are reported for interrupt service routines (ISRs)
> which don't follow AVR-LibC's naming convention of prefixing
> ISR names with __vector.
>   __builtin_avr_nops(n_nops) is a new
> https://gcc.gnu.org/onlinedocs/gcc/AVR-Built-in-Functions.html;>built-in
>   function
> that inserts n_nops NOP instructions into
> the instruction stream. n_nops must be a value known at
> compile time.
>