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
0b760f1e
Commit
0b760f1e
authored
Sep 24, 1993
by
James Van Artsdalen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ASM_OUTPUT_ASCII): Enclose macro in "do { .. } while (0)".
From-SVN: r5443
parent
4f1c4914
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
gcc/config/i386/att.h
+4
-2
gcc/config/i386/sun386.h
+5
-3
No files found.
gcc/config/i386/att.h
View file @
0b760f1e
...
@@ -37,13 +37,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -37,13 +37,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* How to output an ASCII string constant. */
/* How to output an ASCII string constant. */
#define ASM_OUTPUT_ASCII(FILE, p, size) \
#define ASM_OUTPUT_ASCII(FILE, p, size) \
do \
{ int i = 0; \
{ int i = 0; \
while (i < (size)) \
while (i < (size)) \
{ if (i%10 == 0) { if (i!=0) fprintf ((FILE), "\n"); \
{ if (i%10 == 0) { if (i!=0) fprintf ((FILE), "\n"); \
fprintf ((FILE), "%s ", ASM_BYTE_OP); } \
fprintf ((FILE), "%s ", ASM_BYTE_OP); } \
else fprintf ((FILE), ",");
\
else fprintf ((FILE), ","); \
fprintf ((FILE), "0x%x", ((p)[i++] & 0377)) ;} \
fprintf ((FILE), "0x%x", ((p)[i++] & 0377)) ;} \
fprintf ((FILE), "\n"); }
fprintf ((FILE), "\n"); \
} while (0)
/* Do use .optim by default on this machine. */
/* Do use .optim by default on this machine. */
#undef ASM_FILE_START_1
#undef ASM_FILE_START_1
...
...
gcc/config/i386/sun386.h
View file @
0b760f1e
...
@@ -40,13 +40,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
...
@@ -40,13 +40,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* How to output an ASCII string constant. */
/* How to output an ASCII string constant. */
#define ASM_OUTPUT_ASCII(FILE, p, size) \
#define ASM_OUTPUT_ASCII(FILE, p, size) \
do \
{ int i = 0; \
{ int i = 0; \
while (i < (size)) \
while (i < (size)) \
{ if (i%10 == 0) { if (i!=0) fprintf ((FILE), "\n");
\
{ if (i%10 == 0) { if (i!=0) fprintf ((FILE), "\n"); \
fprintf ((FILE), "%s ", ASM_BYTE_OP); } \
fprintf ((FILE), "%s ", ASM_BYTE_OP); } \
else fprintf ((FILE), ",");
\
else fprintf ((FILE), ","); \
fprintf ((FILE), "0x%x", ((p)[i++] & 0377)) ;} \
fprintf ((FILE), "0x%x", ((p)[i++] & 0377)) ;} \
fprintf ((FILE), "\n"); }
fprintf ((FILE), "\n"); \
} while (0)
/* Output at beginning of assembler file. */
/* Output at beginning of assembler file. */
/* The .file command should always begin the output. */
/* The .file command should always begin the output. */
...
...
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