summaryrefslogtreecommitdiff
path: root/gcc/genmultilib
diff options
context:
space:
mode:
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-05-10 18:26:30 +0000
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-05-10 18:26:30 +0000
commit3e603e7806642f1538f56d3a4d061836476b808c (patch)
treefc307b656f05ebe484de2818a4081c7db5cae1b1 /gcc/genmultilib
parent55e4040206f32c903ec3bd38549c35e301fd405e (diff)
downloadgcc-3e603e7806642f1538f56d3a4d061836476b808c.tar.gz
Add little endian PowerPC support.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9613 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genmultilib')
-rw-r--r--gcc/genmultilib10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/genmultilib b/gcc/genmultilib
index 9118ad07b1a..66dc0d477d9 100644
--- a/gcc/genmultilib
+++ b/gcc/genmultilib
@@ -39,7 +39,7 @@
# identical. The elements in the list are separated by spaces. Each
# element must be of the form OPTION=OPTION. The first OPTION should
# appear in the first argument, and the second should be a synonym for
-# it.
+# it. Question marks are replaced with equal signs in both options.
# The output looks like
# #define MULTILIB_MATCHES "\
@@ -132,8 +132,8 @@ fi
# quoted spaces when expanding a variable.
matchnegations=
for i in ${matches}; do
- l=`echo $i | sed -e 's/=.*$//'`
- r=`echo $i | sed -e 's/^.*=//'`
+ l=`echo $i | sed -e 's/=.*$//' -e 's/?/=/g'`
+ r=`echo $i | sed -e 's/^.*=//' -e 's/?/=/g'`
matchnegations="${matchnegations} -e s/;!${l};/;!${l};!${r};/"
done
@@ -158,8 +158,8 @@ else
first=$1
shift
dirout="${dirout}" optout="${optout}" ./tmpmultilib2 $@
- l=`echo ${first} | sed -e 's/=.*$//'`
- r=`echo ${first} | sed -e 's/^.*=//'`
+ l=`echo ${first} | sed -e 's/=.*$//' -e 's/?/=/g'`
+ r=`echo ${first} | sed -e 's/^.*=//' -e 's/?/=/g'`
case " ${optout} " in
*" ${l} "*)
newopt=`echo " ${optout} " | sed -e "s/ ${l} / ${r} /" -e 's/^ //' -e 's/ $//'`