Bug#618718: c99-gcc error message incorrectly refers to ANSI C
Package: gcc
Version: 4:4.4.5-1
Severity: minor
Tags: patch
The error message displayed when a conflicting C language option is passed to
the c99-gcc script refers to the wrong C standard.
Observed behavior:
$ c99 -std=c89 hello.c
c99 called with non ANSI/ISO C option -std=c89
Desired behavior:
$ c99 -std=c89 hello.c
c99 called with non ISO C99 option -std=c89
The included patch makes this change to the wording, which is derived from the
Fedora gcc package.
-- System Information:
Debian Release: 6.0.1
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'stable'), (101, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gcc depends on:
ii cpp 4:4.4.5-1 The GNU C preprocessor (cpp)
ii gcc-4.4 4.4.5-8 The GNU C compiler
Versions of packages gcc recommends:
ii libc6-dev [libc-dev] 2.11.2-10 Embedded GNU C Library: Developmen
Versions of packages gcc suggests:
pn autoconf <none> (no description available)
pn automake1.9 <none> (no description available)
ii bison 1:2.4.1.dfsg-3 A parser generator that is compati
ii flex 2.5.35-10 A fast lexical analyzer generator.
ii gcc-doc 5:3 documentation for the GNU compiler
ii gcc-multilib 4:4.4.5-1 The GNU C compiler (multilib files
ii gdb 7.0.1-2+b1 The GNU Debugger
pn libtool <none> (no description available)
ii make 3.81-8 An utility for Directing compilati
ii manpages-dev 3.27-1 Manual pages about using GNU/Linux
-- no debconf information
Index: c99
===================================================================
--- c99 (revision 5125)
+++ c99 (working copy)
@@ -15,7 +15,7 @@
extra_flag=
;;
-std=*)
- echo >&2 "`basename $0` called with non ANSI/ISO C option $i"
+ echo >&2 "`basename $0` called with non ISO C99 option $i"
exit 1
;;
esac
Reply to: