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
3326b760
Commit
3326b760
authored
Jan 05, 2001
by
Nick Clifton
Committed by
Nick Clifton
Jan 05, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use alloca to create temporary string for initialisation before calling
ggc_alloc_string. From-SVN: r38732
parent
a7fabf19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
gcc/ChangeLog
+5
-0
gcc/config/v850/v850.c
+3
-3
No files found.
gcc/ChangeLog
View file @
3326b760
2001-01-05 Nick Clifton <nickc@redhat.com>
* config/v850/v850.c (v850_encode_data_area): Use alloca to create
temporary string for initialisation before calling ggc_alloc_string.
2001-01-06 Michael Hayes <mhayes@redhat.com>
* rtl.h (print_simple_rtl): New.
...
...
gcc/config/v850/v850.c
View file @
3326b760
/* Subroutines for insn-output.c for NEC V850 series
Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
Copyright (C) 1996, 1997, 1998, 1999, 2000
, 2001
Free Software Foundation, Inc.
Contributed by Jeff Law (law@cygnus.com).
This file is part of GNU CC.
...
...
@@ -2136,7 +2136,7 @@ v850_encode_data_area (decl)
return
;
}
newstr
=
ggc_alloc_string
(
NULL
,
len
+
2
);
newstr
=
alloca
(
len
+
2
);
strcpy
(
newstr
+
1
,
str
);
...
...
@@ -2148,7 +2148,7 @@ v850_encode_data_area (decl)
default
:
abort
();
}
XSTR
(
XEXP
(
DECL_RTL
(
decl
),
0
),
0
)
=
newstr
;
XSTR
(
XEXP
(
DECL_RTL
(
decl
),
0
),
0
)
=
ggc_alloc_string
(
newstr
,
len
+
2
)
;
}
/* Return true if the given RTX is a register which can be restored
...
...
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