Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gcc-cobol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COBOLworx
gcc-cobol
Commits
c79d892f
Commit
c79d892f
authored
22 years ago
by
Geoffrey Keating
Committed by
Geoffrey Keating
22 years ago
Browse files
Options
Downloads
Patches
Plain Diff
* genmultilib: Create temporary files in unique subdirectory.
From-SVN: r60195
parent
7a975113
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gcc/ChangeLog
+2
-0
2 additions, 0 deletions
gcc/ChangeLog
gcc/genmultilib
+6
-6
6 additions, 6 deletions
gcc/genmultilib
with
8 additions
and
6 deletions
gcc/ChangeLog
+
2
−
0
View file @
c79d892f
2002-12-16 Geoffrey Keating <geoffk@apple.com>
* genmultilib: Create temporary files in unique subdirectory.
* gcc.c (validate_switches): Allow '@' as a switch name.
2002-12-16 Loren J. Rittle <ljrittle@acm.org>
...
...
This diff is collapsed.
Click to expand it.
gcc/genmultilib
+
6
−
6
View file @
c79d892f
#!/bin/sh
# Generates multilib.h.
# Copyright (C) 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
# Copyright (C) 1994, 1995, 1996, 1997, 1999
, 2002
Free Software Foundation, Inc.
#This file is part of GCC.
...
...
@@ -120,6 +120,9 @@ enable_multilib=$8
echo
"static const char *const multilib_raw[] = {"
mkdir
tmpmultilib.
$$
||
exit
1
cd
tmpmultilib.
$$
||
exit
1
# What we want to do is select all combinations of the sets in
# options. Each combination which includes a set of mutually
# exclusive options must then be output multiple times, once for each
...
...
@@ -161,11 +164,8 @@ chmod +x tmpmultilib
combinations
=
`
initial
=
/ ./tmpmultilib
${
options
}
`
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
...
...
@@ -187,7 +187,6 @@ cat >>tmpmultilib2 <<\EOF
EOF
chmod
+x tmpmultilib2
combinations
=
`
./tmpmultilib2
${
combinations
}
`
rm
-f
./tmpmultilib2
fi
# Construct a sed pattern which will convert option names to directory
...
...
@@ -371,6 +370,7 @@ moptions=`echo ${options} | sed -e 's,[ ][ ]*, ,g'`
echo
""
echo
"static const char *multilib_options =
\"
${
moptions
}
\"
;"
rm
-f
tmpmultilib2
cd
..
rm
-r
tmpmultilib.
$$
exit
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment