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
fb685388
Commit
fb685388
authored
Oct 20, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output negations of unused alternatives, even if one of the
alternatives is selected. From-SVN: r10489
parent
09578c27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
gcc/genmultilib
+11
-18
No files found.
gcc/genmultilib
View file @
fb685388
...
...
@@ -59,15 +59,15 @@
# genmultilib "m68000/m68020 msoft-float" "m68000 m68020 msoft-float"
# "m68000=mc68000"
# This produces:
# #define MULTILIB_MATCHES "\
# m68000/msoft-float m68000 msoft-float;\
# m68000/msoft-float mc68000 msoft-float;\
# m68020/msoft-float m68020 msoft-float;\
# msoft-float !m68000 !mc68000 !m68020 msoft-float;\
# m68000 m68000 !msoft-float;\
# m68000 mc60000 !msoft-float;\
# m68020 m68020 !msoft-float;\
# #define MULTILIB_SELECT "\
# . !m68000 !mc68000 !m68020 !msoft-float;\
# m68000 m68000 !m68020 !msoft-float;\
# m68000 mc60000 !m68020 !msoft-float;\
# m68020 !m68000 !mc68000 m68020 !msoft-float;\
# msoft-float !m68000 !mc68000 !m68020 msoft-float;\
# m68000/msoft-float m68000 !m68020 msoft-float;\
# m68000/msoft-float mc68000 !m68020 msoft-float;\
# m68020/msoft-float !m68000 !mc68000 m68020 msoft-float;\
# "
# The effect is that `gcc -msoft-float' (for example) will append
# msoft-float to the directory name when searching for libraries or
...
...
@@ -200,24 +200,17 @@ for combo in ${combinations}; do
dirout
=
`
echo
${
dirout
}
| sed
-e
's|^/||'
-e
's|/$||g'
`
# Look through the options. We must output each option that is
# present, and negate each option that is not present. If an
# element of a set is present, we need not negate the other elements
# of the set.
# present, and negate each option that is not present.
optout
=
for
set
in
${
options
}
;
do
setopts
=
`
echo
${
set
}
| sed
-e
's|/| |g'
`
found
=
for
opt
in
${
setopts
}
;
do
if
expr
"
${
combo
}
"
:
".*/
${
opt
}
/.*"
>
/dev/null
;
then
optout
=
"
${
optout
}
${
opt
}
"
found
=
yes
else
optout
=
"
${
optout
}
!
${
opt
}
"
fi
done
if
[
"
${
found
}
"
=
""
]
;
then
for
opt
in
${
setopts
}
;
do
optout
=
"
${
optout
}
!
${
opt
}
"
done
fi
done
optout
=
`
echo
${
optout
}
| sed
-e
's/^ //'
`
...
...
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