Project

General

Profile

Bug #12747 ยป intel-mtune.patch

Vitaliy Gusev, 2020-07-05 04:43 PM

View differences:

usr/src/lib/libshell/misc/buildksh93.sh
356 356
                *.sparc.64bit.suncc*) HOSTTYPE="sol11.sun4" CC="${bsunc99} -m64 -dalign -KPIC"    cc_sharedlib="-G" CCFLAGS="${bsuncc_ccflags}" bsuncc_app_ccflags="${bsuncc_app_ccflags_sparc}" ;;
357 357

  
358 358
                *.i386.32bit.gcc*)  HOSTTYPE="sol11.i386" CC="${bgcc99} -fPIC"                                            cc_sharedlib="-shared" CCFLAGS="${bgcc_ccflags}"  ;;
359
                *.i386.64bit.gcc*)  HOSTTYPE="sol11.i386" CC="${bgcc99} -m64 -mtune=opteron -Ui386 -U__i386 -fPIC"        cc_sharedlib="-shared" CCFLAGS="${bgcc_ccflags}"  ;;
359
                *.i386.64bit.gcc*)  HOSTTYPE="sol11.i386" CC="${bgcc99} -m64 -march=x86-64 -mtune=generic -Ui386 -U__i386 -fPIC"        cc_sharedlib="-shared" CCFLAGS="${bgcc_ccflags}"  ;;
360 360
                *.sparc.32bit.gcc*) HOSTTYPE="sol11.sun4" CC="${bgcc99} -m32 -mcpu=v8 -fPIC"                              cc_sharedlib="-shared" CCFLAGS="${bgcc_ccflags}"  ;;
361 361
                *.sparc.64bit.gcc*) HOSTTYPE="sol11.sun4" CC="${bgcc99} -m64 -mcpu=v9 -fPIC"                              cc_sharedlib="-shared" CCFLAGS="${bgcc_ccflags}"  ;;
362 362
                *.s390.32bit.gcc*)  HOSTTYPE="sol11.s390" CC="${bgcc99} -m32          -fPIC"				  cc_sharedlib="-shared" CCFLAGS="${bgcc_ccflags}"  ;;
usr/src/tools/cw/cw.c
345 345
static const xarch_table_t xtbl[] = {
346 346
#if defined(__x86)
347 347
	{ "generic",	SS11, {NULL} },
348
	{ "generic64",	(SS11|M64), { "-m64", "-mtune=opteron" } },
348
	{ "generic64",	(SS11|M64), { "-m64", "-march=x86-64 -mtune=generic" } },
349 349
	{ "amd64",	(SS11|M64), { "-m64", "-mtune=opteron" } },
350 350
	{ "386",	SS11,	{ "-march=i386" } },
351 351
	{ "pentium_pro", SS11,	{ "-march=pentiumpro" } },
......
884 884
			if (strcmp(arg, "-m64") == 0) {
885 885
				newae(ctx->i_ae, "-m64");
886 886
#if defined(__x86)
887
				newae(ctx->i_ae, "-mtune=opteron");
887
				newae(ctx->i_ae, "-march=x86-64");
888
				newae(ctx->i_ae, "-mtune=generic");
888 889
#endif
889 890
				mflag |= M64;
890 891
				break;
    (1-1/1)