Mercurial > hg > CbC > CbC_gcc
comparison libiberty/cplus-dem.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* Demangler for GNU C++ | 1 /* Demangler for GNU C++ |
2 Copyright (C) 1989-2017 Free Software Foundation, Inc. | 2 Copyright (C) 1989-2018 Free Software Foundation, Inc. |
3 Written by James Clark (jjc@jclark.uucp) | 3 Written by James Clark (jjc@jclark.uucp) |
4 Rewritten by Fred Fish (fnf@cygnus.com) for ARM and Lucid demangling | 4 Rewritten by Fred Fish (fnf@cygnus.com) for ARM and Lucid demangling |
5 Modified by Satish Pai (pai@apollo.hp.com) for HP demangling | 5 Modified by Satish Pai (pai@apollo.hp.com) for HP demangling |
6 | 6 |
7 This file is part of the libiberty library. | 7 This file is part of the libiberty library. |
4469 int len, int index) | 4469 int len, int index) |
4470 { | 4470 { |
4471 char *tem; | 4471 char *tem; |
4472 | 4472 |
4473 tem = XNEWVEC (char, len + 1); | 4473 tem = XNEWVEC (char, len + 1); |
4474 memcpy (tem, start, len); | 4474 if (len > 0) |
4475 memcpy (tem, start, len); | |
4475 tem[len] = '\0'; | 4476 tem[len] = '\0'; |
4476 work -> btypevec[index] = tem; | 4477 work -> btypevec[index] = tem; |
4477 } | 4478 } |
4478 | 4479 |
4479 /* Lose all the info related to B and K type codes. */ | 4480 /* Lose all the info related to B and K type codes. */ |