diff mbox

GCC 4.7 and 4.8 PowerPC RTEMS

Message ID 4F59C700.9010904@embedded-brains.de
State New
Headers show

Commit Message

Sebastian Huber March 9, 2012, 9:01 a.m. UTC
Hi,

please have a look at the attached patch.  Test suite results for GCC 4.7

http://gcc.gnu.org/ml/gcc-testresults/2012-03/msg00986.html

Comments

Sebastian Huber March 27, 2012, 3:13 p.m. UTC | #1
On 03/09/2012 10:01 AM, Sebastian Huber wrote:
> Hi,
>
> please have a look at the attached patch. Test suite results for GCC 4.7
>
> http://gcc.gnu.org/ml/gcc-testresults/2012-03/msg00986.html
>

I get the same test suite results with:

powerpc-*-eabi* | powerpc-*-rtems*)
	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr 
rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
	extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o 
crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"

I have absolutely no idea what the difference is between

extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o 
ecrti.o ecrtn.o ncrti.o ncrtn.o"

and

extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o 
ncrti.o ncrtn.o"

What is the purpose of the ctrbegin.o and crtend.o?
Andreas Schwab March 27, 2012, 3:42 p.m. UTC | #2
Sebastian Huber <sebastian.huber@embedded-brains.de> writes:

> What is the purpose of the ctrbegin.o and crtend.o?

The same as crtbeginS.o and crtendS.o, except for non-shared linking.

Andreas.
Sebastian Huber March 28, 2012, 8:16 a.m. UTC | #3
On 03/27/2012 05:42 PM, Andreas Schwab wrote:
> Sebastian Huber<sebastian.huber@embedded-brains.de>  writes:
>
>> What is the purpose of the ctrbegin.o and crtend.o?
>
> The same as crtbeginS.o and crtendS.o, except for non-shared linking.

Ok, so if I add additional files here:

extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o 
ecrti.o ecrtn.o ncrti.o ncrtn.o"

it will do no harm since eventually the specs file will decide which one is used?

*startfile:
%{!qrtems: %(old_startfile)} \
%{!nostdlib: %{qrtems: ecrti%O%s rtems_crti%O%s  crtbegin.o%s start.o%s}}

*endfile:
%{!qrtems: %(old_endfile)} %{qrtems: crtend.o%s ecrtn.o%s}
diff mbox

Patch

2012-03-08  Sebastian Huber  <sebastian.huber@embedded-brains.de>

        * config.host (powerpc-*-rtems*): Add rs6000/t-savresfgpr to
        tmake_file.

diff --git a/libgcc/config.host b/libgcc/config.host
index 257622a..f6432c5 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -884,7 +884,7 @@  powerpc-*-eabi*)
 	extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
 	;;
 powerpc-*-rtems*)
-	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
+	tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
 	extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
 	;;
 powerpc-*-linux* | powerpc64-*-linux*)