From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 17 08:20:14 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07FC737B404 for ; Thu, 17 Jul 2003 08:20:14 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91ACD43F85 for ; Thu, 17 Jul 2003 08:20:11 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h6HFKBUp043988 for ; Thu, 17 Jul 2003 08:20:11 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6HFKBqD043987; Thu, 17 Jul 2003 08:20:11 -0700 (PDT) Resent-Date: Thu, 17 Jul 2003 08:20:11 -0700 (PDT) Resent-Message-Id: <200307171520.h6HFKBqD043987@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Simon Barner Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6781037B404 for ; Thu, 17 Jul 2003 08:17:08 -0700 (PDT) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AB2843FBD for ; Thu, 17 Jul 2003 08:17:07 -0700 (PDT) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id E3B553876E; Thu, 17 Jul 2003 17:17:05 +0200 (CEST) Message-Id: <20030717151705.E3B553876E@zi025.glhnet.mhn.de> Date: Thu, 17 Jul 2003 17:17:05 +0200 (CEST) From: Simon Barner To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/54587: ports/lang/gcc33 bounds check patch does not apply cleanly X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Simon Barner List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2003 15:20:14 -0000 >Number: 54587 >Category: ports >Synopsis: ports/lang/gcc33 bounds check patch does not apply cleanly >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jul 17 08:20:11 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Simon Barner >Release: FreeBSD 4.8-STABLE i386 >Organization: >Environment: System: FreeBSD zi025.glhnet.mhn.de 4.8-STABLE FreeBSD 4.8-STABLE #0: Sat Jun 28 11:00:16 CEST 2003 root@zi025.glhnet.mhn.de:/usr/src/sys/compile/KISTE i386 Ports collection from 17. July 03 >Description: The bounds-checking patch from http://web.inter.nl.net/hcc/Haj.Ten.Brugge/bounds-checking-gcc-3.3-1.00.patch.bz2 does not apply any more. I was able to fix that manually, and the result seems to work fine. Unfortunately, I don't know how to apply a patch to a patch file, so I will leave this to the more experienced port hackers :-) For your convenience, here are the 3 reject files: These two are easy ones: cat work/gcc-20030707/gcc/c-common.c.rej *************** *** 39,44 **** #include "langhooks.h" #include "except.h" /* For USING_SJLJ_EXCEPTIONS. */ #include "tree-inline.h" cpp_reader *parse_in; /* Declared in c-pragma.h. */ --- 39,45 ---- #include "langhooks.h" #include "except.h" /* For USING_SJLJ_EXCEPTIONS. */ #include "tree-inline.h" + #include "c-bounds.h" cpp_reader *parse_in; /* Declared in c-pragma.h. */ cat work/gcc-20030707/gcc/c-decl.c.rej *************** *** 46,51 **** #include "timevar.h" #include "c-common.h" #include "c-pragma.h" /* In grokdeclarator, distinguish syntactic contexts of declarators. */ enum decl_context --- 46,52 ---- #include "timevar.h" #include "c-common.h" #include "c-pragma.h" + #include "c-bounds.h" /* In grokdeclarator, distinguish syntactic contexts of declarators. */ enum decl_context The problem here is, that there is no parse.h (which is generated from parse.y) cat work/gcc-20030707/gcc/cp/parse.h.rej *************** *** 1,5 **** - #ifndef BISON_P16368_H - # define BISON_P16368_H #ifndef YYSTYPE typedef union { GTY(()) --- 1,5 ---- + #ifndef BISON_P871_H + # define BISON_P871_H #ifndef YYSTYPE typedef union { GTY(()) *************** *** 104,108 **** extern YYSTYPE yylval; - #endif /* not BISON_P16368_H */ #define YYEMPTY -2 --- 104,108 ---- extern YYSTYPE yylval; + #endif /* not BISON_P871_H */ #define YYEMPTY -2 During the build, there is another problem in c-decl.c (undefined reference to "global_binding_level" in an if-clause - AFAIR). I am sorry but I do not want to repeat the build on my slow machine. Btw: The bounds checking patch has been updated to version 1.01, so if you put any effort into fixing this problem, you probably want to use the latest version of the patch. >How-To-Repeat: cd $PREFIX/ports/lang/gcc33 make -DWITH_BOUNDSCHECKING patch >Fix: >Release-Note: >Audit-Trail: >Unformatted: