How to suppress __ashldi3 for gcc 4.3.2?

Ian Lance Taylor iant@google.com
Mon Jun 8 11:16:00 GMT 2009


Pan ruochen <panruochen@gmail.com> writes:

>>2009/6/8 Georg-Johann Lay <avr@gjlay.de>:
>> Note that libgcc is part of gcc. It's intended to code stuff which is too
>> complicated to write it down in the machine description and can easier be
>> stated directly in assembler.
>>
>> If you remove that part you will have to rewrite the missing pieces or to
>> rewrite parts of the backend like ashldi3 insn.
>>
>> Georg-Johann
>>
>
> The install package which I downloaded from internet does not contain
> the libgcc.a library.

That is odd.  libgcc is always required.


> I wonder if there someway to make gcc create
> immediate
> instructions as the old version does, instead of creating a function
> call to __ashldi3.

There is no command line option to do that.  Sorry.  The -fno-builtin
option controls what happens with user code, it does not affect what the
compiler generates.

Ian



More information about the Gcc-help mailing list