From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Q: setting an address with pure? Date: Sat, 11 Jul 2015 14:30:14 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c762050aff3a30866fa7e79999b14776"; logging-data="15759"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4Pzu5GuC6DQZxuqjpZ6vsHA1Y/MPM+PY=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:JIQwMZusEaJhMvU0ZII4FvQJDWw= sha1:ciAofvhJwxLSBrEAVcz7jC/k4E4= Xref: news.eternal-september.org comp.lang.ada:26770 Date: 2015-07-11T14:30:14+01:00 List-Id: Brian Drummond writes: > Does the following work for you? It seems to work in the MSP430 Ada > compiler (based on gcc4.7.2) ... has anything changed in gcc5.1 to make > this illegal? > > -- Brian > > with Interfaces; use Interfaces; > -- make unsigned_n visible > > package MSP.adc10 is > > pragma Preelaborate; > > > adc10dtc0 : unsigned_8; -- ADC10 Data Transfer > Control 0 > Pragma Volatile(adc10dtc0); > For adc10dtc0'Address use 16#48#; > ... > end MSP.adc10; 128. PIOG : PIO with Volatile, Convention => Ada; 129. for PIOG'Address use 16#400E1C00#; | >>> expected private type "System.Address" >>> found type universal integer (same with GNAT GPL 2015)