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
0172e2bc
Commit
0172e2bc
authored
25 years ago
by
Alexandre Oliva
Committed by
Alexandre Oliva
25 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cpplib.c (do_pragma): Accept #pragma without consecutive token.
From-SVN: r32211
parent
22e92ac3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
gcc/ChangeLog
+4
-0
gcc/cpplib.c
+10
-2
No files found.
gcc/ChangeLog
View file @
0172e2bc
2000
-
02
-
27
Alexandre
Oliva
<
oliva
@lsd
.
ic
.
unicamp
.
br
>
*
cpplib
.
c
(
do_pragma
)
:
Accept
#
pragma
without
consecutive
token
.
2000
-
02
-
26
Mark
Mitchell
<
mark
@codesourcery
.
com
>
*
integrate
.
c
(
copy_decl_for_inlining
)
:
Preserve
TREE_ADDRESSABLE
...
...
This diff is collapsed.
Click to expand it.
gcc/cpplib.c
View file @
0172e2bc
...
...
@@ -1615,14 +1615,21 @@ do_pragma (pfile, keyword)
long
here
,
key
;
U_CHAR
*
buf
;
int
pop
;
enum
cpp_token
token
;
here
=
CPP_WRITTEN
(
pfile
);
CPP_PUTS
(
pfile
,
"#pragma "
,
8
);
key
=
CPP_WRITTEN
(
pfile
);
pfile
->
no_macro_expand
++
;
if
(
get_directive_token
(
pfile
)
!=
CPP_NAME
)
goto
skip
;
token
=
get_directive_token
(
pfile
);
if
(
token
!=
CPP_NAME
)
{
if
(
token
==
CPP_VSPACE
)
goto
empty
;
else
goto
skip
;
}
buf
=
pfile
->
token_buffer
+
key
;
CPP_PUTC
(
pfile
,
' '
);
...
...
@@ -1649,6 +1656,7 @@ do_pragma (pfile, keyword)
skip
:
cpp_error
(
pfile
,
"malformed #pragma directive"
);
skip_rest_of_line
(
pfile
);
empty
:
CPP_SET_WRITTEN
(
pfile
,
here
);
pfile
->
no_macro_expand
--
;
return
0
;
...
...
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