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
4b578ebf
Commit
4b578ebf
authored
Jun 30, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(handle_sysv_pragma): Function moved to c-lex.c.
From-SVN: r1358
parent
a187ac95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
32 deletions
+4
-32
gcc/c-pragma.c
+4
-32
No files found.
gcc/c-pragma.c
View file @
4b578ebf
...
...
@@ -17,6 +17,10 @@ You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <stdio.h>
#include "config.h"
#include "tree.h"
#ifdef HANDLE_SYSV_PRAGMA
/* When structure field packing is in effect, this variable is the
...
...
@@ -25,38 +29,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
extern
int
maximum_field_alignment
;
/* Handle a #pragma directive. INPUT is the current input stream,
and C is a character to reread.
Returns a character for the caller to reread,
or -1 meaning there isn't one. */
int
handle_sysv_pragma
(
input
,
c
)
FILE
*
input
;
int
c
;
{
while
(
c
==
' '
||
c
==
'\t'
)
c
=
getc
(
input
);
if
(
c
==
'\n'
||
c
==
EOF
)
{
handle_pragma_token
(
0
,
0
);
return
c
;
}
ungetc
(
c
,
input
);
switch
(
yylex
())
{
case
IDENTIFIER
:
case
TYPENAME
:
case
STRING
:
case
CONSTANT
:
handle_pragma_token
(
token_buffer
,
yylval
.
ttype
);
break
;
default
:
handle_pragma_token
(
token_buffer
,
0
);
}
return
-
1
;
}
/* Handle one token of a pragma directive. TOKEN is the
current token, and STRING is its printable form. */
...
...
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