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
67f40e18
Commit
67f40e18
authored
Jan 17, 2018
by
Eric Botcazou
Committed by
Eric Botcazou
Jan 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change.
From-SVN: r256778
parent
a3ed8bc3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/c-c++-common/Wrestrict.c
+1
-2
No files found.
gcc/testsuite/ChangeLog
View file @
67f40e18
2018-01-16 Eric Botcazou <ebotcazou@adacore.com>
* c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change.
2018-01-16 Sebastian Peryt <sebastian.peryt@intel.com>
2018-01-16 Sebastian Peryt <sebastian.peryt@intel.com>
PR target/83546
PR target/83546
...
...
gcc/testsuite/c-c++-common/Wrestrict.c
View file @
67f40e18
...
@@ -758,8 +758,7 @@ void test_strcpy_range (void)
...
@@ -758,8 +758,7 @@ void test_strcpy_range (void)
T
(
8
,
"012"
,
a
+
r
,
a
);
/* { dg-warning "accessing 4 bytes at offsets \\\[3, \[0-9\]+] and 0 may overlap 1 byte at offset 3" "strcpy" } */
T
(
8
,
"012"
,
a
+
r
,
a
);
/* { dg-warning "accessing 4 bytes at offsets \\\[3, \[0-9\]+] and 0 may overlap 1 byte at offset 3" "strcpy" } */
r
=
SR
(
DIFF_MAX
-
2
,
DIFF_MAX
-
1
);
r
=
SR
(
DIFF_MAX
-
2
,
DIFF_MAX
-
1
);
T
(
8
,
"0123"
,
a
+
r
,
a
);
/* { dg-warning "accessing 5 bytes at offsets \\\[\[0-9\]+, \[0-9\]+] and 0 overlaps" "strcpy" } */
T
(
8
,
"012"
,
a
+
r
,
a
);
/* { dg-warning "accessing 4 bytes at offsets \\\[\[0-9\]+, \[0-9\]+] and 0 overlaps" "strcpy" } */
/* { dg-warning "writing 5 bytes into a region of size 0 overflows" "memcpy" { target *-*-* } .-1 } */
/* Exercise the full range of ptrdiff_t. */
/* Exercise the full range of ptrdiff_t. */
r
=
signed_value
();
r
=
signed_value
();
...
...
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