This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [Patch, MIPS] Modify dl-machine.h for mips32r6/mips64r6


On Fri, 19 Dec 2014, Steve Ellcey  wrote:

> @@ -138,7 +138,11 @@ elf_machine_load_address (void)
>  #ifndef __mips16
>    asm ("	.set noreorder\n"
>         "	" STRINGXP (PTR_LA) " %0, 0f\n"
> +#if __mips_isa_rev < 6
>         "	bltzal $0, 0f\n"
> +#else
> +       "	bal 0f\n"
> +#endif

Correct preprocessor indentation, since inside #ifndef __mips16, i.e. a 
single space between "#" and if/else/endif.

> @@ -241,6 +245,11 @@ do {									\
>        and not just plain _start.  */
>  
>  #ifndef __mips16
> +#if __mips_isa_rev < 6
> +#define LOAD_31 STRINGXP(bltzal $8) "," STRINGXP(.Lcoff)
> +#else
> +#define LOAD_31 STRINGXP(bal .Lcoff)
> +#endif

Likewise (one space before if/else/endif, two before define).

OK with that change.

-- 
Joseph S. Myers
joseph@codesourcery.com


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