head	1.8;
access;
symbols
	pkgsrc-2026Q1:1.8.0.62
	pkgsrc-2026Q1-base:1.8
	pkgsrc-2025Q4:1.8.0.60
	pkgsrc-2025Q4-base:1.8
	pkgsrc-2025Q3:1.8.0.58
	pkgsrc-2025Q3-base:1.8
	pkgsrc-2025Q2:1.8.0.56
	pkgsrc-2025Q2-base:1.8
	pkgsrc-2025Q1:1.8.0.54
	pkgsrc-2025Q1-base:1.8
	pkgsrc-2024Q4:1.8.0.52
	pkgsrc-2024Q4-base:1.8
	pkgsrc-2024Q3:1.8.0.50
	pkgsrc-2024Q3-base:1.8
	pkgsrc-2024Q2:1.8.0.48
	pkgsrc-2024Q2-base:1.8
	pkgsrc-2024Q1:1.8.0.46
	pkgsrc-2024Q1-base:1.8
	pkgsrc-2023Q4:1.8.0.44
	pkgsrc-2023Q4-base:1.8
	pkgsrc-2023Q3:1.8.0.42
	pkgsrc-2023Q3-base:1.8
	pkgsrc-2023Q2:1.8.0.40
	pkgsrc-2023Q2-base:1.8
	pkgsrc-2023Q1:1.8.0.38
	pkgsrc-2023Q1-base:1.8
	pkgsrc-2022Q4:1.8.0.36
	pkgsrc-2022Q4-base:1.8
	pkgsrc-2022Q3:1.8.0.34
	pkgsrc-2022Q3-base:1.8
	pkgsrc-2022Q2:1.8.0.32
	pkgsrc-2022Q2-base:1.8
	pkgsrc-2022Q1:1.8.0.30
	pkgsrc-2022Q1-base:1.8
	pkgsrc-2021Q4:1.8.0.28
	pkgsrc-2021Q4-base:1.8
	pkgsrc-2021Q3:1.8.0.26
	pkgsrc-2021Q3-base:1.8
	pkgsrc-2021Q2:1.8.0.24
	pkgsrc-2021Q2-base:1.8
	pkgsrc-2021Q1:1.8.0.22
	pkgsrc-2021Q1-base:1.8
	pkgsrc-2020Q4:1.8.0.20
	pkgsrc-2020Q4-base:1.8
	pkgsrc-2020Q3:1.8.0.18
	pkgsrc-2020Q3-base:1.8
	pkgsrc-2020Q2:1.8.0.16
	pkgsrc-2020Q2-base:1.8
	pkgsrc-2020Q1:1.8.0.12
	pkgsrc-2020Q1-base:1.8
	pkgsrc-2019Q4:1.8.0.14
	pkgsrc-2019Q4-base:1.8
	pkgsrc-2019Q3:1.8.0.10
	pkgsrc-2019Q3-base:1.8
	pkgsrc-2019Q2:1.8.0.8
	pkgsrc-2019Q2-base:1.8
	pkgsrc-2019Q1:1.8.0.6
	pkgsrc-2019Q1-base:1.8
	pkgsrc-2018Q4:1.8.0.4
	pkgsrc-2018Q4-base:1.8
	pkgsrc-2018Q3:1.8.0.2
	pkgsrc-2018Q3-base:1.8
	pkgsrc-2018Q2:1.7.0.102
	pkgsrc-2018Q2-base:1.7
	pkgsrc-2018Q1:1.7.0.100
	pkgsrc-2018Q1-base:1.7
	pkgsrc-2017Q4:1.7.0.98
	pkgsrc-2017Q4-base:1.7
	pkgsrc-2017Q3:1.7.0.96
	pkgsrc-2017Q3-base:1.7
	pkgsrc-2017Q2:1.7.0.92
	pkgsrc-2017Q2-base:1.7
	pkgsrc-2017Q1:1.7.0.90
	pkgsrc-2017Q1-base:1.7
	pkgsrc-2016Q4:1.7.0.88
	pkgsrc-2016Q4-base:1.7
	pkgsrc-2016Q3:1.7.0.86
	pkgsrc-2016Q3-base:1.7
	pkgsrc-2016Q2:1.7.0.84
	pkgsrc-2016Q2-base:1.7
	pkgsrc-2016Q1:1.7.0.82
	pkgsrc-2016Q1-base:1.7
	pkgsrc-2015Q4:1.7.0.80
	pkgsrc-2015Q4-base:1.7
	pkgsrc-2015Q3:1.7.0.78
	pkgsrc-2015Q3-base:1.7
	pkgsrc-2015Q2:1.7.0.76
	pkgsrc-2015Q2-base:1.7
	pkgsrc-2015Q1:1.7.0.74
	pkgsrc-2015Q1-base:1.7
	pkgsrc-2014Q4:1.7.0.72
	pkgsrc-2014Q4-base:1.7
	pkgsrc-2014Q3:1.7.0.70
	pkgsrc-2014Q3-base:1.7
	pkgsrc-2014Q2:1.7.0.68
	pkgsrc-2014Q2-base:1.7
	pkgsrc-2014Q1:1.7.0.66
	pkgsrc-2014Q1-base:1.7
	pkgsrc-2013Q4:1.7.0.64
	pkgsrc-2013Q4-base:1.7
	pkgsrc-2013Q3:1.7.0.62
	pkgsrc-2013Q3-base:1.7
	pkgsrc-2013Q2:1.7.0.60
	pkgsrc-2013Q2-base:1.7
	pkgsrc-2013Q1:1.7.0.58
	pkgsrc-2013Q1-base:1.7
	pkgsrc-2012Q4:1.7.0.56
	pkgsrc-2012Q4-base:1.7
	pkgsrc-2012Q3:1.7.0.54
	pkgsrc-2012Q3-base:1.7
	pkgsrc-2012Q2:1.7.0.52
	pkgsrc-2012Q2-base:1.7
	pkgsrc-2012Q1:1.7.0.50
	pkgsrc-2012Q1-base:1.7
	pkgsrc-2011Q4:1.7.0.48
	pkgsrc-2011Q4-base:1.7
	pkgsrc-2011Q3:1.7.0.46
	pkgsrc-2011Q3-base:1.7
	pkgsrc-2011Q2:1.7.0.44
	pkgsrc-2011Q2-base:1.7
	pkgsrc-2011Q1:1.7.0.42
	pkgsrc-2011Q1-base:1.7
	pkgsrc-2010Q4:1.7.0.40
	pkgsrc-2010Q4-base:1.7
	pkgsrc-2010Q3:1.7.0.38
	pkgsrc-2010Q3-base:1.7
	pkgsrc-2010Q2:1.7.0.36
	pkgsrc-2010Q2-base:1.7
	pkgsrc-2010Q1:1.7.0.34
	pkgsrc-2010Q1-base:1.7
	pkgsrc-2009Q4:1.7.0.32
	pkgsrc-2009Q4-base:1.7
	pkgsrc-2009Q3:1.7.0.30
	pkgsrc-2009Q3-base:1.7
	pkgsrc-2009Q2:1.7.0.28
	pkgsrc-2009Q2-base:1.7
	pkgsrc-2009Q1:1.7.0.26
	pkgsrc-2009Q1-base:1.7
	pkgsrc-2008Q4:1.7.0.24
	pkgsrc-2008Q4-base:1.7
	pkgsrc-2008Q3:1.7.0.22
	pkgsrc-2008Q3-base:1.7
	cube-native-xorg:1.7.0.20
	cube-native-xorg-base:1.7
	pkgsrc-2008Q2:1.7.0.18
	pkgsrc-2008Q2-base:1.7
	cwrapper:1.7.0.16
	pkgsrc-2008Q1:1.7.0.14
	pkgsrc-2008Q1-base:1.7
	pkgsrc-2007Q4:1.7.0.12
	pkgsrc-2007Q4-base:1.7
	pkgsrc-2007Q3:1.7.0.10
	pkgsrc-2007Q3-base:1.7
	pkgsrc-2007Q2:1.7.0.8
	pkgsrc-2007Q2-base:1.7
	pkgsrc-2007Q1:1.7.0.6
	pkgsrc-2007Q1-base:1.7
	jlam-pkgviews:1.7.0.4
	jlam-pkgviews-base:1.7
	pkgsrc-2006Q4:1.7.0.2
	pkgsrc-2006Q4-base:1.7
	pkgsrc-2006Q3:1.5.0.2
	pkgsrc-2006Q3-base:1.5
	pkgsrc-2006Q2:1.3.0.12
	pkgsrc-2006Q2-base:1.3
	tv-derecurse-eol:1.2.2.3
	pkgsrc-2006Q1:1.3.0.10
	pkgsrc-2006Q1-base:1.3
	pkgsrc-2005Q4:1.3.0.8
	pkgsrc-2005Q4-base:1.3
	pkgsrc-2005Q3:1.3.0.6
	pkgsrc-2005Q3-base:1.3
	pkgsrc-2005Q2:1.3.0.4
	pkgsrc-2005Q2-base:1.3
	tv-derecurse-merge:1.3
	pkgsrc-2005Q1:1.3.0.2
	pkgsrc-2005Q1-base:1.3
	tv-derecurse-base:1.3
	tv-derecurse:1.2.0.2;
