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
8e16ab99
Commit
8e16ab99
authored
Sep 17, 2002
by
Samuel Figueroa
Committed by
Dale Johannesen
Sep 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sam Figueroa's change to add ASM_OUTPUT_ALIGN_WITH_NOP.
From-SVN: r57261
parent
ac19be7e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
0 deletions
+21
-0
gcc/ChangeLog
+5
-0
gcc/config/sparc/sparc.h
+7
-0
gcc/doc/tm.texi
+5
-0
gcc/final.c
+4
-0
No files found.
gcc/ChangeLog
View file @
8e16ab99
2002
-
09
-
17
Samuel
Figueroa
<
figueroa
@apple
.
com
>
*
final
.
c
(
final_scan_insn
)
:
Use
new
macro
ASM_OUTPUT_ALIGN_WITH_NOP
.
*
config
/
sparc
/
sparc
.
h
(
ASM_OUTPUT_ALIGN_WITH_NOP
)
New
macro
.
*
doc
/
tm
.
texi
(
ASM_OUTPUT_ALIGN_WITH_NOP
)
New
description
.
2002
-
09
-
17
Dale
Johannesen
<
dalej
@apple
.
com
>
*
cfgcleanup
.
c
(
try_forward_edges
)
:
Do
not
forward
a
branch
to
just
after
a
loop
exit
before
loop
optimization
;
...
...
gcc/config/sparc/sparc.h
View file @
8e16ab99
...
...
@@ -2812,6 +2812,13 @@ do { \
if ((LOG) != 0) \
fprintf (FILE, "\t.align %d\n", (1<<(LOG)))
/* This is how to output an assembler line that says to advance
the location counter to a multiple of 2**LOG bytes using the
"nop" instruction as padding. */
#define ASM_OUTPUT_ALIGN_WITH_NOP(FILE,LOG) \
if ((LOG) != 0) \
fprintf (FILE, "\t.align %d,0x1000000\n", (1<<(LOG)))
#define ASM_OUTPUT_SKIP(FILE,SIZE) \
fprintf (FILE, "\t.skip %u\n", (SIZE))
...
...
gcc/doc/tm.texi
View file @
8e16ab99
...
...
@@ -7577,6 +7577,11 @@ A C statement to output to the stdio stream @var{stream} an assembler
command
to
advance
the
location
counter
to
a
multiple
of
2
to
the
@var{
power
}
bytes
.
@var{
power
}
will
be
a
C
expression
of
type
@code{
int
}
.
@findex
ASM_OUTPUT_ALIGN_WITH_NOP
@item
ASM_OUTPUT_ALIGN_WITH_NOP
(
@var{
stream
}
,
@var{
power
}
)
Like
@code{
ASM_OUTPUT_ALIGN
}
,
except
that
the
``
nop
''
instruction
is
used
for
padding
,
if
necessary
.
@findex
ASM_OUTPUT_MAX_SKIP_ALIGN
@item
ASM_OUTPUT_MAX_SKIP_ALIGN
(
@var{
stream
}
,
@var{
power
}
,
@var{
max_skip
}
)
A
C
statement
to
output
to
the
stdio
stream
@var{
stream
}
an
assembler
...
...
gcc/final.c
View file @
8e16ab99
...
...
@@ -2185,8 +2185,12 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
#ifdef ASM_OUTPUT_MAX_SKIP_ALIGN
ASM_OUTPUT_MAX_SKIP_ALIGN
(
file
,
align
,
max_skip
);
#else
#ifdef ASM_OUTPUT_ALIGN_WITH_NOP
ASM_OUTPUT_ALIGN_WITH_NOP
(
file
,
align
);
#else
ASM_OUTPUT_ALIGN
(
file
,
align
);
#endif
#endif
}
}
#ifdef HAVE_cc0
...
...
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