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
f7d2e5d4
Commit
f7d2e5d4
authored
Apr 19, 2011
by
Janne Blomqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use XCNEWVAR instead of xcalloc
From-SVN: r172730
parent
6c13c5f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/fortran/ChangeLog
+4
-0
gcc/fortran/scanner.c
+2
-2
No files found.
gcc/fortran/ChangeLog
View file @
f7d2e5d4
2011-04-19 Janne Blomqvist <jb@gcc.gnu.org>
* scanner.c (load_file): Use XCNEWVAR instead of xcalloc.
2011-04-19 Janne Blomqvist <jb@gcc.gnu.org>
* frontend-passes.c (gfc_run_passes): Use XDELETEVEC instead of
free.
...
...
gcc/fortran/scanner.c
View file @
f7d2e5d4
...
...
@@ -2012,8 +2012,8 @@ load_file (const char *realfilename, const char *displayedname, bool initial)
/* Add line. */
b
=
(
gfc_linebuf
*
)
xcalloc
(
1
,
gfc_linebuf_header_size
+
(
len
+
1
)
*
sizeof
(
gfc_char_t
));
b
=
XCNEWVAR
(
gfc_linebuf
,
gfc_linebuf_header_size
+
(
len
+
1
)
*
sizeof
(
gfc_char_t
));
b
->
location
=
linemap_line_start
(
line_table
,
current_file
->
line
++
,
120
);
...
...
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