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
94c040bd
Commit
94c040bd
authored
Jan 07, 2003
by
Richard Henderson
Committed by
Richard Henderson
Jan 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
From-SVN: r61007
parent
b47ffb8f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
gcc/ChangeLog
+4
-0
gcc/cfganal.c
+6
-5
gcc/testsuite/gcc.dg/20030107-1.c
+5
-0
No files found.
gcc/ChangeLog
View file @
94c040bd
2003
-
01
-
07
Richard
Henderson
<
rth
@redhat
.
com
>
*
cfganal
.
c
(
flow_call_edges_add
)
:
Don
'
t
crash
on
noreturn
call
.
2003
-
01
-
07
Daniel
Berlin
<
dberlin
@dberlin
.
org
>
2003
-
01
-
07
Daniel
Berlin
<
dberlin
@dberlin
.
org
>
*
cfg
.
c
:
Include
alloc
-
pool
.
h
*
cfg
.
c
:
Include
alloc
-
pool
.
h
...
...
gcc/cfganal.c
View file @
94c040bd
/* Control flow graph analysis code for GNU compiler.
/* Control flow graph analysis code for GNU compiler.
Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001 Free Software Foundation, Inc.
1999, 2000, 2001
, 2003
Free Software Foundation, Inc.
This file is part of GCC.
This file is part of GCC.
...
@@ -322,10 +322,11 @@ flow_call_edges_add (blocks)
...
@@ -322,10 +322,11 @@ flow_call_edges_add (blocks)
for
(
e
=
bb
->
succ
;
e
;
e
=
e
->
succ_next
)
for
(
e
=
bb
->
succ
;
e
;
e
=
e
->
succ_next
)
if
(
e
->
dest
==
EXIT_BLOCK_PTR
)
if
(
e
->
dest
==
EXIT_BLOCK_PTR
)
break
;
{
insert_insn_on_edge
(
gen_rtx_USE
(
VOIDmode
,
const0_rtx
),
e
);
insert_insn_on_edge
(
gen_rtx_USE
(
VOIDmode
,
const0_rtx
),
e
);
commit_edge_insertions
();
commit_edge_insertions
();
break
;
}
}
}
}
}
...
...
gcc/testsuite/gcc.dg/20030107-1.c
0 → 100644
View file @
94c040bd
/* { dg-do compile } */
/* { dg-options "-fprofile-arcs" } */
extern
void
bar
(
void
)
__attribute__
((
noreturn
));
int
foo
(
void
)
{
bar
();
}
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