[Bug target/13610] __attribute__((progmem)) allocation problem
eric at ecentral dot com
gcc-bugzilla@gcc.gnu.org
Thu Feb 12 23:53:00 GMT 2004
------- Additional Comments From eric at ecentral dot com 2004-02-12 23:53 -------
Subject: Re: __attribute__((progmem)) allocation problem
On 12 Feb 2004 at 23:30, sergey at idknet dot com wrote:
>
> ------- Additional Comments From sergey at idknet dot com 2004-02-12 23:30
> ------- (In reply to comment #2) > AFAIK, this is not a bug. > > This is how it
> has historically worked.
>
> Ok, but afaik, on x86 platform, compiler will place both array and strings into
> same segment. Why this can't be on avr? I'm not sure how the things works
> exactly, but it seems that this not depends on avr-libc. Link You shown explains
> how to make this work correctly just because this not works as expected.
Sorry, you are comparing apples to oranges. Just because x86 platform behaves
one way does not mean that is how it works on the AVR platform. It does not
work as "expected" because your expectation was derived from the x86 platform,
not as how it works on the AVR. The avr-libc documenation is the most complete
and up-to-date documentation on how to use the AVR port of GCC. If you would
like this feature changed, perhaps you can write to the AVR port maintainers of
GCC.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13610
More information about the Gcc-bugs
mailing list