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
8f7d0ab9
Commit
8f7d0ab9
authored
Nov 19, 2014
by
Andreas Schwab
Committed by
Andreas Schwab
Nov 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/pure-2.c: Update line numbers.
From-SVN: r217754
parent
05f9c675
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/pure-2.c
+3
-3
No files found.
gcc/testsuite/ChangeLog
View file @
8f7d0ab9
2014
-
11
-
19
Andreas
Schwab
<
schwab
@
suse
.
de
>
*
gcc
.
dg
/
pure
-
2.
c
:
Update
line
numbers
.
2014
-
11
-
19
Jakub
Jelinek
<
jakub
@
redhat
.
com
>
PR
rtl
-
optimization
/
63843
...
...
gcc/testsuite/gcc.dg/pure-2.c
View file @
8f7d0ab9
...
...
@@ -8,14 +8,14 @@ extern int v;
/* Trivial. */
int
foo1
(
int
a
)
/* { dg-bogus "normally" "detect pure candidate" } */
{
/* { dg-warning "pure" "detect pure candidate" { target *-*-* } "
9
" } */
{
/* { dg-warning "pure" "detect pure candidate" { target *-*-* } "
10
" } */
return
v
;
}
/* Loops known to be normally and extern const calls should be safe. */
int
__attribute__
((
noinline
))
foo2
(
int
n
)
/* { dg-bogus "normally" "detect pure candidate" } */
{
/* { dg-warning "pure" "detect pure candidate" { target *-*-* } "1
6
" } */
{
/* { dg-warning "pure" "detect pure candidate" { target *-*-* } "1
7
" } */
int
ret
=
0
;
int
i
;
for
(
i
=
0
;
i
<
n
;
i
++
)
...
...
@@ -53,6 +53,6 @@ foo4(int n) /* { dg-warning "pure\[^\n\]* normally" "detect pure candidate" } *
int
foo5
(
int
n
)
/* { dg-bogus "normally" "detect pure candidate" } */
{
/* { dg-warning "pure" "detect pure candidate" { target *-*-* } "5
4
" } */
{
/* { dg-warning "pure" "detect pure candidate" { target *-*-* } "5
5
" } */
return
foo2
(
n
);
}
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