RE: [PATCH v3][MIPS] fix CRT_CALL_STATIC_FUNCTION macro

2015-04-24 Thread Petar Jovanovic
-Original Message- From: Maciej W. Rozycki [mailto:ma...@linux-mips.org] Sent: Thursday, April 23, 2015 4:55 PM To: Petar Jovanovic Cc: gcc-patches@gcc.gnu.org; catherine_mo...@mentor.com; Matthew Fortune Subject: RE: [PATCH v3][MIPS] fix CRT_CALL_STATIC_FUNCTION macro > I hope you f

RE: [PATCH v3][MIPS] fix CRT_CALL_STATIC_FUNCTION macro

2015-04-23 Thread Maciej W. Rozycki
On Wed, 22 Apr 2015, Petar Jovanovic wrote: > > I think this will best be > > reduced to a link-only test on bare iron, hoping for a link failure. > > I am not sure how we can reduce the test to a link failure (today), if > ld will not report an error (today). Me neither, offhand; hopefully so

RE: [PATCH v3][MIPS] fix CRT_CALL_STATIC_FUNCTION macro

2015-04-22 Thread Petar Jovanovic
-Original Message- From: Maciej W. Rozycki [mailto:ma...@linux-mips.org] Sent: Tuesday, April 21, 2015 8:52 PM To: Petar Jovanovic Cc: gcc-patches@gcc.gnu.org; catherine_mo...@mentor.com; matthew.fort...@imgtec.com Subject: Re: [PATCH v3][MIPS] fix CRT_CALL_STATIC_FUNCTION macro >

Re: [PATCH v3][MIPS] fix CRT_CALL_STATIC_FUNCTION macro

2015-04-21 Thread Maciej W. Rozycki
On Tue, 21 Apr 2015, Petar Jovanovic wrote: > --- /dev/null > +++ b/gcc/testsuite/gcc.target/mips/call-from-init.c > @@ -0,0 +1,10 @@ > +/* Check that __do_global_ctors_aux can be reached from .init section that > + is in a different (256MB) region. */ > +/* { dg-do run } */ > +/* { dg-options "

[PATCH v3][MIPS] fix CRT_CALL_STATIC_FUNCTION macro

2015-04-21 Thread Petar Jovanovic
New patch, v3. PTAL. Regards, Petar gcc/ChangeLog: 2015-04-21 Petar Jovanovic * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use la/jalr instead of jal. gcc/testsuite/ChangeLog: 2015-04-21 Petar Jovanovic * gcc.target/mips/call-from-init.c: Ne