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
dc994a6d
Commit
dc994a6d
authored
Oct 25, 1999
by
Bruce Korb
Committed by
Bruce Korb
Oct 25, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide a means for specifying -D options to AutoGen
From-SVN: r30165
parent
311dc497
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
13 deletions
+55
-13
gcc/ChangeLog
+4
-0
gcc/fixinc/genfixes
+51
-13
No files found.
gcc/ChangeLog
View file @
dc994a6d
1999
-
10
-
25
Bruce
Korb
<
autogen
@linuxbox
.
com
>
*
fixinc
/
genfixes
:
Provide
a
means
for
specifying
-
D
options
to
AutoGen
Mon
Oct
25
00
:
42
:
35
1999
Jeffrey
A
Law
(
law
@cygnus
.
com
)
Mon
Oct
25
00
:
42
:
35
1999
Jeffrey
A
Law
(
law
@cygnus
.
com
)
*
loop
.
c
(
note_set_pseudo_multiple_uses_retval
)
:
New
variable
.
*
loop
.
c
(
note_set_pseudo_multiple_uses_retval
)
:
New
variable
.
...
...
gcc/fixinc/genfixes
View file @
dc994a6d
#! /bin/sh
#! /bin/sh
if
(
autogen
--help
>
/dev/null 2>&1
)
;
then
:
;
else
echo
"AutoGen does not appear to be correctly installed."
echo
"Please download and install:"
echo
" ftp://sourceware.cygnus.com/pub/egcs/infrastructure/autogen.tar.gz"
exit
1
fi
SHELL
=
/bin/sh
SHELL
=
/bin/sh
export
SHELL
export
SHELL
AG
=
""
if
[
$#
-eq
0
]
;
then
not_done
=
false
else
not_done
=
true
fi
while
$not_done
do
case
"
$1
"
in
-D
)
shift
if
[
$#
-eq
0
]
;
then
not_done
=
false
else
AG
=
"
$AG
-D
$1
"
shift
fi
;;
-D
*
)
AG
=
"
$AG
$1
"
shift
;;
'-?'
)
echo
"USAGE: gendefs [ -D<def-name> ... ] [ <output-name> ]"
echo
"WHERE: '<def-name>' specifies a #define test name from inclhack.def"
echo
" and '<output-name>' is one of: inclhack.sh fixincl.x fixincl.sh"
echo
"The default is to produce all three outputs."
exit
0
;;
*
)
not_done
=
false
;;
esac
done
if
[
$#
-eq
0
]
;
then
if
[
$#
-eq
0
]
;
then
echo
AutoGen-ing inclhack.sh
echo
AutoGen-ing inclhack.sh
autogen
inclhack.def
$AG
inclhack.def
echo
AutoGen-ing fixincl.x
echo
AutoGen-ing fixincl.x
autogen
-T
fixincl.tpl
-b
fixincl inclhack.def
$AG
-T
fixincl.tpl
-b
fixincl inclhack.def
echo
AutoGen-ing fixincl.sh
echo
AutoGen-ing fixincl.sh
autogen
-DPROGRAM
=
1
-b
fixincl inclhack.def
$AG
-DPROGRAM
=
1
-b
fixincl inclhack.def
exit
0
exit
0
fi
fi
if
(
autogen
--help
>
/dev/null 2>&1
)
;
then
:
;
else
echo
"AutoGen does not appear to be correctly installed."
echo
"Please download and install:"
echo
" ftp://sourceware.cygnus.com/pub/egcs/infrastructure/autogen.tar.gz"
exit
1
fi
set
-e
set
-e
case
"
$1
"
in
case
"
$1
"
in
inclhack.def
)
inclhack.def
)
echo
AutoGen-ing inclhack.sh
echo
AutoGen-ing inclhack.sh
autogen
inclhack.sh
$AG
inclhack.sh
;;
;;
fixincl.x
)
fixincl.x
)
echo
AutoGen-ing fixincl.x
echo
AutoGen-ing fixincl.x
autogen
-T
fixincl.tpl
-b
fixincl inclhack.def
$AG
-T
fixincl.tpl
-b
fixincl inclhack.def
;;
;;
fixincl.sh
)
fixincl.sh
)
echo
AutoGen-ing fixincl.sh
echo
AutoGen-ing fixincl.sh
autogen
-DPROGRAM
=
1
-b
fixincl inclhack.def
$AG
-DPROGRAM
=
1
-b
fixincl inclhack.def
;;
;;
*
)
*
)
...
...
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