Re: Compiler Problems in tlbex-r4k.S

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 23, 2003 at 11:43:27AM +0200, Geert Uytterhoeven wrote:

> > If I change the line 43 from:
> > #define PTE_PAGE_SIZE	(1L << PTE_PAGE_SHIFT)
> > to
> > #define PTE_PAGE_SIZE	(1 << PTE_PAGE_SHIFT)
> > the compiling is o.k.

The fix for this went into CVS yesterday.

> That's a programming error. The assembler doesn't know 1L, it needs plain 1.
> 
> Yes, it makes life hard, if you want to share your definitions between the
> C compiler and the assembler.

It's a PITA that gas doesn't accept constants in the same syntax as C
does.  It means we have to extract many constants into offset.h before
they can be used in assembler code.  One of the small things on my
wishlist for x-mas ;-)

  Ralf


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux