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
4b1d52c7
Commit
4b1d52c7
authored
Jun 07, 2002
by
Gabriel Dos Reis
Committed by
Gabriel Dos Reis
Jun 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* diagnostic.c (diagnostic_build_prefix): Tidy.
From-SVN: r54337
parent
255d3c70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
18 deletions
+20
-18
gcc/ChangeLog
+4
-0
gcc/diagnostic.c
+16
-18
No files found.
gcc/ChangeLog
View file @
4b1d52c7
2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
* diagnostic.c (diagnostic_build_prefix): Tidy.
2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
* cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
* cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
...
...
gcc/diagnostic.c
View file @
4b1d52c7
...
@@ -790,24 +790,22 @@ char *
...
@@ -790,24 +790,22 @@ char *
diagnostic_build_prefix
(
diagnostic
)
diagnostic_build_prefix
(
diagnostic
)
diagnostic_info
*
diagnostic
;
diagnostic_info
*
diagnostic
;
{
{
if
(
diagnostic
->
location
.
file
)
static
const
char
*
diagnostic_kind_text
[]
=
{
{
#define DEFINE_DIAGNOSTIC_KIND(K, T) _(T),
if
(
diagnostic
->
kind
==
DK_WARNING
)
#include "diagnostic.def"
return
build_message_string
(
_
(
"%s:%d: warning: "
),
#undef DEFINE_DIAGNOSTIC_KIND
diagnostic
->
location
.
file
,
"must-not-happen"
diagnostic
->
location
.
line
);
};
else
if
(
diagnostic
->
kind
>=
DK_LAST_DIAGNOSTIC_KIND
)
return
build_message_string
(
"%s:%d: "
,
abort
();
diagnostic
->
location
.
file
,
diagnostic
->
location
.
line
);
return
diagnostic
->
location
.
file
}
?
build_message_string
(
"%s:%d: %s"
,
else
diagnostic
->
location
.
file
,
{
diagnostic
->
location
.
line
,
if
(
diagnostic
->
kind
==
DK_WARNING
)
diagnostic_kind_text
[
diagnostic
->
kind
])
return
build_message_string
(
_
(
"%s: warning: "
),
progname
);
:
build_message_string
(
"%s: %s"
,
progname
,
else
diagnostic_kind_text
[
diagnostic
->
kind
]);
return
build_message_string
(
"%s: "
,
progname
);
}
}
}
/* Report a diagnostic MESSAGE at the declaration DECL.
/* Report a diagnostic MESSAGE at the declaration DECL.
...
...
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