Re: [libgcc2.c] Implementation of __bswapsi2()

2020-11-12 Thread Michael Matz
Hello, On Thu, 12 Nov 2020, Stefan Kanthak wrote: > Does GCC generate (unoptimised) code there, similar to the following i386 > assembly, using 4 loads, 4 shifts, 2 ands plus 3 ors? Try for yourself. '-m32 -O2 -march=i386' is your friend. Ciao, Michael. Spoiler: it's generating: mov

Re: libgcc2

2010-05-17 Thread Ian Lance Taylor
Eggenmüller Bernd writes: > Andrew Pinski schrieb: >> On Thu, May 13, 2010 at 8:46 AM, Eggenmüller Bernd wrote: >> >>> Is there any implementation with less registers like this. >>> >> >> libgcc2 is written in C; so if it fails to compile you need to fix up >> your backend. There might

Re: libgcc2

2010-05-17 Thread Eggenmüller Bernd
Andrew Pinski schrieb: On Thu, May 13, 2010 at 8:46 AM, Eggenmüller Bernd wrote: Is there any implementation with less registers like this. libgcc2 is written in C; so if it fails to compile you need to fix up your backend. There might need some middle-end fixes too with this small n

Re: libgcc2

2010-05-13 Thread Eggenmüller Bernd
Andrew Pinski schrieb: On Thu, May 13, 2010 at 8:46 AM, Eggenmüller Bernd wrote: Is there any implementation with less registers like this. libgcc2 is written in C; so if it fails to compile you need to fix up your backend. There might need some middle-end fixes too with this small n

Re: libgcc2

2010-05-13 Thread Andrew Pinski
On Thu, May 13, 2010 at 8:46 AM, Eggenmüller Bernd wrote: > Is there any implementation with less registers like this. libgcc2 is written in C; so if it fails to compile you need to fix up your backend. There might need some middle-end fixes too with this small number of registers used. You mig

Re: libgcc2

2010-05-13 Thread Eggenmüller Bernd
Ian Lance Taylor schrieb: Eggenmüller Bernd writes: Ian Lance Taylor schrieb: Eggenmüller Bernd writes: is it possible to translate the libgcc2 when i only have 4 registers which are 32 bits long. One of the four Registers is defined as Basepointer and another as Stackpoi

Re: libgcc2

2010-05-12 Thread Ian Lance Taylor
Eggenmüller Bernd writes: > is it possible to translate the libgcc2 when i only have 4 registers > which are 32 bits long. > One of the four Registers is defined as Basepointer and another as > Stackpointer. > The other two can be used to calculate. libgcc2 is intended to be machine independent.

Re: libgcc2.c:382: internal compiler error: in prune_unused_types_update_strings, at dwarf2out.c:14009

2006-04-18 Thread Christian Joensson
On 4/18/06, Christian Joensson <[EMAIL PROTECTED]> wrote: > /usr/local/src/trunk/objdir/./gcc/xgcc > -B/usr/local/src/trunk/objdir/./gcc/ > -B/usr/local/sparc64-unknown-linux-gnu/bin/ > -B/usr/local/sparc64-unknown-linux-gnu/lib/ -isystem > /usr/local/sparc64-unknown-linux-gnu/include -isystem > /

Re: libgcc2.c help needed

2006-01-12 Thread Perry Smith
Well, shoot. I added that and reconfigured and recompiled over night but it looks like I need to define __powerpc64__ and currently it is not defined. On Jan 11, 2006, at 10:17 PM, Ian Lance Taylor wrote: Perry Smith <[EMAIL PROTECTED]> writes: The problem: In the particular build I am tr

Re: libgcc2.c help needed

2006-01-11 Thread Ian Lance Taylor
Perry Smith <[EMAIL PROTECTED]> writes: > The problem: In the particular build I am trying to do, when > libgcc2.c is compled with -DL_floatdidf, instead of defining a > routine called _floatdidf or __floatdidf, it creates a routine called > __floattidf which references __floatdidf. ... > This i