[Bug binutils/25198] New: trunk/binutils/prdbg.c:2140: use of out of date pointer

2019-11-16 Thread dcb314 at hotmail dot com
Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- trunk/binutils/prdbg.c:2140:26: error: Using pointer to local variable 'idbuf' that is out of scope. [inval

[Bug binutils/22663] sim/arm/maverick.c:882]: (error) printf format string requires 3 parameters but only 2 are given.

2018-01-02 Thread dcb314 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22663 dcb changed: What|Removed |Added CC||nickc at sourceware dot org -- You are receivi

[Bug binutils/22663] New: sim/arm/maverick.c:882]: (error) printf format string requires 3 parameters but only 2 are given.

2018-01-02 Thread dcb314 at hotmail dot com
: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- Source code is printfdbg ("cfnegd mvd%d = -mvd%d =

[Bug binutils/22662] elf32-nds32.c:10609: strange condition ?

2018-01-02 Thread dcb314 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22662 dcb changed: What|Removed |Added CC||kuanlinchentw at gmail dot com -- You are rece

[Bug binutils/22662] New: elf32-nds32.c:10609: strange condition ?

2018-01-02 Thread dcb314 at hotmail dot com
Component: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- [src/bfd/elf32-nds32.c:10609]: (style) Same expression on both sides of '||'. if (range_type == NDS32_LOADSTORE_FLOAT_S ||

[Bug gold/22213] New: binutils-2.29.1/gold/sparc.cc:4168]: (style) Mismatching assignment and comparison

2017-09-26 Thread dcb314 at hotmail dot com
Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: dcb314 at hotmail dot com CC: ian at airs dot com Target Milestone: --- binutils-2.29.1/gold/sparc.cc:4167] -> [binutils-2.29.1/gold/sparc

[Bug gold/20334] New: gold/aarch64.cc:8054]: (style) Redundant condition

2016-07-07 Thread dcb314 at hotmail dot com
Component: gold Assignee: ccoutant at gmail dot com Reporter: dcb314 at hotmail dot com CC: ian at airs dot com Target Milestone: --- gold/aarch64.cc:8054]: (style) Redundant condition: pair. '!pair || (pair && !load)' is equivalent

[Bug gold/18874] src/gold/gc.h:207: performance tweek ?

2016-07-07 Thread dcb314 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=18874 --- Comment #1 from dcb --- Still broken, some eleven months later. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org ht

[Bug gold/19277] inutils-gdb/gold/arm.cc:4513: reading dead memory

2016-07-07 Thread dcb314 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19277 --- Comment #1 from dcb --- Still broken some eight months later. binutils-gdb/gold/arm.cc:4542]: (error) Returning/dereferencing 'buffer' after it is deallocated / released -- You are receiving this mail because: You are on the CC list for

[Bug ld/20097] New: [src/ld/testplug4.c:611]: (warning) Calling 'sizeof' on 'sizeof'.

2016-05-14 Thread dcb314 at hotmail dot com
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- Source code is || SIZE_OF_PR20070B_C < sizeof EXPECTED_VIEW_LENGTH but #define EXPEC

[Bug binutils/20000] New: src/sim/rx/fpu.c:436: possible typo ?

2016-04-26 Thread dcb314 at hotmail dot com
: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- [src/sim/rx/fpu.c:436]: (style) Expression is always false because 'else if' condition matches previous condition at line 434. Source code is if (a->ty

[Bug gold/19793] script-sections.cc:1475: possible redundant string copy ?

2016-03-12 Thread dcb314 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19793 --- Comment #3 from dcb --- >There are a few other places in gold where we should also pass by const >>reference instead of value for std::string. $ fgrep "src/gold" cppcheck.20160308.out | fgrep "(performance)" [src/gold/archive.cc:506]: (p

[Bug gold/19794] New: src/gold/archive.cc: 2 * pointless copy ?

2016-03-09 Thread dcb314 at hotmail dot com
: gold Assignee: ccoutant at gmail dot com Reporter: dcb314 at hotmail dot com CC: ian at airs dot com Target Milestone: --- 1. [src/gold/archive.cc:506]: (performance) Function parameter 'p' should be passed by reference. Source code is operat

[Bug gold/19793] New: script-sections.cc:1475: possible redundant string copy ?

2016-03-09 Thread dcb314 at hotmail dot com
Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: dcb314 at hotmail dot com CC: ian at airs dot com Target Milestone: --- [src/gold/script-sections.cc:1475]: (performance) Function parameter 'name' should be

[Bug binutils/19647] New: src/binutils/readelf.c:3998: possible missing break ?

2016-02-16 Thread dcb314 at hotmail dot com
Component: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- [src/binutils/readelf.c:4000]: (warning) Variable 'result' is reassigned a value before the old one has been used. 'break;' miss

[Bug binutils/19310] src/binutils/dwarf.c:6459: code relies on undefined behaviour ?

2015-12-04 Thread dcb314 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19310 --- Comment #2 from dcb --- >will this do the trick ? It certainly seems to shut up cppcheck, the static analyser. Not sure how to get gcc or clang to detect this problem. $ cat dec4a.cc extern void g( const char *); void f( const char *

[Bug binutils/19310] New: src/binutils/dwarf.c:6459: code relies on undefined behaviour ?

2015-11-30 Thread dcb314 at hotmail dot com
Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- [src/binutils/dwarf.c:6459]: (warning) Invalid test for overflow 'start+ul= block_end || start + ul > block_end || st

[Bug gold/19277] New: inutils-gdb/gold/arm.cc:4513: reading dead memory

2015-11-20 Thread dcb314 at hotmail dot com
Component: gold Assignee: ccoutant at gmail dot com Reporter: dcb314 at hotmail dot com CC: ian at airs dot com Target Milestone: --- [binutils-gdb/gold/arm.cc:4513]: (error) Returning/dereferencing 'buffer' after it is deallocated / released

[Bug binutils/19273] New: sim/common/sim-utils.c:336: missing call to va_end ?

2015-11-20 Thread dcb314 at hotmail dot com
Component: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- sim/common/sim-utils.c:336]: (error) va_list 'ap' was opened but not closed by va_end(). Source code is va_start (ap, fmt); if (vasprintf

[Bug binutils/19224] New: src/opcodes/h8300-dis.c:547: bad if test ?

2015-11-10 Thread dcb314 at hotmail dot com
: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- [src/opcodes/h8300-dis.c:547]: (style) Expression is always false because 'else if' condition matches previous condition at line 436. if (looking_fo

[Bug gold/18874] New: src/gold/gc.h:207: performance tweek ?

2015-08-26 Thread dcb314 at hotmail dot com
Assignee: ccoutant at gmail dot com Reporter: dcb314 at hotmail dot com CC: ian at airs dot com Target Milestone: --- [src/gold/gc.h:207]: (performance) Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant

[Bug binutils/18806] New: src/bfd/elf.c:1240: bad test ?

2015-08-11 Thread dcb314 at hotmail dot com
Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- ../../src/bfd/elf.c:1240:26: warning: self-comparison always evaluates to true [-Wtautological-compare] Source code is || oheader->sh_type == oheader->sh_type)

[Bug binutils/18747] New: src/bfd/coff-sh.c:2330: possible bad expression ?

2015-07-31 Thread dcb314 at hotmail dot com
Component: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- [src/bfd/coff-sh.c:2330] -> [src/bfd/coff-sh.c:2330]: (style) Same expression on both sides of '/'. sh_opcodes[0xf].count = sizeof sh_dsp_opc

[Bug gas/18679] New: config/xtensa-relax.c:872: bad if ?

2015-07-15 Thread dcb314 at hotmail dot com
Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- config/xtensa-relax.c:872] -> [src/gas/config/xtensa-relax.c:872]: (style) Same expression on both sides of '||'. if (m1->operand_name == NULL || m1->o

[Bug gas/18678] New: config/tc-tic4x.c:2357: bad if ?

2015-07-15 Thread dcb314 at hotmail dot com
Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- config/tc-tic4x.c:2357]: (warning) Logical conjunction always evaluates to false: EXPR < 4 && EXPR > 5. Source code is if (tinsn->num_operands < 4 &&

[Bug gas/18677] New: gas/config/tc-mmix.c:1479]: possible bad if ?

2015-07-15 Thread dcb314 at hotmail dot com
Component: gas Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- gas/config/tc-mmix.c:1479]: (warning) Logical conjunction always evaluates to false: EXPR < 0 && EXPR > 4. && exp[1].X_add_number &l

[Bug gas/18574] New: gas/config/tc-msp430.c: 9 * Redundant condition

2015-06-22 Thread dcb314 at hotmail dot com
Component: gas Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- 1. [binutils-gdb/gas/config/tc-msp430.c:2072]: (style) Redundant condition: !op1.reg. 'A && (!A || B)' is equivalent to 'A || B' Source

[Bug binutils/18474] New: src/opcodes/msp430-dis.c:69: bad test ?

2015-06-01 Thread dcb314 at hotmail dot com
: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Target Milestone: --- [src/opcodes/msp430-dis.c:69]: (style) Expression '(X & 0xf00) != 0x3' is always true. [src/opcodes/msp430-dis.c:69]: (style) Expression '(X & 0

[Bug binutils/18273] New: cppcheck meets sim - five bugs

2015-04-16 Thread dcb314 at hotmail dot com
Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com I just ran static analyser cppcheck over the source code of the simulator in binutils. It said many things, but I think these are the most important. 1. [src/sim/bfin/bfin-sim.c:4320]: (style) Same

[Bug binutils/18132] New: compile/compile-loc2c.c:729: += on uninit data ?

2015-03-16 Thread dcb314 at hotmail dot com
Component: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com I just tried to compile trunk binutils with clang. It said ../../src/gdb/compile/compile-loc2c.c:729:6: warning: variable 'uoffset' is uninitialized when used here [-Wuni

[Bug gprof/16027] binutils-2.23.2/gprof: 2 * resource leaks ?

2013-10-10 Thread dcb314 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16027 --- Comment #7 from dcb --- >Thanks - I have downloaded and built the tool and added an invocation of >it to my master makefile... Marvellous. I find the default flag settings for it to be pretty quiet. My usual settings are --enable=warnin

[Bug gprof/16027] binutils-2.23.2/gprof: 2 * resource leaks ?

2013-10-09 Thread dcb314 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16027 --- Comment #3 from dcb --- >Thanks for reporting all of these bugs! All part of the service, sir ;-> You may wish to consider having cppcheck http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page as part of your develo

[Bug ld/16028] New: binutils-2.23.2/ld/ldmain.c:729: possible resource leak ?

2013-10-09 Thread dcb314 at hotmail dot com
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com I just ran the static analyser "cppcheck" over the source code of the linker. It said [binutils-2.23.2/ld/ldmain.c:729]: (error) Resource leak: file I ch

[Bug gprof/16027] New: binutils-2.23.2/gprof: 2 * resource leaks ?

2013-10-09 Thread dcb314 at hotmail dot com
Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com [binutils-2.23.2/gprof/corefile.c:166]: (error) Resource leak: file [binutils-2.23.2/gprof/source.c:263]: (error) Resource leak: ifp I have checked them both and I recommend a couple of calls to

[Bug gas/16026] New: binutils-2.23.2/gas/config/tc-mn10200.c:564: possible missing break ?

2013-10-09 Thread dcb314 at hotmail dot com
Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Source code is case 0xff: opcode = 0xfe; case 0xe8: Suggest add missing break. -- You are receiving this mail because: You are on the CC

[Bug gas/16025] New: binutils-2.23.2/gas/config/tc-epiphany.c:902: possible missing break ?

2013-10-09 Thread dcb314 at hotmail dot com
Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Source code is case EPIPHANY_RELAX_LDST_IMM3: addend = ((addend & 7) << 5) | opcode[0]; opindx = EPIPHANY_OPERAND_DISP3;

[Bug binutils/16024] New: binutils-2.23.2/binutils/objdump.c:3663: possible missing break ?

2013-10-09 Thread dcb314 at hotmail dot com
Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Source code is case 'H': usage (stdout, 0); seenflag = TRUE; case 'v': case 'V': Suggest a

[Bug binutils/16023] New: binutils-2.23.2/binutils/debug.c:3155: possible missing break ?

2013-10-09 Thread dcb314 at hotmail dot com
Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com Source code is case DEBUG_KIND_RANGE: ret = (t1->u.krange->lower == t2->u.krange->lower && t1->u.krange->up

[Bug binutils/15993] gdb-7.6.1/bfd/elf32-m32c.c:921: bad switch statement

2013-10-09 Thread dcb314 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=15993 --- Comment #9 from dcb --- >gdb-7.6.1/bfd/elf32-rl78.c:1112 and gdb-7.6.1/bfd/elf32-rx.c:3180 are BFD bugs >and should be opened against binutils. Done. Bugs # 16021 and 16022 -- You are receiving this mail because: You are on the CC lis

[Bug binutils/16022] New: binutils-2.23.2/bfd/elf32-rx.c:3142: bad switch statement ?

2013-10-09 Thread dcb314 at hotmail dot com
Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com I just ran the static analyser cppcheck over the source code of binutils-2.23.2 It said [binutils-2.23.2/bfd/elf32-rx.c:3142] -> [binutils-2.23.2/bfd/el

[Bug binutils/16021] New: binutils-2.23.2/bfd/elf32-rl78.c:1110: bad switch statement

2013-10-09 Thread dcb314 at hotmail dot com
Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: dcb314 at hotmail dot com I just ran the static analysis tool "cppcheck" over the source code of binutils-2.23.2 It said [binutils-2.23.2/bfd/elf32-rl78.c:1110] -> [binuti

[Bug binutils/15993] gdb-7.6.1/bfd/elf32-m32c.c:921: bad switch statement

2013-10-09 Thread dcb314 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=15993 --- Comment #8 from dcb --- >gdb-7.6.1/sim/erc32/float.c:95 is a GDB bug and can be opened against it. You >>can put me on the Cc list and I will take ownership. Done. Bug #16108 -- You are receiving this mail because: You are on the CC

[Bug binutils/15993] gdb-7.6.1/bfd/elf32-m32c.c:921: bad switch statement

2013-10-08 Thread dcb314 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=15993 --- Comment #4 from dcb --- (In reply to dcb from comment #3) > (In reply to Sergio Durigan Junior from comment #1) > > I will post a patch soon. > > Thanks. > > Similar problems at > > gdb-7.6.1/bfd/elf32-rl78.c:1112 > > gdb-7.6.1/bfd/el

[Bug binutils/15993] gdb-7.6.1/bfd/elf32-m32c.c:921: bad switch statement

2013-10-08 Thread dcb314 at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=15993 --- Comment #3 from dcb --- (In reply to Sergio Durigan Junior from comment #1) > I will post a patch soon. Thanks. Similar problems at gdb-7.6.1/bfd/elf32-rl78.c:1112 gdb-7.6.1/bfd/elf32-rx.c:3180 -- You are receiving this mail because