Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
e09150c7
Commit
e09150c7
authored
Nov 30, 1995
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MULTILIB_EXCEPTiONS
From-SVN: r10642
parent
23ec378b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
gcc/genmultilib
+31
-0
No files found.
gcc/genmultilib
View file @
e09150c7
...
@@ -42,6 +42,9 @@
...
@@ -42,6 +42,9 @@
# appear in the first argument, and the second should be a synonym for
# appear in the first argument, and the second should be a synonym for
# it. Question marks are replaced with equal signs in both options.
# it. Question marks are replaced with equal signs in both options.
# The optional fourth argument is a list of multilib directory
# combinations that should not be built.
# The output looks like
# The output looks like
# #define MULTILIB_MATCHES "\
# #define MULTILIB_MATCHES "\
# SUBDIRECTORY OPTIONS;\
# SUBDIRECTORY OPTIONS;\
...
@@ -78,6 +81,7 @@
...
@@ -78,6 +81,7 @@
options
=
$1
options
=
$1
dirnames
=
$2
dirnames
=
$2
matches
=
$3
matches
=
$3
exceptions
=
$4
# What we want to do is select all combinations of the sets in
# What we want to do is select all combinations of the sets in
# options. Each combination which includes a set of mutually
# options. Each combination which includes a set of mutually
...
@@ -112,6 +116,33 @@ combinations=`initial=/ ./tmpmultilib ${options}`
...
@@ -112,6 +116,33 @@ combinations=`initial=/ ./tmpmultilib ${options}`
rm
-f
tmpmultilib
rm
-f
tmpmultilib
# If there exceptions, weed them out now
if
[
-n
"
${
exceptions
}
"
]
;
then
rm
-f
tmpmultilib2
cat
>
tmpmultilib2
<<
\
EOF
#!/bin/sh
# This recursive script weeds out any combination of multilib
# switches that should not be generated. The output looks like
# a list of subdirectory names with leading and trailing slashes.
for opt in
$@
; do
case "
$opt
" in
EOF
for
except
in
${
exceptions
}
;
do
echo
" /
${
except
}
/) : ;;"
>>
tmpmultilib2
done
cat
>>
tmpmultilib2
<<
\
EOF
*) echo
${
opt
}
;;
esac
done
EOF
chmod +x tmpmultilib2
combinations
=
`
./tmpmultilib2
${
combinations
}
`
rm
-f
./tmpmultilib2
fi
# Construct a sed pattern which will convert option names to directory
# Construct a sed pattern which will convert option names to directory
# names.
# names.
todirnames
=
todirnames
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment