diff options
author | Joseph Myers <joseph@codesourcery.com> | 2015-08-18 21:52:22 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2015-08-18 21:52:22 +0000 |
commit | 87336caeb5e5169575b8cba510cdbb71287c0514 (patch) | |
tree | 175212155536eb3f63cb1b58073802c9c173c357 /sysdeps/mips/dl-machine.h | |
parent | 94ec7e007f4845de284d4f7569721b225ba77572 (diff) | |
download | glibc-87336caeb5e5169575b8cba510cdbb71287c0514.tar.gz glibc-87336caeb5e5169575b8cba510cdbb71287c0514.tar.xz glibc-87336caeb5e5169575b8cba510cdbb71287c0514.zip |
Fix MIPS -Wundef warnings for __mips_isa_rev.
This patch fixes -Wundef warnings relating to __mips_isa_rev being undefined. Tested for mips64 (all three ABIs) that there is a clean build and testsuite run with -Wno-error=undef removed (and my other -Wundef patches applied). * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6]. * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
Diffstat (limited to 'sysdeps/mips/dl-machine.h')
-rw-r--r-- | sysdeps/mips/dl-machine.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mips/dl-machine.h b/sysdeps/mips/dl-machine.h index 8738564241..52cd742056 100644 --- a/sysdeps/mips/dl-machine.h +++ b/sysdeps/mips/dl-machine.h @@ -151,7 +151,7 @@ elf_machine_load_address (void) #ifndef __mips16 asm (" .set noreorder\n" " " STRINGXP (PTR_LA) " %0, 0f\n" -# if __mips_isa_rev < 6 +# if !defined __mips_isa_rev || __mips_isa_rev < 6 " bltzal $0, 0f\n" " nop\n" "0: " STRINGXP (PTR_SUBU) " %0, $31, %0\n" @@ -259,7 +259,7 @@ do { \ and not just plain _start. */ #ifndef __mips16 -# if __mips_isa_rev < 6 +# if !defined __mips_isa_rev || __mips_isa_rev < 6 # define LCOFF STRINGXP(.Lcof2) # define LOAD_31 STRINGXP(bltzal $8) "," STRINGXP(.Lcof2) # else |