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
9e7270cd
Commit
9e7270cd
authored
31 years ago
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If NO_BUILTIN_SIZE_TYPE defined, don't refer to SIZE_TYPE.
Likewise for PTRDIFF_TYPE From-SVN: r5490
parent
572ca60a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
gcc/cccp.c
+8
-0
No files found.
gcc/cccp.c
View file @
9e7270cd
...
...
@@ -3686,15 +3686,19 @@ special_symbol (hp, op)
sprintf
(
buf
,
"
\"
%s
\"
"
,
version_string
);
break
;
#ifndef NO_BUILTIN_SIZE_TYPE
case
T_SIZE_TYPE
:
buf
=
(
char
*
)
alloca
(
3
+
strlen
(
SIZE_TYPE
));
sprintf
(
buf
,
"%s"
,
SIZE_TYPE
);
break
;
#endif
#ifndef NO_BUILTIN_PTRDIFF_TYPE
case
T_PTRDIFF_TYPE
:
buf
=
(
char
*
)
alloca
(
3
+
strlen
(
PTRDIFF_TYPE
));
sprintf
(
buf
,
"%s"
,
PTRDIFF_TYPE
);
break
;
#endif
case
T_WCHAR_TYPE
:
buf
=
(
char
*
)
alloca
(
3
+
strlen
(
WCHAR_TYPE
));
...
...
@@ -8491,13 +8495,17 @@ initialize_builtins (inp, outp)
output_line_command
(
inp
,
outp
,
0
,
same_file
);
pass_thru_directive
(
directive
,
&
directive
[
strlen
(
directive
)],
outp
,
dp
);
#ifndef NO_BUILTIN_SIZE_TYPE
sprintf
(
directive
,
" __SIZE_TYPE__ %s
\n
"
,
SIZE_TYPE
);
output_line_command
(
inp
,
outp
,
0
,
same_file
);
pass_thru_directive
(
directive
,
&
directive
[
strlen
(
directive
)],
outp
,
dp
);
#endif
#ifndef NO_BUILTIN_PTRDIFF_TYPE
sprintf
(
directive
,
" __PTRDIFF_TYPE__ %s
\n
"
,
PTRDIFF_TYPE
);
output_line_command
(
inp
,
outp
,
0
,
same_file
);
pass_thru_directive
(
directive
,
&
directive
[
strlen
(
directive
)],
outp
,
dp
);
#endif
sprintf
(
directive
,
" __WCHAR_TYPE__ %s
\n
"
,
WCHAR_TYPE
);
output_line_command
(
inp
,
outp
,
0
,
same_file
);
...
...
This diff is collapsed.
Click to expand it.
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