This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][AArch64][tests]Skip graphite tests that don't fit -mcmodel=tiny
- From: Mike Stump <mikestump at comcast dot net>
- To: Kyrill Tkachov <kyrylo dot tkachov at arm dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>
- Date: Wed, 30 Jul 2014 14:35:45 -0700
- Subject: Re: [PATCH][AArch64][tests]Skip graphite tests that don't fit -mcmodel=tiny
- Authentication-results: sourceware.org; auth=none
- References: <53CE448E dot 4060109 at arm dot com> <558B280E-4993-4FC6-9A57-A12ECB4A9B10 at comcast dot net>
On Jul 22, 2014, at 12:14 PM, Mike Stump <mikestump@comcast.net> wrote:
> On Jul 22, 2014, at 4:01 AM, Kyrill Tkachov <kyrylo.tkachov@arm.com> wrote:
>> These tests use very large arrays as part of their loop interchange testing so they don't fit into the 1MiB binary size limit imposed by -mcmodel=tiny. This causes errors at link-time.
>
>> Ok to commit?
>
> So the test suite should be used to figure this out as marking the individual test cases is a never ending and ever changing. I can a big test case on my system, and found:
>
> ld: address 0xc401ad0 of a.out section `.data' is not within region `SRAM'
> ld: a.out section `.ctors' will not fit in region `SRAM'
> ld: address 0xc401ad0 of a.out section `.data' is not within region `SRAM'
> ld: region `SRAM' overflowed by 155196160 bytes
>
> for large test cases. After looking at the current gld sources, it seems that they merely changed the spelling of the error message and we’ve not kept up. Please try the patch below and tell me if it works for you. If it doesn’t, what messages do you see and what tool are they from? Vendor, program and version would be nice to know.
>
> If it works, feel free to check it in. If you want to replicate the 4 lines and add a case for the vendor’s tool, that’d be a better way to handle it. The below should handle a variety of GNU ld situations (but not all of them).
So, were you able to test the patch I sent?