locks; strict;
comment	@# @;


1.8
date	2018.08.22.20.48.37;	author maya;	state Exp;
branches;
next	1.7;
commitid	FMEpDDTKwDQBR9PA;

1.7
date	2006.11.30.12.18.32;	author rillig;	state Exp;
branches;
next	1.6;

1.6
date	2006.11.26.13.00.26;	author rillig;	state Exp;
branches;
next	1.5;

1.5
date	2006.09.17.18.46.00;	author rillig;	state Exp;
branches;
next	1.4;

1.4
date	2006.07.31.14.43.48;	author jlam;	state Exp;
branches;
next	1.3;

1.3
date	2005.02.16.23.58.29;	author grant;	state Exp;
branches;
next	1.2;

1.2
date	2005.02.15.09.42.23;	author grant;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2005.02.15.07.43.44;	author grant;	state Exp;
branches;
next	;

1.2.2.1
date	2005.02.15.09.42.23;	author tv;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2005.02.15.16.25.23;	author tv;	state Exp;
branches;
next	1.2.2.3;

1.2.2.3
date	2005.02.25.14.46.51;	author tv;	state Exp;
branches;
next	1.2.2.4;

1.2.2.4
date	2006.06.07.15.25.40;	author tv;	state dead;
branches;
next	;


