Subject: toolchain/20062: Missing backslash in gcc header
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/26/2003 03:28:02
>Number:         20062
>Category:       toolchain
>Synopsis:       Missing backslash in gcc header
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 26 00:29:01 PST 2003
>Originator:     Jed Davis
>Release:        -CURRENT from 2003-01-26, 02:30-ish EST
Oberlin College Computer Science
Host compiler: cc (GCC) 3.4 20030115 (experimental)
Host uname: Linux 2.4.17 #15 Fri Feb 1 14:02:22 EST 2002 i686 unknown
Target architecture: sparc64

The file src/gnu/dist/toolchain/gcc/config/sparc/netbsd64.h is missing
a backslash continuation in a multi-line string literal, making it
nonstandard but acceptible by older compilers.  For instance, gcc
2.95.3 without --pedantic blithely accepts it, gcc 3.2.1 issues a
warning, and main-branch (3.4) gcc refuses to accept it at all.  This
header is seen by the host compiler during a cross-build.


Bootstrap a build with a compiler that's sufficiently picky by
default, or any gcc with --pedantic -Werror.


Index: src/gnu/dist/toolchain/gcc/config/sparc/netbsd64.h
RCS file: /cvsroot/src/gnu/dist/toolchain/gcc/config/sparc/netbsd64.h,v
retrieving revision 1.9
diff -u -r1.9 netbsd64.h
--- src/gnu/dist/toolchain/gcc/config/sparc/netbsd64.h  2002/11/19 04:46:13     1.9
+++ src/gnu/dist/toolchain/gcc/config/sparc/netbsd64.h  2003/01/26 08:23:06
@@ -151,7 +151,7 @@
 %{mcypress:-mcpu=cypress} \
 %{msparclite:-mcpu=sparclite} %{mf930:-mcpu=f930} %{mf934:-mcpu=f934} \
 %{mv8:-mcpu=v8} %{msupersparc:-mcpu=supersparc} \
-%{m64:-mptr64 -mcpu=ultrasparc -mstack-bias %{p*:-mcmodel=medlow} 
+%{m64:-mptr64 -mcpu=ultrasparc -mstack-bias %{p*:-mcmodel=medlow} \
 %{p:-mcmodel=medlow}} \