This is the mail archive of the gcc-bugs@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: Current cvs 3.2 can't build current cvs binutils.


On Sun, Jul 14, 2002 at 12:49:05AM +0100, Graham Stott wrote:
> Here's a testcase distilled from gas/config/ppc-toc.c, compile with either 
> -O1 or -O2
> 
> --------------------------------------------------------
> typedef unsigned long valueT;
> 
> valueT
> md_apply_fix3 (valueT *valP)
> {
>   valueT value = * valP;
> 
>   return (((value) >> 32) & 0xffff);
> }
> ----------------------------------------------------------
> 
> The testcase is itself a bit suspect in that it's invoking undefined 
> behaviour by.shifting
> by an amount >= bits in type, but it's derived directly from code in 
> gas/config/ppc-toc.c

I suspect you mean gas/config/tc-ppc.c :)  The code in question will
only be executed when sizeof (valueT) == 8, as it's dealing with
relocation types for ppc64.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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