head 1.9; access; symbols pkgsrc-2015Q1:1.8.0.30 pkgsrc-2015Q1-base:1.8 pkgsrc-2014Q4:1.8.0.28 pkgsrc-2014Q4-base:1.8 pkgsrc-2014Q3:1.8.0.26 pkgsrc-2014Q3-base:1.8 pkgsrc-2014Q2:1.8.0.24 pkgsrc-2014Q2-base:1.8 pkgsrc-2014Q1:1.8.0.22 pkgsrc-2014Q1-base:1.8 pkgsrc-2013Q4:1.8.0.20 pkgsrc-2013Q4-base:1.8 pkgsrc-2013Q3:1.8.0.18 pkgsrc-2013Q3-base:1.8 pkgsrc-2013Q2:1.8.0.16 pkgsrc-2013Q2-base:1.8 pkgsrc-2013Q1:1.8.0.14 pkgsrc-2013Q1-base:1.8 pkgsrc-2012Q4:1.8.0.12 pkgsrc-2012Q4-base:1.8 pkgsrc-2012Q3:1.8.0.10 pkgsrc-2012Q3-base:1.8 pkgsrc-2012Q2:1.8.0.8 pkgsrc-2012Q2-base:1.8 pkgsrc-2012Q1:1.8.0.6 pkgsrc-2012Q1-base:1.8 pkgsrc-2011Q4:1.8.0.4 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q3:1.8.0.2 pkgsrc-2011Q3-base:1.8 pkgsrc-2011Q2:1.7.0.68 pkgsrc-2011Q2-base:1.7 pkgsrc-2011Q1:1.7.0.66 pkgsrc-2011Q1-base:1.7 pkgsrc-2010Q4:1.7.0.64 pkgsrc-2010Q4-base:1.7 pkgsrc-2010Q3:1.7.0.62 pkgsrc-2010Q3-base:1.7 pkgsrc-2010Q2:1.7.0.60 pkgsrc-2010Q2-base:1.7 pkgsrc-2010Q1:1.7.0.58 pkgsrc-2010Q1-base:1.7 pkgsrc-2009Q4:1.7.0.56 pkgsrc-2009Q4-base:1.7 pkgsrc-2009Q3:1.7.0.54 pkgsrc-2009Q3-base:1.7 pkgsrc-2009Q2:1.7.0.52 pkgsrc-2009Q2-base:1.7 pkgsrc-2009Q1:1.7.0.50 pkgsrc-2009Q1-base:1.7 pkgsrc-2008Q4:1.7.0.48 pkgsrc-2008Q4-base:1.7 pkgsrc-2008Q3:1.7.0.46 pkgsrc-2008Q3-base:1.7 cube-native-xorg:1.7.0.44 cube-native-xorg-base:1.7 pkgsrc-2008Q2:1.7.0.42 pkgsrc-2008Q2-base:1.7 cwrapper:1.7.0.40 pkgsrc-2008Q1:1.7.0.38 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.7.0.36 pkgsrc-2007Q4-base:1.7 pkgsrc-2007Q3:1.7.0.34 pkgsrc-2007Q3-base:1.7 pkgsrc-2007Q2:1.7.0.32 pkgsrc-2007Q2-base:1.7 pkgsrc-2007Q1:1.7.0.30 pkgsrc-2007Q1-base:1.7 pkgsrc-2006Q4:1.7.0.28 pkgsrc-2006Q4-base:1.7 pkgsrc-2006Q3:1.7.0.26 pkgsrc-2006Q3-base:1.7 pkgsrc-2006Q2:1.7.0.24 pkgsrc-2006Q2-base:1.7 pkgsrc-2006Q1:1.7.0.22 pkgsrc-2006Q1-base:1.7 pkgsrc-2005Q4:1.7.0.20 pkgsrc-2005Q4-base:1.7 pkgsrc-2005Q3:1.7.0.18 pkgsrc-2005Q3-base:1.7 pkgsrc-2005Q2:1.7.0.16 pkgsrc-2005Q2-base:1.7 pkgsrc-2005Q1:1.7.0.14 pkgsrc-2005Q1-base:1.7 pkgsrc-2004Q4:1.7.0.12 pkgsrc-2004Q4-base:1.7 pkgsrc-2004Q3:1.7.0.10 pkgsrc-2004Q3-base:1.7 pkgsrc-2004Q2:1.7.0.8 pkgsrc-2004Q2-base:1.7 pkgsrc-2004Q1:1.7.0.6 pkgsrc-2004Q1-base:1.7 pkgsrc-2003Q4:1.7.0.4 pkgsrc-2003Q4-base:1.7 netbsd-1-6-1:1.7.0.2 netbsd-1-6-1-base:1.7 pkgviews:1.4.0.4 pkgviews-base:1.4 buildlink2:1.4.0.2 buildlink2-base:1.4 netbsd-1-5-PATCH003:1.4 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.1 netbsd-1-4-PATCH003:1.1; locks; strict; comment @# @; 1.9 date 2015.04.25.10.33.29; author wiz; state dead; branches; next 1.8; commitid CG2XaBpeRQKMwXiy; 1.8 date 2011.07.15.08.47.22; author asau; state Exp; branches; next 1.7; 1.7 date 2002.10.05.20.54.53; author dmcmahill; state Exp; branches; next 1.6; 1.6 date 2002.09.09.03.23.07; author dmcmahill; state Exp; branches; next 1.5; 1.5 date 2002.08.12.01.53.40; author dmcmahill; state dead; branches; next 1.4; 1.4 date 2002.03.28.10.11.52; author jmc; state Exp; branches; next 1.3; 1.3 date 2002.01.03.20.40.42; author tron; state Exp; branches; next 1.2; 1.2 date 2001.04.27.10.45.22; author skrll; state Exp; branches; next 1.1; 1.1 date 2000.09.15.23.58.48; author tron; state Exp; branches; next ; desc @@ 1.9 log @Finish move of lang/gcc to lang/gcc2. Let me know if I broke something. @ text @$NetBSD: patch-ab,v 1.8 2011/07/15 08:47:22 asau Exp $ Enable building the shared libstdc++ also make the sersion number the same as the one we ship with netbsd-1.6 as we use the same sources. --- libstdc++/Makefile.in.orig 2011-07-12 16:44:41.000000000 +0400 +++ libstdc++/Makefile.in 2011-07-12 16:56:07.000000000 +0400 @@@@ -14,7 +14,7 @@@@ # along with this library; see the file COPYING. If not, write to the Free # Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -VERSION = 2.10.0nb1 +VERSION = 4.0 INTERFACE = 3 gxx_include_dir=${includedir}/g++ @@@@ -43,7 +43,7 @@@@ STAMP = bigstmp -LIBS = $(ARLIB) $(ARLINK) +LIBS = $(ARLIB) $(ARLINK) $(SHLIB) $(SHLINK) #### package, host, target, and site dependent Makefile fragments come in here. ## @@@@ -263,34 +263,34 @@@@ if [ -z "$(MULTISUBDIR)" ]; then \ cd $(srcdir); \ for FILE in $(HEADERS); do \ - rm -f $(gxx_include_dir)/$$FILE ; \ + rm -f $(DESTDIR)$(gxx_include_dir)/$$FILE ; \ if [ -f stl/$$FILE ]; then \ - $(INSTALL_DATA) stl/$$FILE $(gxx_include_dir)/$$FILE ; \ + $(INSTALL_DATA) stl/$$FILE $(DESTDIR)$(gxx_include_dir)/$$FILE ; \ else \ - $(INSTALL_DATA) $$FILE $(gxx_include_dir)/$$FILE ; \ + $(INSTALL_DATA) $$FILE $(DESTDIR)$(gxx_include_dir)/$$FILE ; \ fi ; \ - chmod a-x $(gxx_include_dir)/$$FILE ; \ + chmod a-x $(DESTDIR)$(gxx_include_dir)/$$FILE ; \ done ; \ for FILE in *.h std/*.h std/*.cc std/*.tcc; do \ - rm -f $(gxx_include_dir)/$$FILE ; \ - $(INSTALL_DATA) $$FILE $(gxx_include_dir)/$$FILE ; \ - chmod a-x $(gxx_include_dir)/$$FILE ; \ + rm -f $(DESTDIR)$(gxx_include_dir)/$$FILE ; \ + $(INSTALL_DATA) $$FILE $(DESTDIR)$(gxx_include_dir)/$$FILE ; \ + chmod a-x $(DESTDIR)$(gxx_include_dir)/$$FILE ; \ done ; \ cd stl; \ for FILE in *.h; do \ - rm -f $(gxx_include_dir)/$$FILE ; \ - $(INSTALL_DATA) $$FILE $(gxx_include_dir)/$$FILE ; \ - chmod a-x $(gxx_include_dir)/$$FILE ; \ + rm -f $(DESTDIR)$(gxx_include_dir)/$$FILE ; \ + $(INSTALL_DATA) $$FILE $(DESTDIR)$(gxx_include_dir)/$$FILE ; \ + chmod a-x $(DESTDIR)$(gxx_include_dir)/$$FILE ; \ done ; \ else true ; \ fi rootme=`pwd`/ ; export rootme ; \ if [ x$(enable_version_specific_runtime_libs) != xyes ]; then \ - INSTALLDIR=$(libdir); \ + INSTALLDIR=$(DESTDIR)$(libdir); \ else \ - INSTALLDIR=$(libsubdir); \ + INSTALLDIR=$(DESTDIR)$(libsubdir); \ fi; \ - INSTALLLINKDIR=$(libsubdir); \ + INSTALLLINKDIR=$(DESTDIR)$(libsubdir); \ if [ $${INSTALLLINKDIR}$(MULTISUBDIR) = $${INSTALLDIR}$(MULTISUBDIR) ]; then \ RELINSTALLDIR=; \ elif [ x$(MULTISUBDIR) = x ]; then \ @ 1.8 log @Staged installation support. (Also converts to static packaging list.) @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.7 2002/10/05 20:54:53 dmcmahill Exp $ @ 1.7 log @make the libstdc++.so version number the same as the one we ship with netbsd-1.6 as we use the same sources. Pointed out by Nick Hudson. @ text @d1 1 a1 1 $NetBSD$ d8 2 a9 2 --- ../gcc-2.95.3/libstdc++/Makefile.in.orig Mon Sep 9 08:16:06 2002 +++ ../gcc-2.95.3/libstdc++/Makefile.in d19 1 a19 1 @@@@ -43,7 +43,7 @@@@ SHDEPS = d28 48 @ 1.6 log @- pull in the last bit of changes to sync this up with the netbsd-1-6-RELEASE gcc. - enable building shared libstdc++ - add a -R to LDFLAGS in Makefile.gcc to point to the shared libs this pkg installs @ text @d5 4 a8 1 --- ../gcc-2.95.3/libstdc++/Makefile.in.orig Thu Aug 29 18:57:24 2002 d10 9 @ 1.5 log @pull in most recent patches to gcc-2.95.3 from the netbsd-1-6 branch. Includes fixes for sparc, alpha, and others. Should help in keeping pkgsrc running on 1.5.* systems. The patches which mirror those in the main netbsd source tree have been all put into a single distribution patch file. This makes it much easier to maintain and easier to easily see which patches are specific to pkgsrc. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.4 2002/03/28 10:11:52 jmc Exp $ d3 7 a9 5 --- ../gcc-2.95.3/gcc/f/proj.h.orig 2000/07/26 00:18:01 1.1.1.1 +++ ../gcc-2.95.3/gcc/f/proj.h 2002/03/27 04:09:03 1.3 @@@@ -66,7 +66,9 @@@@ Doggone_Trailing_Comma_Dont_Work = 1 } bool; d11 2 a12 3 +#ifndef ARRAY_SIZE #define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0])) +#endif d14 2 a15 2 #ifndef UNUSED /* Compile with -DUNUSED= if cc doesn't support this. */ #if BUILT_WITH_270 @ 1.4 log @Update patch set against a sync of source from gnusrc/dist/toolchain. Not very many overall changes. Main ones include 1. Support for powerpc, arm32 and vax 2. Makefile.gcc can now be included by anything which depends on gcc versions. If the version installed isn't 2.95.3 it'll add itself as a BUILD_DEPENDS. (XXX: any of the makefile's in pkgsrc should be checked and change to use this) 3. Remove special PLIST.NetBSD-sparc as it's no longer needed 4. Change post-extract loop to pick up any arch files from FILESDIR without having to hardcode all the archs 5. Remove arch restrictions as this should work on any arch supported by the main source tree as of 03/28/02 6. Add PKGREVISION as this clearly isn't stock 2.95.3 (it doesn't change gcc --version so version checks won't care). @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Update "gcc" package to version 2.95.3. This is a bug fix release of version 2.95.2. This package includes all changes to "gcc" from the new toolchain in NetBSD-current. The only tested (and enabled) platform is "NetBSD-*-i386" so far. @ text @d3 2 a4 2 --- ../gcc-2.95.3/gcc/f/proj.h.orig Mon Feb 15 19:17:18 1999 +++ ../gcc-2.95.3/gcc/f/proj.h Thu Jan 3 21:02:06 2002 @ 1.2 log @Make sure that sjlj exceptions are used everywhere and be consistent with the defines. While I'm here pull across a fix for LIB_SPEC that prevents libc from being linked in when linking a shared library. Fixes pkg/12620 from Takuya SHIOZAKI @ text @d3 12 a14 167 --- ../gcc-2.95.2/gcc/config/i386/netbsd-elf.h.orig Thu Apr 26 11:53:41 2001 +++ ../gcc-2.95.2/gcc/config/i386/netbsd-elf.h @@@@ -0,0 +1,164 @@@@ +/* Definitions of target machine for GNU compiler, + for i386 NetBSD systems. + Copyright (C) 1998 Free Software Foundation, Inc. + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU CC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +/* This is used on i386 platforms that use the ELF format. + This was taken from the NetBSD/alpha configuration, and modified + for NetBSD/i386 by Christos Zoulas */ + +/* Get generic i386 definitions. */ + +/* This goes away when the math-emulator is fixed */ +#define TARGET_CPU_DEFAULT 0400 /* TARGET_NO_FANCY_MATH_387 */ + +#include + +/* Get perform_* macros to build libgcc.a. */ +#include + +/* Get generic NetBSD ELF definitions. We will override these if necessary. */ + +#define NETBSD_ELF +#include + +#undef ASM_FINAL_SPEC + +/* Names to predefine in the preprocessor for this target machine. */ + +#undef CPP_PREDEFINES +#define CPP_PREDEFINES "\ +-Dunix -Di386 -D__NetBSD__ -D__ELF__ \ +-Asystem(unix) -Asystem(NetBSD) -Acpu(i386) -Amachine(i386)" + +/* Make gcc agree with */ + +#undef SIZE_TYPE +#define SIZE_TYPE "unsigned int" + +#undef PTRDIFF_TYPE +#define PTRDIFF_TYPE "int" + +#undef WCHAR_TYPE +#define WCHAR_TYPE "int" + +#undef WCHAR_UNSIGNED +#define WCHAR_UNSIGNED 0 + +#undef WCHAR_TYPE_SIZE +#define WCHAR_TYPE_SIZE 32 + +/* Output assembler code to FILE to increment profiler label # LABELNO + for profiling a function entry. Under NetBSD/i386, the assembler does + nothing special with -pg. */ + +#undef ASM_APP_ON +#define ASM_APP_ON "#APP\n" + +#undef ASM_APP_OFF +#define ASM_APP_OFF "#NO_APP\n" + +#define bsd4_4 +#undef HAS_INIT_SECTION + +/* Provide a LINK_SPEC appropriate for a NetBSD/alpha ELF target. Only + the linker emulation is i386-specific. The rest are + common to all ELF targets, except for the name of the start function. */ + +#undef LINK_SPEC +#define LINK_SPEC \ + "-m elf_i386 \ + %{assert*} %{R*} \ + %{shared:-shared} \ + %{!shared: \ + -dc -dp \ + %{!nostdlib:%{!r*:%{!e*:-e __start}}} \ + %{!static: \ + %{rdynamic:-export-dynamic} \ + %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \ + %{static:-static}}" + +#undef DEFAULT_VTABLE_THUNKS +#define DEFAULT_VTABLE_THUNKS 1 + +#undef ASM_OUTPUT_ALIGN +#define ASM_OUTPUT_ALIGN(FILE,LOG) \ + if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1 << (LOG)) + +/* This is how we tell the assembler that two symbols have the same value. */ + +#define ASM_OUTPUT_DEF(FILE,NAME1,NAME2) \ + do { assemble_name(FILE, NAME1); \ + fputs(" = ", FILE); \ + assemble_name(FILE, NAME2); \ + fputc('\n', FILE); } while (0) + +/* + * We always use gas here, so we don't worry about ECOFF assembler problems. + */ +#undef TARGET_GAS +#define TARGET_GAS (1) + +/* The following macros are stolen from i386v4.h */ +/* These have to be defined to get PIC code correct */ + +/* This is how to output an element of a case-vector that is relative. + This is only used for PIC code. See comments by the `casesi' insn in + i386.md for an explanation of the expression this outputs. */ + +#undef ASM_OUTPUT_ADDR_DIFF_ELT +#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \ + fprintf (FILE, "\t.long _GLOBAL_OFFSET_TABLE_+[.-%s%d]\n", LPREFIX, VALUE) + +/* Indicate that jump tables go in the text section. This is + necessary when compiling PIC code. */ + +#define JUMP_TABLES_IN_TEXT_SECTION 1 + +/* Default to pcc-struct-return, because this is the ELF abi and + we don't care about compatibility with older gcc versions. */ +#define DEFAULT_PCC_STRUCT_RETURN 1 + +/* Profiling routines, partially copied from i386/osfrose.h. */ + +/* Redefine this to use %eax instead of %edx. */ +#undef FUNCTION_PROFILER +#define FUNCTION_PROFILER(FILE, LABELNO) \ +{ \ + if (flag_pic) \ + { \ + fprintf (FILE, "\tcall __mcount@@PLT\n"); \ + } \ + else \ + { \ + fprintf (FILE, "\tcall __mcount\n"); \ + } \ +} + +/* Put relocations in the constant pool in the writable data section. */ +#undef SELECT_RTX_SECTION +#define SELECT_RTX_SECTION(MODE,RTX) \ +{ \ + if (flag_pic && symbolic_operand (RTX)) \ + data_section (); \ + else \ + readonly_data_section (); \ +} + +/* Use sjlj exceptions. */ +#define DWARF2_UNWIND_INFO 0 @ 1.1 log @- Add patches from NetBSD-current to fix build on i386 ELF systems. - Install into "${LOCALBASE}/gcc-2.95.2" to avoid that e.g. "bsd.pkg.mk" picks up the new compiler by accident. - Add a file "${LOCALBASE}/etc/gcc-2.95.2.mk" which makes it possible to use the new "gcc" like this: make MAKECONF=/usr/pkg/etc/gcc-2.95.2.mk @ text @d3 3 a5 3 --- ../gcc-2.95.2/gcc/config/i386/netbsd-elf.h.orig Sat Sep 16 00:17:42 2000 +++ ../gcc-2.95.2/gcc/config/i386/netbsd-elf.h Sat Sep 16 00:17:42 2000 @@@@ -0,0 +1,161 @@@@ d167 3 @