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
8d3e27d1
Commit
8d3e27d1
authored
Aug 06, 2002
by
Dale Johannesen
Committed by
Dale Johannesen
Aug 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark __func__ with line number 0, to avoid confusing debuggers.
From-SVN: r56081
parent
8b219a76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
gcc/ChangeLog
+4
-0
gcc/c-common.c
+8
-0
No files found.
gcc/ChangeLog
View file @
8d3e27d1
2002-08-06 Dale Johannesen <dalej@apple.com>
* c-common.c (fname_decl): Use line number 0 for
__func__, to avoid confusing debuggers.
2002-08-06 Nathan Sidwell <nathan@codesourcery.com>
* gcov.c: Tidy.
...
...
gcc/c-common.c
View file @
8d3e27d1
...
...
@@ -1102,6 +1102,13 @@ fname_decl (rid, id)
if
(
!
decl
)
{
tree
saved_last_tree
=
last_tree
;
/* If a tree is built here, it would normally have the lineno of
the current statement. Later this tree will be moved to the
beginning of the function and this line number will be wrong.
To avoid this problem set the lineno to 0 here; that prevents
it from appearing in the RTL. */
int
saved_lineno
=
lineno
;
lineno
=
0
;
decl
=
(
*
make_fname_decl
)
(
id
,
fname_vars
[
ix
].
pretty
);
if
(
last_tree
!=
saved_last_tree
)
...
...
@@ -1117,6 +1124,7 @@ fname_decl (rid, id)
saved_function_name_decls
);
}
*
fname_vars
[
ix
].
decl
=
decl
;
lineno
=
saved_lineno
;
}
if
(
!
ix
&&
!
current_function_decl
)
pedwarn_with_decl
(
decl
,
"`%s' is not defined outside of function scope"
);
...
...
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