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
b167666c
Commit
b167666c
authored
May 15, 2005
by
Richard Sandiford
Committed by
Richard Sandiford
May 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* optc-gen.awk: Remove excess indentation.
From-SVN: r99714
parent
b078dfbf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
36 deletions
+40
-36
gcc/ChangeLog
+4
-0
gcc/optc-gen.awk
+36
-36
No files found.
gcc/ChangeLog
View file @
b167666c
2005-05-15 Richard Sandiford <rsandifo@redhat.com>
* optc-gen.awk: Remove excess indentation.
2005-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.c (sh_output_mi_thunk): Check cfun->cfg instead
...
...
gcc/optc-gen.awk
View file @
b167666c
...
...
@@ -98,47 +98,47 @@ print "const struct cl_option cl_options[] =\n{"
for
(
i
=
0
;
i
<
n_opts
;
i
++
)
back_chain
[
i
]
=
"N_OPTS"
;
for
(
i
=
0
;
i
<
n_opts
;
i
++
)
{
# Combine the flags of identical switches. Switches
# appear many times if they are handled by many front
# ends, for example.
while
(
i
+
1
!=
n_opts
&&
opts
[
i
]
==
opts
[
i
+
1
]
)
{
flags
[
i
+
1
]
=
flags
[
i
]
" "
flags
[
i
+
1
];
i
++
;
}
for
(
i
=
0
;
i
<
n_opts
;
i
++
)
{
# Combine the flags of identical switches. Switches
# appear many times if they are handled by many front
# ends, for example.
while
(
i
+
1
!=
n_opts
&&
opts
[
i
]
==
opts
[
i
+
1
]
)
{
flags
[
i
+
1
]
=
flags
[
i
]
" "
flags
[
i
+
1
];
i
++
;
}
len
=
length
(
opts
[
i
]);
enum
=
"OPT_"
opts
[
i
]
if
(
opts
[
i
]
==
"finline-limit="
)
enum
=
enum
"eq"
gsub
(
"[^A-Za-z0-9]"
,
"_"
,
enum
)
# If this switch takes joined arguments, back-chain all
# subsequent switches to it for which it is a prefix. If
# a later switch S is a longer prefix of a switch T, T
# will be back-chained to S in a later iteration of this
# for() loop, which is what we want.
if
(
flag_set_p
(
"Joined.*"
,
flags
[
i
]))
{
for
(
j
=
i
+
1
;
j
<
n_opts
;
j
++
)
{
if
(
substr
(
opts
[
j
],
1
,
len
)
!=
opts
[
i
])
break
;
back_chain
[
j
]
=
enum
;
}
len
=
length
(
opts
[
i
]);
enum
=
"OPT_"
opts
[
i
]
if
(
opts
[
i
]
==
"finline-limit="
)
enum
=
enum
"eq"
gsub
(
"[^A-Za-z0-9]"
,
"_"
,
enum
)
# If this switch takes joined arguments, back-chain all
# subsequent switches to it for which it is a prefix. If
# a later switch S is a longer prefix of a switch T, T
# will be back-chained to S in a later iteration of this
# for() loop, which is what we want.
if
(
flag_set_p
(
"Joined.*"
,
flags
[
i
]))
{
for
(
j
=
i
+
1
;
j
<
n_opts
;
j
++
)
{
if
(
substr
(
opts
[
j
],
1
,
len
)
!=
opts
[
i
])
break
;
back_chain
[
j
]
=
enum
;
}
}
s
=
substr
(
" "
,
length
(
opts
[
i
]))
if
(
i
+
1
==
n_opts
)
comma
=
""
s
=
substr
(
" "
,
length
(
opts
[
i
]))
if
(
i
+
1
==
n_opts
)
comma
=
""
if
(
help
[
i
]
==
""
)
hlp
=
"0"
else
hlp
=
quote
help
[
i
]
quote
;
if
(
help
[
i
]
==
""
)
hlp
=
"0"
else
hlp
=
quote
help
[
i
]
quote
;
printf
(
" { %c-%s%c,\n %s,\n %s, %u, %s, %s, %s }%s\n"
,
quote
,
opts
[
i
],
quote
,
hlp
,
back_chain
[
i
],
len
,
switch_flags
(
flags
[
i
]),
var_ref
(
flags
[
i
]),
var_set
(
flags
[
i
]),
comma
)
printf
(
" { %c-%s%c,\n %s,\n %s, %u, %s, %s, %s }%s\n"
,
quote
,
opts
[
i
],
quote
,
hlp
,
back_chain
[
i
],
len
,
switch_flags
(
flags
[
i
]),
var_ref
(
flags
[
i
]),
var_set
(
flags
[
i
]),
comma
)
}
print
"};"
...
...
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