This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/RFA] Dejagnu: fix linker warning patters for NetBSD


I finally got fed up with the following failures on NetBSD targets:

FAIL: gcc.c-torture/execute/960218-1.c compilation, -O0
UNRESOLVED: gcc.c-torture/execute/960218-1.c execution, -O0
FAIL: gcc.c-torture/execute/960218-1.c compilation, -O1
UNRESOLVED: gcc.c-torture/execute/960218-1.c execution, -O1
FAIL: gcc.c-torture/execute/960218-1.c compilation, -O2
UNRESOLVED: gcc.c-torture/execute/960218-1.c execution, -O2
FAIL: gcc.c-torture/execute/960218-1.c compilation, -O3 -fomit-frame-pointer
UNRESOLVED: gcc.c-torture/execute/960218-1.c execution, -O3 -fomit-frame-pointe
r
FAIL: gcc.c-torture/execute/960218-1.c compilation, -O3 -fomit-frame-pointer -f
unroll-loops
UNRESOLVED: gcc.c-torture/execute/960218-1.c execution, -O3 -fomit-frame-pointe
r -funroll-loops
FAIL: gcc.c-torture/execute/960218-1.c compilation, -O3 -fomit-frame-pointer -f
unroll-all-loops -finline-functions
UNRESOLVED: gcc.c-torture/execute/960218-1.c execution, -O3 -fomit-frame-pointe
r -funroll-all-loops -finline-functions
FAIL: gcc.c-torture/execute/960218-1.c compilation, -O3 -g
UNRESOLVED: gcc.c-torture/execute/960218-1.c execution, -O3 -g
FAIL: gcc.c-torture/execute/960218-1.c compilation, -Os
UNRESOLVED: gcc.c-torture/execute/960218-1.c execution, -Os


These tests fail because Dejagnu's prune_warnings function does not match the warnings emitted by more modern versions of NetBSD (it looks like the NetBSD patterns were written for the old NetBSD a.out toolchain). The patch below fixes this. If it is accepted here, I'll feed it upstream to the main Dejagnu maintainers, as well.

OK for mainline? OK for 3.3 branch?

        * lib/target.exp (prune_warnings): Add two more linker
        warning patterns for warnings generated by modern verions
        of NetBSD.

-- Jason R. Thorpe <thorpej@wasabisystems.com>

Attachment: dejagnu-patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]