This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bogus libcalls with multiple REG_RETVAL notes


On Sat, 16 Sep 2000, Richard Henderson wrote:

> On Fri, Sep 15, 2000 at 02:11:16PM +0100, Bernd Schmidt wrote:
> > AFAICT the code in emit_library_call_value_1 to create the reg note with
> > the equal form is totally bogus and should be deleted.  That gives us
> > rtl that looks similar to what earlier compilers emitted.
> 
> This is wrong.  Now we will not get libcall notes for 
> __attribute__((const)) functions, which means that they
> will not be CSEd.

Don't these go through expand_call rather than expand_library_call_value?
The code to generate the "equal form" notes is still present in expand_call.

Bernd


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]