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
1e59a3f8
Commit
1e59a3f8
authored
32 years ago
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(handle_pragma_token): Delete.
From-SVN: r2034
parent
743ff678
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
109 deletions
+0
-109
gcc/config/sparc/sparc.c
+0
-109
No files found.
gcc/config/sparc/sparc.c
View file @
1e59a3f8
...
...
@@ -3031,115 +3031,6 @@ sparc_type_code (type)
}
}
#if defined(HANDLE_PRAGMA) && !defined(HANDLE_SYSV_PRAGMA)
/* Handle a pragma directive. HANDLE_PRAGMA conspires to parse the
input following #pragma into tokens based on yylex. TOKEN is the
current token, and STRING is its printable form. */
void
handle_pragma_token
(
string
,
token
)
char
*
string
;
tree
token
;
{
static
enum
pragma_state
{
ps_start
,
ps_done
,
ps_bad
,
ps_weak
,
ps_name
,
ps_equals
,
ps_value
,
}
state
=
ps_start
,
type
;
static
char
*
name
;
static
char
*
value
;
static
int
align
;
if
(
string
==
0
)
{
#ifdef WEAK_ASM_OP
if
(
type
==
ps_weak
)
{
if
(
state
==
ps_name
||
state
==
ps_value
)
{
fprintf
(
asm_out_file
,
"
\t
%s
\t
"
,
WEAK_ASM_OP
);
ASM_OUTPUT_LABELREF
(
asm_out_file
,
name
);
fputc
(
'\n'
,
asm_out_file
);
if
(
state
==
ps_value
)
{
fputc
(
'\t'
,
asm_out_file
);
ASM_OUTPUT_LABELREF
(
asm_out_file
,
name
);
fputs
(
" = "
,
asm_out_file
);
ASM_OUTPUT_LABELREF
(
asm_out_file
,
value
);
fputc
(
'\n'
,
asm_out_file
);
}
}
else
if
(
!
(
state
==
ps_done
||
state
==
ps_start
))
warning
(
"ignoring malformed #pragma weak symbol [=value]"
);
}
#endif
/* WEAK_ASM_OP */
type
=
state
=
ps_start
;
return
;
}
switch
(
state
)
{
case
ps_start
:
if
(
token
&&
TREE_CODE
(
token
)
==
IDENTIFIER_NODE
)
{
#ifdef WEAK_ASM_OP
if
(
strcmp
(
IDENTIFIER_POINTER
(
token
),
"weak"
)
==
0
)
type
=
state
=
ps_weak
;
else
#endif
type
=
state
=
ps_done
;
}
else
type
=
state
=
ps_done
;
break
;
#ifdef WEAK_ASM_OP
case
ps_weak
:
if
(
token
&&
TREE_CODE
(
token
)
==
IDENTIFIER_NODE
)
{
name
=
IDENTIFIER_POINTER
(
token
);
state
=
ps_name
;
}
else
state
=
ps_bad
;
break
;
case
ps_name
:
state
=
(
strcmp
(
string
,
"="
)
?
ps_bad
:
ps_equals
);
break
;
case
ps_equals
:
if
(
token
&&
TREE_CODE
(
token
)
==
IDENTIFIER_NODE
)
{
value
=
IDENTIFIER_POINTER
(
token
);
state
=
ps_value
;
}
else
state
=
ps_bad
;
break
;
case
ps_value
:
state
=
ps_bad
;
break
;
#endif
/* WEAK_ASM_OP */
case
ps_bad
:
case
ps_done
:
break
;
default
:
abort
();
}
}
#endif
/* HANDLE_PRAGMA && not HANDLE_SYSV_PRAGMA */
/* Subroutines to support a flat (single) register window calling
convention. */
...
...
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