desc
@@


1.8
log
@Remove clauses 3,4 from TNF-only copyright blocks.

This is based on the decision The NetBSD Foundation made in 2008 to
do so, which was already applied to src.

This change has been applied to code which is likely not in other
repositories.

ok board@@, reviewed by riastradh@@
@
text
@# $NetBSD: transform-icc-cc,v 1.7 2006/11/30 12:18:32 rillig Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Grant Beattie.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

transform_setname "transform-icc-cc"

case $arg in

# Standard options (except -s, which is handled below).
-[cEgOo]		|\
-[DILlU]?*		|\
-O[01]			) transform_pass ;;

# ignore flags that icc doesn't understand.
-fexceptions		|\
-ffast-math		|\
-fomit-frame-pointer	|\
-MP			|\
-OPT:*			|\
-pedantic		|\
-pipe			|\
-s			) transform_discard ;;

-finline-functions	) transform_to "-Ob2" ;;

-funroll-all-loops	|\
-funroll-loops		) transform_to "-unroll" ;;

-O[4-9]			|\
-O[12][0-9]		) transform_to "-O3" ;;

-Wall			|\
-Wl,*			) transform_pass ;;

-W*			) transform_discard_with_warning ;;

# Unknown options.
-*			) transform_pass_with_warning ;;

esac
@


1.7
log
@Added handlers for the standard options.

A warning is printed for all options that are not explicitly handled.

Reindentation to align with the other files.
@
text
@d1 1
a1 1
# $NetBSD: transform-icc-cc,v 1.6 2006/11/26 13:00:26 rillig Exp $
a16 7
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#        This product includes software developed by the NetBSD
#        Foundation, Inc. and its contributors.
# 4. Neither the name of The NetBSD Foundation nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
@


1.6
log
@Converted this file to use the shell functions provided in
wrapper-subr.sh.
@
text
@d1 1
a1 1
# $NetBSD: transform-icc-cc,v 1.5 2006/09/17 18:46:00 rillig Exp $
d40 7
d54 1
a54 3
-s)
	# ignore flags that icc doesn't understand.
	transform_discard ;;
d56 1
a56 2
-finline-functions)
	transform_to "-Ob2" ;;
d59 1
a59 2
-funroll-loops)
	transform_to "-unroll" ;;
d62 1
a62 2
-O[12][0-9])
	transform_to "-O3" ;;
d65 3
a67 2
-Wl,*)
	transform_pass ;;
d69 2
a70 2
-W*)
	transform_discard_with_warning ;;
@


1.5
log
@Fixed the "unknown command" error messages for debug_log, which is a
variable, not a shell function.
@
text
@d1 1
a1 1
# $NetBSD: transform-icc-cc,v 1.4 2006/07/31 14:43:48 jlam Exp $
d37 2
d40 11
a50 8
######################################################################
# ignore flags that icc doesn't understand.
######################################################################
-fexceptions|-ffast-math|-fomit-frame-pointer|-pedantic|-pipe|-s|-MP|-OPT:*)
	arg=
	$debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
	addtocache=yes
	;;
