RE: [Patch,AVR]: Add built-in to get flash segment

2012-03-01 Thread Weddington, Eric
> -Original Message- > From: Georg-Johann Lay [mailto:a...@gjlay.de] > Sent: Thursday, March 01, 2012 6:53 AM > To: gcc-patches@gcc.gnu.org > Cc: Denis Chertykov; Weddington, Eric > Subject: [Patch,AVR]: Add built-in to get flash segment > > This built-in basical

[Patch,AVR]: Add built-in to get flash segment

2012-03-01 Thread Georg-Johann Lay
This built-in basically returns the high byte of a 24-bit address. It can be used to test at run time where a pointer points to (Flash or RAM). Ok for trunk? Johann * doc/extend.texi (AVR Built-in Functions): Document __builtin_avr_flash_segment. * config/avr/builtins.d