diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-29 16:38:26 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-29 16:38:26 +0000 |
commit | 120ad03d83d8765618630b74f7320a2f222dce62 (patch) | |
tree | 26302b5481e79e9084d851184342c5d76e636dc7 /gcc/varasm.c | |
parent | e905c658dbafbb2ede0a4b90d0e6c554d2db687d (diff) | |
download | gcc-120ad03d83d8765618630b74f7320a2f222dce62.tar.gz |
* varasm.c (get_section): Use gcc_assert.
cp:
* method.c (make_thunk): Don't set comdat_linkage here.
(use_thunk): Make thunk one only here, if thunk target is
DECL_ONE_ONLY.
testsuite:
* g++.dg/abi/thunk3.C: New.
* g++.dg/abi/thunk4.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109149 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index f39b07ccc9a..eafba6b0bc8 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -249,10 +249,8 @@ get_section (const char *name, unsigned int flags, tree decl) /* Sanity check user variables for flag changes. */ if (decl == 0) decl = sect->named.decl; - if (decl) - error ("%+D causes a section type conflict", decl); - else - gcc_unreachable (); + gcc_assert (decl); + error ("%+D causes a section type conflict", decl); } } return sect; |