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
aabef2de
Commit
aabef2de
authored
Oct 01, 2015
by
Marek Polacek
Committed by
Marek Polacek
Oct 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-typeck.c (convert_for_assignment): Improve commentary.
From-SVN: r228327
parent
228ae470
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
gcc/c/ChangeLog
+4
-0
gcc/c/c-typeck.c
+12
-2
No files found.
gcc/c/ChangeLog
View file @
aabef2de
2015-10-01 Marek Polacek <polacek@redhat.com>
* c-typeck.c (convert_for_assignment): Improve commentary.
2015-09-30 Marek Polacek <polacek@redhat.com>
2015-09-30 Marek Polacek <polacek@redhat.com>
PR c/67730
PR c/67730
...
...
gcc/c/c-typeck.c
View file @
aabef2de
...
@@ -5690,8 +5690,18 @@ maybe_warn_string_init (location_t loc, tree type, struct c_expr expr)
...
@@ -5690,8 +5690,18 @@ maybe_warn_string_init (location_t loc, tree type, struct c_expr expr)
ERRTYPE says whether it is argument passing, assignment,
ERRTYPE says whether it is argument passing, assignment,
initialization or return.
initialization or return.
LOCATION is the location of the assignment, EXPR_LOC is the location of
In the following example, '~' denotes where EXPR_LOC and '^' where
the RHS or, for a function, location of an argument.
LOCATION point to:
f (var); [ic_argpass]
^ ~~~
x = var; [ic_assign]
^ ~~~;
int x = var; [ic_init]
^^^
return x; [ic_return]
^
FUNCTION is a tree for the function being called.
FUNCTION is a tree for the function being called.
PARMNUM is the number of the argument, for printing in error messages. */
PARMNUM is the number of the argument, for printing in error messages. */
...
...
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