mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 12:53:17 +08:00
Remove redundant sizeof on EXPECTED_VIEW_LENGTH
PR ld/20097 * testplug2.c (onall_symbols_read): Remove redundant sizeof on EXPECTED_VIEW_LENGTH. * testplug4.c (onall_symbols_read): Likewise.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2016-05-14 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR ld/20097
|
||||||
|
* testplug2.c (onall_symbols_read): Remove redundant sizeof
|
||||||
|
on EXPECTED_VIEW_LENGTH.
|
||||||
|
* testplug4.c (onall_symbols_read): Likewise.
|
||||||
|
|
||||||
2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
|
2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR ld/20093
|
PR ld/20093
|
||||||
|
@ -602,7 +602,7 @@ onall_symbols_read (void)
|
|||||||
#define EXPECTED_VIEW "/* The first line of this file must match the expectation of"
|
#define EXPECTED_VIEW "/* The first line of this file must match the expectation of"
|
||||||
#define EXPECTED_VIEW_LENGTH (sizeof (EXPECTED_VIEW) - 1)
|
#define EXPECTED_VIEW_LENGTH (sizeof (EXPECTED_VIEW) - 1)
|
||||||
if (file.filesize != SIZE_OF_FUNC_C
|
if (file.filesize != SIZE_OF_FUNC_C
|
||||||
|| SIZE_OF_FUNC_C < sizeof EXPECTED_VIEW_LENGTH
|
|| SIZE_OF_FUNC_C < EXPECTED_VIEW_LENGTH
|
||||||
|| memcmp (view, EXPECTED_VIEW, EXPECTED_VIEW_LENGTH) != 0)
|
|| memcmp (view, EXPECTED_VIEW, EXPECTED_VIEW_LENGTH) != 0)
|
||||||
{
|
{
|
||||||
char result[EXPECTED_VIEW_LENGTH + 1];
|
char result[EXPECTED_VIEW_LENGTH + 1];
|
||||||
|
@ -608,7 +608,7 @@ onall_symbols_read (void)
|
|||||||
#define EXPECTED_VIEW "/* The first line of this file must match the expectation of"
|
#define EXPECTED_VIEW "/* The first line of this file must match the expectation of"
|
||||||
#define EXPECTED_VIEW_LENGTH (sizeof (EXPECTED_VIEW) - 1)
|
#define EXPECTED_VIEW_LENGTH (sizeof (EXPECTED_VIEW) - 1)
|
||||||
if (file.filesize != SIZE_OF_PR20070B_C
|
if (file.filesize != SIZE_OF_PR20070B_C
|
||||||
|| SIZE_OF_PR20070B_C < sizeof EXPECTED_VIEW_LENGTH
|
|| SIZE_OF_PR20070B_C < EXPECTED_VIEW_LENGTH
|
||||||
|| memcmp (view, EXPECTED_VIEW, EXPECTED_VIEW_LENGTH) != 0)
|
|| memcmp (view, EXPECTED_VIEW, EXPECTED_VIEW_LENGTH) != 0)
|
||||||
{
|
{
|
||||||
char result[EXPECTED_VIEW_LENGTH + 1];
|
char result[EXPECTED_VIEW_LENGTH + 1];
|
||||||
|
Reference in New Issue
Block a user