Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 328401
Collapse All | Expand All

(-)toolchain-funcs.eclass.orig (+27 lines)
Lines 360-365 Link Here
360
	esac
360
	esac
361
}
361
}
362
362
363
# @FUNCTION: tc-bits
364
# @USAGE: [toolchain arch]
365
# @RETURN: number of bits of the compiler target
366
tc-bits() {
367
	local host=$1
368
	[[ -z ${host} ]] && host=${CTARGET:-${CHOST}}
369
	host=${host%%-*}
370
371
	case ${host} in
372
		alpha*)		echo 64;;
373
		arm*)		echo 32;;
374
		hppa*)		echo 32;;
375
		i?86*)		echo 32;;
376
		ia64*)		echo 64;;
377
		m68*)		echo 32;;
378
		mips*)		echo 32;;
379
		powerpc64*)	echo 64;;
380
		powerpc*)	echo 32;;
381
		s390x*)		echo 64;;
382
		s390*)		echo 32;;
383
		sh*)		echo 32;;
384
		sparc*)		echo 32;;
385
		x86_64*)	echo 64;;
386
		*)			echo wtf;;
387
	esac
388
}
389
363
# @FUNCTION: gcc-fullversion
390
# @FUNCTION: gcc-fullversion
364
# @RETURN: compiler version (major.minor.micro: [3.4.6])
391
# @RETURN: compiler version (major.minor.micro: [3.4.6])
365
gcc-fullversion() {
392
gcc-fullversion() {

Return to bug 328401