OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [lib/] [prune.exp] - Blame information for rev 318

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
#   Copyright (C) 1997, 1999, 2000, 2002, 2004, 2007
2
#   Free Software Foundation, Inc.
3
 
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; either version 3 of the License, or
7
# (at your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License
15
# along with GCC; see the file COPYING3.  If not see
16
# .
17
 
18
# Prune messages from gcc that aren't useful.
19
 
20
proc prune_gcc_output { text } {
21
    #send_user "Before:$text\n"
22
 
23
    regsub -all "(^|\n)\[^\n\]*: In ((static member )?function|member|method|(copy )?constructor|destructor|instantiation|program|subroutine|block-data) \[^\n\]*" $text "" text
24
    regsub -all "(^|\n)\[^\n\]*: At (top level|global scope):\[^\n\]*" $text "" text
25
    regsub -all "(^|\n)\[^\n\]*:   instantiated from \[^\n\]*" $text "" text
26
    regsub -all "(^|\n)collect2: ld returned \[^\n\]*" $text "" text
27
    regsub -all "(^|\n)collect: re(compiling|linking)\[^\n\]*" $text "" text
28
    regsub -all "(^|\n)Please submit.*instructions\[^\n\]*" $text "" text
29
    regsub -all "(^|\n)\[0-9\]\[0-9\]* errors\." $text "" text
30
 
31
    # Ignore harmless -fpic warnings.
32
    regsub -all "(^|\n)\[^\n\]*: warning: -f(pic|PIC) ignored for target\[^\n\]*" $text "" text
33
    regsub -all "(^|\n)\[^\n\]*: warning: -f(pic|PIC)( and -fpic are| is)? not supported\[^\n\]*" $text "" text
34
 
35
    # Ignore errata warning from IA64 assembler.
36
    regsub -all "(^|\n)\[^\n\]*: Additional NOP may be necessary to workaround Itanium processor A/B step errata" $text "" text
37
    regsub -all "(^|\n)\[^\n*\]*: Assembler messages:\[^\n\]*" $text "" text
38
 
39
    # It would be nice to avoid passing anything to gcc that would cause it to
40
    # issue these messages (since ignoring them seems like a hack on our part),
41
    # but that's too difficult in the general case.  For example, sometimes
42
    # you need to use -B to point gcc at crt0.o, but there are some targets
43
    # that don't have crt0.o.
44
    regsub -all "(^|\n)\[^\n\]*file path prefix \[^\n\]* never used" $text "" text
45
    regsub -all "(^|\n)\[^\n\]*linker input file unused since linking not done" $text "" text
46
 
47
    #send_user "After:$text\n"
48
 
49
    return $text
50
}
51
 
52
# Provide a definition of this if missing (delete after next dejagnu release).
53
 
54
if { [info procs prune_warnings] == "" } then {
55
    proc prune_warnings { text } {
56
        return $text
57
    }
58
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.