From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11197 invoked by alias); 13 Mar 2009 15:32:09 -0000 Received: (qmail 10774 invoked by uid 22791); 13 Mar 2009 15:32:08 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_36,J_CHICKENPOX_38,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Mar 2009 15:31:31 +0000 Received: from wpaz21.hot.corp.google.com (wpaz21.hot.corp.google.com [172.24.198.85]) by smtp-out.google.com with ESMTP id n2DFVRr6010974; Fri, 13 Mar 2009 08:31:27 -0700 Received: from localhost.localdomain.google.com (dhcp-172-22-125-203.corp.google.com [172.22.125.203]) (authenticated bits=0) by wpaz21.hot.corp.google.com with ESMTP id n2DFVOCT005458 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 13 Mar 2009 08:31:25 -0700 To: Florent DEFAY Cc: gcc-help@gcc.gnu.org Subject: Re: new port : libgcc ? newlib ? References: <8502af3c0903130245g4df84d4agd81681225b9dd3b0@mail.gmail.com> <8502af3c0903130809u65aa1655g4384af7ed93b7caa@mail.gmail.com> From: Ian Lance Taylor Date: Fri, 13 Mar 2009 15:32:00 -0000 In-Reply-To: <8502af3c0903130809u65aa1655g4384af7ed93b7caa@mail.gmail.com> (Florent DEFAY's message of "Fri\, 13 Mar 2009 16\:09\:04 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2009-03/txt/msg00147.txt.bz2 Florent DEFAY writes: > Thank you for your reply. I can precise some things: > >>> Then I tried this (just like msp430) : >>> >>> LIB1ASMSRC =3D target/mulhi3.S >>> LIB1ASMFUNCS =3D __mulhi3 >> >> Looks right, assuming you've written mulhi3.S. > > I have. > Will the function __mulhi3 be placed in libgcc.a? Yes. > Then, to compile a > program which use multiplications, should I link with -lgcc option? The gcc driver will automatically link with -lgcc, unless you use something like the -nodefaultlibs option. > Now, the problem is that the port is not complete and, as a > consequence, when compiling libgcc2.c this happens : > /home/me/gcc/build_target/./gcc/xgcc > -B/home/me/gcc/build_target/./gcc/ -B/home/me/target/target/bin/ > -B/home/me/target/target/lib/ -isystem /home/me/target/target/include > -isystem /home/me/target/target/sys-include -O2 -g -g -O2 -O2 -O2 -g > -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 > -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../.././gcc > -I../../../gcc-4.3.3/libgcc -I../../../gcc-4.3.3/libgcc/. > -I../../../gcc-4.3.3/libgcc/../gcc > -I../../../gcc-4.3.3/libgcc/../include -o _muldi3.o -MT _muldi3.o > -MD -MP -MF _muldi3.dep -DL_muldi3 -c > ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.c \ > > ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.c: In function =E2=80=98__mulsi3= =E2=80=99: > ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.c:560: internal compiler > error: Segmentation fault > > I would like (temporarily) not to compile libgcc2. But, in the same > time, enable compiling of my multhi3. Is that possible? It would be a > libgcc without libgcc2. There is no simply way to do this. You can control it to some extent by setting LIB2FUNCS_EXCLUDE in your t-* file. See, e.g., config/spu/t-spu-elf. Ian