forked from bminor/glibc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
powerpc: Fix build failures with current GCC
Since GCC commit 271500 (svn), also known as the following commit on the git mirror: commit 61edec870f9fdfb5df3fa4e40f28cbaede28a5b1 Author: amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Wed May 22 04:34:26 2019 +0000 [RS6000] Don't pass -many to the assembler glibc builds are failing when an assembly implementation does not declare the correct '.machine' directive, or when no such directive is declared at all. For example, when a POWER6 instruction is used, but '.machine power6' is not declared, the assembler will fail with an error similar to the following: ../sysdeps/powerpc/powerpc64/power8/strcmp.S: Assembler messages: 24 ../sysdeps/powerpc/powerpc64/power8/strcmp.S:55: Error: unrecognized opcode: `cmpb' This patch adds '.machine powerN' directives where none existed, as well as it updates '.machine power7' directives on POWER8 files, because the minimum binutils version required to build glibc (binutils 2.25) now provides this machine version. It also adds '-many' to the assembler command used to build tst-set_ppr.c. Tested for powerpc, powerpc64, and powerpc64le, as well as with build-many-glibcs.py for powerpc targets. Reviewed-by: Tulio Magno Quites Machado Filho <[email protected]>
- Loading branch information
1 parent
fbd6c92
commit 9250e66
Showing
8 changed files
with
48 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
2019-05-30 Gabriel F. T. Gomes <[email protected]> | ||
|
||
* sysdeps/powerpc/Makefile | ||
[$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable. | ||
* sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]: | ||
Declare '.machine power7' to get support for ldbrx. | ||
* sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine' | ||
directive based on the directory of the file. | ||
* sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise. | ||
* sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise. | ||
* sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update | ||
'.machine' directive. | ||
(VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8) | ||
(VADDUQM_V7_V8): Remove. | ||
(__STRCASECMP): Replace macros with actual instructions. | ||
* sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update | ||
'.machine' directive. | ||
(VCLZD_V8_v7): Remove. | ||
(STRCASESTR): Replace VCLZD_V8_v7 with actual instruction. | ||
|
||
2019-05-29 Adhemerval Zanella <[email protected]> | ||
|
||
* sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ | |
const char *s2 [r4], | ||
size_t size [r5]) */ | ||
|
||
.machine power7 | ||
ENTRY_TOCLESS (STRNCMP, 5) | ||
CALL_MCOUNT 3 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters