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]
Other format: [Raw text]

Re: Fix handling of call clobbering readonly-result


> 
> Richard Earnshaw wrote:
> > This patch:
> [...]
> > 	(expand_call): For calls initializing constant memory, replace 
> > 	emission of standalone mem /u clobber with function usage entry.
> > 
> > is causing gcc.dg/builtins-6.c to be miscompiled on arm-elf.
> 
>  I'll be happy to look at it.
> 
>  Couple you please provide minimal directions to setup an environment
>  allowing to reproduce the problem you saw ?
> 
Simply build arm-elf cross compilers (--target=arm-elf) with and without 
that patch (no need for an assembler).  Then build the testcase using

<gcc-build-dir>/gcc/cc1 -O2 -ffast-math -isystem <gcc-build-dir>
/gcc/include <gcc-src-dir>/gcc/testsuite/builtins-6.c

Compare the assembly file differences (there rather obvious ;-)

R.


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