[PATCH v2][MIPS] fix CRT_CALL_STATIC_FUNCTION macro
Petar Jovanovic
petar.jovanovic@rt-rk.com
Fri Feb 13 00:28:00 GMT 2015
-----Original Message-----
From: Moore, Catherine [mailto:Catherine_Moore@mentor.com]
Sent: Friday, February 6, 2015 4:13 PM
To: Matthew Fortune; Petar Jovanovic; gcc-patches@gcc.gnu.org; 'Maciej W.
Rozycki'
Subject: RE: [PATCH v2][MIPS] fix CRT_CALL_STATIC_FUNCTION macro
> Petar, would you please add your testcase to the gcc testsuite and repost
the patch.
Hi Catherine,
Sure, I can repost the patch and add the test case I used.
My concern - and I would appreciate feedback from you and others on it - is
that the test I originally used to report [1] the problem creates a large
executable (380 MB).
Here is a variant of it:
/* { dg-do run } */
#include <stdio.h>
#if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 &&
__GLIBC_MINOR__ < 21))
#define BROKEN
#endif
int
main (void)
{
#ifndef BROKEN
asm(".fill 100000000, 4, 0x00000000\n");
#endif
return 0;
}
The test also takes time to execute. Obviously, I can make it slightly more
complex and make execute time short. Another path is to introduce and use
options such as "Wl,-Ttext-segment" to make its size smaller. Any other
ideas?
Regards,
Petar
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=17601
More information about the Gcc-patches
mailing list