d52 14
a65 16
	arg=-Ob2
	$debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
	addtocache=yes
	;;
-funroll-all-loops|-funroll-loops)
	arg=-unroll
	$debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
	addtocache=yes
	;;
-O[4-9]|-O[12][0-9])
	arg=-O3
	$debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
	addtocache=yes
	;;
-Wall|-Wl,*)
	;;
d67 2
a68 4
	arg=
	$debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
	addtocache=yes
	;;
@


1.4
log
@Use 'debug_log' instead of 'msg_log' so that these wrapper internals aren't
exposed unless WRAPPER_DEBUG is set to "yes".
@
text
@d1 1
a1 1
# $NetBSD: transform-icc-cc,v 1.3 2005/02/16 23:58:29 grant Exp $
d43 1
a43 1
	debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
d48 1
a48 1
	debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
d53 1
a53 1
	debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
d58 1
a58 1
	debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
d65 1
a65 1
	debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
@


1.3
log
@drop -fexceptions which icc doesn't understand.
@
text
@d1 1
a1 1
# $NetBSD: transform-icc-cc,v 1.2 2005/02/15 09:42:23 grant Exp $
d43 1
a43 1
	msg_log $wrapperlog "   (transform-icc-cc) to: $arg"
d48 1
a48 1
	msg_log $wrapperlog "   (transform-icc-cc) to: $arg"
d53 1
a53 1
	msg_log $wrapperlog "   (transform-icc-cc) to: $arg"
d58 1
a58 1
	msg_log $wrapperlog "   (transform-icc-cc) to: $arg"
d65 1
a65 1
	msg_log $wrapperlog "   (transform-icc-cc) to: $arg"
@


1.2
log
@it's 2005, not 2004.
@
text
@d1 1
a1 1
# $NetBSD: transform-icc-cc,v 1.1 2005/02/15 07:43:44 grant Exp $
d41 1
a41 1
-ffast-math|-fomit-frame-pointer|-pedantic|-pipe|-s|-MP|-OPT:*)
@


1.2.2.1
log
@file transform-icc-cc was added on branch tv-derecurse on 2005-02-15 16:25:23 +0000
@
text
@d1 68
@


1.2.2.2
log
@sync with HEAD
@
text
@a0 68
# $NetBSD: transform-icc-cc,v 1.2.2.1 2005/02/15 16:25:23 tv Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Grant Beattie.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#        This product includes software developed by the NetBSD
#        Foundation, Inc. and its contributors.
# 4. Neither the name of The NetBSD Foundation nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

case $arg in
######################################################################
# ignore flags that icc doesn't understand.
######################################################################
-ffast-math|-fomit-frame-pointer|-pedantic|-pipe|-s|-MP|-OPT:*)
	arg=
	msg_log $wrapperlog "   (transform-icc-cc) to: $arg"
	addtocache=yes
	;;
-finline-functions)
	arg=-Ob2
	msg_log $wrapperlog "   (transform-icc-cc) to: $arg"
	addtocache=yes
	;;
-funroll-all-loops|-funroll-loops)
	arg=-unroll
	msg_log $wrapperlog "   (transform-icc-cc) to: $arg"
	addtocache=yes
	;;
-O[4-9]|-O[12][0-9])
	arg=-O3
	msg_log $wrapperlog "   (transform-icc-cc) to: $arg"
	addtocache=yes
	;;
-Wall|-Wl,*)
	;;
-W*)
	arg=
	msg_log $wrapperlog "   (transform-icc-cc) to: $arg"
	addtocache=yes
	;;
esac
@


1.2.2.3
log
@sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: transform-icc-cc,v 1.2.2.2 2005/02/25 14:46:51 tv Exp $
d41 1
a41 1
-fexceptions|-ffast-math|-fomit-frame-pointer|-pedantic|-pipe|-s|-MP|-OPT:*)
@


1.2.2.4
log
@EOL the tv-derecurse branch; it has become too outdated.  The last live
revision can be fetched at the tv-derecurse-eol tag.
@
text
@d1 68
@


1.1
log
@add support for icc, the Intel C++ Compiler (Linux).

icc is a high performance compiler suite for Linux/i386 and ia64, and
is free for non-commercial use. see:

	http://www.intel.com/software/products/compilers/clin/

for more information.

tested with icc version 8.0 and 8.1 on Slackware 10/i386.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
# Copyright (c) 2004 The NetBSD Foundation, Inc.
@
