aboutsummaryrefslogtreecommitdiff
path: root/gcc/genmultilib
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1995-05-10 18:26:30 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1995-05-10 18:26:30 +0000
commit75814ad4c67add8e05ff9009498ca85d5f5b3ba8 (patch)
treefc307b656f05ebe484de2818a4081c7db5cae1b1 /gcc/genmultilib
parent8f28aa336ed35c60d313f448ac16289c0e8d16f2 (diff)
downloadgcc-75814ad4c67add8e05ff9009498ca85d5f5b3ba8.zip
gcc-75814ad4c67add8e05ff9009498ca85d5f5b3ba8.tar.gz
gcc-75814ad4c67add8e05ff9009498ca85d5f5b3ba8.tar.bz2
Add little endian PowerPC support.
From-SVN: r9613
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 9118ad0..66dc0d4 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/ $//'`