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
9e3c9e1b
Commit
9e3c9e1b
authored
Apr 28, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r854
parent
9dee6758
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
20 deletions
+26
-20
gcc/c-decl.c
+26
-20
No files found.
gcc/c-decl.c
View file @
9e3c9e1b
...
...
@@ -2495,23 +2495,6 @@ init_decl_processing ()
BUILT_IN_ALLOCA
,
0
);
/* Suppress error if redefined as a non-function. */
DECL_BUILT_IN_NONANSI
(
temp
)
=
1
;
/* Declare these functions volatile
to avoid spurious "control drops through" warnings. */
/* Don't specify the argument types, to avoid errors
from certain code which isn't valid in ANSI but which exists. */
temp
=
builtin_function
(
"abort"
,
build_function_type
(
void_type_node
,
0
),
NOT_BUILT_IN
,
0
);
TREE_THIS_VOLATILE
(
temp
)
=
1
;
TREE_SIDE_EFFECTS
(
temp
)
=
1
;
/* Suppress error if redefined as a non-function. */
DECL_BUILT_IN_NONANSI
(
temp
)
=
1
;
exit_type
=
build_function_type
(
void_type_node
,
0
);
temp
=
builtin_function
(
"exit"
,
exit_type
,
NOT_BUILT_IN
,
0
);
TREE_THIS_VOLATILE
(
temp
)
=
1
;
TREE_SIDE_EFFECTS
(
temp
)
=
1
;
/* Suppress error if redefined as a non-function. */
DECL_BUILT_IN_NONANSI
(
temp
)
=
1
;
temp
=
builtin_function
(
"_exit"
,
exit_type
,
NOT_BUILT_IN
,
0
);
TREE_THIS_VOLATILE
(
temp
)
=
1
;
TREE_SIDE_EFFECTS
(
temp
)
=
1
;
...
...
@@ -2562,10 +2545,11 @@ init_decl_processing ()
/* In an ANSI C program, it is okay to supply built-in meanings
for these functions, since applications cannot validly use them
with any other meaning.
However, a traditional C program can do so.
Also, honor the -fno-builtin option. */
if
(
!
flag_traditional
&&
!
flag_no_builtin
)
However, honor the -fno-builtin option. */
if
(
!
flag_no_builtin
)
{
tree
exit_type
;
builtin_function
(
"abs"
,
int_ftype_int
,
BUILT_IN_ABS
,
0
);
builtin_function
(
"fabs"
,
double_ftype_double
,
BUILT_IN_FABS
,
0
);
builtin_function
(
"labs"
,
long_ftype_long
,
BUILT_IN_LABS
,
0
);
...
...
@@ -2575,6 +2559,28 @@ init_decl_processing ()
builtin_function
(
"strcpy"
,
string_ftype_ptr_ptr
,
BUILT_IN_STRCPY
,
0
);
builtin_function
(
"strlen"
,
sizet_ftype_string
,
BUILT_IN_STRLEN
,
0
);
builtin_function
(
"sqrt"
,
double_ftype_double
,
BUILT_IN_FSQRT
,
0
);
/* Declare these functions volatile
to avoid spurious "control drops through" warnings. */
/* Don't specify the argument types, to avoid errors
from certain code which isn't valid in ANSI but which exists. */
temp
=
builtin_function
(
"abort"
,
build_function_type
(
void_type_node
,
0
),
NOT_BUILT_IN
,
0
);
TREE_THIS_VOLATILE
(
temp
)
=
1
;
TREE_SIDE_EFFECTS
(
temp
)
=
1
;
#if 0
/* Suppress error if redefined as a non-function. */
DECL_BUILT_IN_NONANSI (temp) = 1;
#endif
exit_type
=
build_function_type
(
void_type_node
,
0
);
temp
=
builtin_function
(
"exit"
,
exit_type
,
NOT_BUILT_IN
,
0
);
TREE_THIS_VOLATILE
(
temp
)
=
1
;
TREE_SIDE_EFFECTS
(
temp
)
=
1
;
#if 0
/* Suppress error if redefined as a non-function. */
DECL_BUILT_IN_NONANSI (temp) = 1;
#endif
}
#if 0
...
...
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