Mercurial > hg > CbC > CbC_gcc
comparison contrib/check_warning_flags.sh @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | a06113de4d67 |
children |
comparison
equal
deleted
inserted
replaced
56:3c8a44c06a95 | 63:b7f97abdc517 |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 # | 2 # |
3 # Check that the warning flags documented in invoke.texi match up | 3 # Check that the warning flags documented in invoke.texi match up |
4 # with what the compiler accepts. | 4 # with what the compiler accepts. |
5 # | 5 # |
6 # Copyright (C) 2008, 2009 Free Software Foundation, Inc. | 6 # Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. |
7 # Written by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>. | 7 # Written by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>. |
8 # | 8 # |
9 # This script is Free Software, and it can be copied, distributed and | 9 # This script is Free Software, and it can be copied, distributed and |
10 # modified as defined in the GNU General Public License. A copy of | 10 # modified as defined in the GNU General Public License. A copy of |
11 # its license can be downloaded from http://www.gnu.org/copyleft/gpl.html | 11 # its license can be downloaded from http://www.gnu.org/copyleft/gpl.html |
145 /^Werror-implicit-function-declaration$/d | 145 /^Werror-implicit-function-declaration$/d |
146 /^Wsynth$/d | 146 /^Wsynth$/d |
147 /-$/d | 147 /-$/d |
148 /=/d' | 148 /=/d' |
149 help_flags=` | 149 help_flags=` |
150 $CC --help -v 2>/dev/null | tr ' ' '\n' | | 150 $CC --help -v 2>/dev/null | tr ' ' '\012' | |
151 sed -n ' | 151 sed -n ' |
152 b a | 152 b a |
153 :a | 153 :a |
154 s/^-\(W[^<,]*\).*/\1/ | 154 s/^-\(W[^<,]*\).*/\1/ |
155 t x | 155 t x |