aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@gcc.gnu.org>2005-12-29 16:38:26 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2005-12-29 16:38:26 +0000
commitbf2f234e754b1a820d8b33b8910d157d3c7e0edd (patch)
tree26302b5481e79e9084d851184342c5d76e636dc7 /gcc/varasm.c
parent42b67c06ed335cf1c6f0cf9a3751ea35099393f4 (diff)
downloadgcc-bf2f234e754b1a820d8b33b8910d157d3c7e0edd.zip
gcc-bf2f234e754b1a820d8b33b8910d157d3c7e0edd.tar.gz
gcc-bf2f234e754b1a820d8b33b8910d157d3c7e0edd.tar.bz2
varasm.c (get_section): Use gcc_assert.
* 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. From-SVN: r109149
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index f39b07c..eafba6b 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;