Skip to content

Commit cc98dab

Browse files
Accept TABs in gcc/config/arc/arc-cpus.def
File gcc/gcc/config/arc/arc-cpus.def is used to determine valid CPU models for this GCC version. However, this stopped working with a recent commit to GCC where tabs were added to this file and previous AWK field separator haven't treated them properly. Signed-off-by: Anton Kolesov <[email protected]>
1 parent 9ef7988 commit cc98dab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-all.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,8 +1001,8 @@ cpus_def=$ARC_GNU/gcc/gcc/config/arc/arc-cpus.def
10011001
if [ -f $cpus_def ]; then
10021002
# New GCC (2016.03 and later).
10031003
# allowed_cpus should be a string wil values delimited by spaces.
1004-
allowed_cpus=$(awk -v FS="[(, ]+" '/^ARC/{printf " "$2}' $cpus_def)
1005-
allowed_linux_cpus=$(awk -v FS="[(, ]+" \
1004+
allowed_cpus=$(awk -v FS="[(, \t]+" '/^ARC/{printf " "$2}' $cpus_def)
1005+
allowed_linux_cpus=$(awk -v FS="[(, \t]+" \
10061006
'/^ARC/{if($3=="hs"||$3=="700")printf " "$2}' $cpus_def)
10071007
else
10081008
# Old GCC (2015.12 and earlier)

0 commit comments

Comments
 (0)