This is the mail archive of the
mailing list for the GCC project.
RE: [PATCH] RX pragma address
- From: "Sebastian Perta" <sebastian dot perta at renesas dot com>
- To: "'Oleg Endo'" <oleg dot endo at t-online dot de>, <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 5 Jan 2018 12:12:10 -0000
- Subject: RE: [PATCH] RX pragma address
- Authentication-results: sourceware.org; auth=none
- References: <email@example.com> <firstname.lastname@example.org>
Thank you for your comment.
>>Is this for some kind of legacy backwards compatibility of something?
Sort of, this is required by the following tool
There are not many plans to improve this tool and other solutions (which might be more complex) might not be possible to implement in this tool.
>>There are ways how to achieve the same with standard C and C++ language
The only way I can think of is to put the variable in a separate section (using section attribute) and then in the linker script put that section at the desired address.
The problem is AP4 does not touch the linker script it only generates source code.
Do you have any other ideas/suggestions? I'm very happy to listen.
From: Oleg Endo [mailto:email@example.com]
Sent: 05 January 2018 11:59
To: Sebastian Perta <Sebastian.Perta@renesas.com>; firstname.lastname@example.org
Subject: Re: [PATCH] RX pragma address
On Fri, 2018-01-05 at 11:03 +0000, Sebastian Perta wrote:
> The following patch adds a new pragma, "pragma address" for RX.
> The patch updates extend.texi and add a test case to the regression
> as well.
> For the test case I checked than test is getting picked up in gcc.log
> unfortunately for the .texi part I don't know where to look/what to
> do to
> get the
> documentation generated.
> This is similar to the pragma address implemented for M32C.
Is this for some kind of legacy backwards compatibility of something?
There are ways how to achieve the same with standard C and C++ language
features ... so I was wondering what's the purpose of this?