This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH v2][MIPS] fix CRT_CALL_STATIC_FUNCTION macro
- From: "Petar Jovanovic" <petar dot jovanovic at rt-rk dot com>
- To: "'Moore, Catherine'" <Catherine_Moore at mentor dot com>, "'Matthew Fortune'" <Matthew dot Fortune at imgtec dot com>, <gcc-patches at gcc dot gnu dot org>, "'Maciej W. Rozycki'" <macro at linux-mips dot org>
- Date: Fri, 13 Feb 2015 01:28:17 +0100
- Subject: RE: [PATCH v2][MIPS] fix CRT_CALL_STATIC_FUNCTION macro
- Authentication-results: sourceware.org; auth=none
- References: <003e01d04179$ccc38bc0$664aa340$ at rt-rk dot com> <6D39441BF12EF246A7ABCE6654B0235320FCA3F1 at LEMAIL01 dot le dot imgtec dot org> <FD3DCEAC5B03E9408544A1E416F11242018915136E at NA-MBX-04 dot mgc dot mentorg dot com>
-----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