Changeset ff50f40 in mainline


Ignore:
Timestamp:
2009-01-18T20:35:22Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b1747a5
Parents:
d4668392
Message:

simplify compile options

Location:
kernel/arch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/Makefile.inc

    rd4668392 rff50f40  
    5151
    5252ifeq ($(MACHINE),athlon-xp)
    53         FPU_NO_CFLAGS = -mno-mmx -mno-sse -mno-3dnow
    5453        CMN2 = -march=athlon-xp
    55         GCC_CFLAGS += $(CMN2)
    56         ICC_CFLAGS += $(CMN2)
    5754        SUNCC_CFLAGS += -xarch=ssea
    5855        DEFS += -DCONFIG_FENCES_P3
     
    6158endif
    6259ifeq ($(MACHINE),athlon-mp)
    63         FPU_NO_CFLAGS = -mno-mmx -mno-sse -mno-3dnow
    6460        CMN2 = -march=athlon-mp
    65         GCC_CFLAGS += $(CMN2)
    66         ICC_CFLAGS += $(CMN2)
    6761        SUNCC_CFLAGS += xarch=ssea
    6862        DEFS += -DCONFIG_FENCES_P3
     
    7064endif
    7165ifeq ($(MACHINE),pentium3)
    72         FPU_NO_CFLAGS = -mno-mmx -mno-sse
    7366        CMN2 = -march=pentium3
    74         GCC_CFLAGS += $(CMN2)
    75         ICC_CFLAGS += $(CMN2)
    7667        SUNCC_CFLAGS += -xarch=sse
    7768        DEFS += -DCONFIG_FENCES_P3
    7869        CONFIG_HT = n
    7970endif
     71ifeq ($(MACHINE),pentium4)
     72        CMN2 = -march=pentium4
     73        SUNCC_CFLAGS += -xarch=sse2
     74        DEFS += -DCONFIG_FENCES_P4
     75endif
    8076ifeq ($(MACHINE),core)
    81         FPU_NO_CFLAGS = -mno-mmx -mno-sse -mno-sse2 -mno-sse3
    8277        CMN2 = -march=prescott
    83         GCC_CFLAGS += $(CMN2)
    84         ICC_CFLAGS += $(CMN2)
    8578        SUNCC_CFLAGS += -xarch=sse3
    8679        DEFS += -DCONFIG_FENCES_P4
    8780endif
    88 ifeq ($(MACHINE),pentium4)
    89         FPU_NO_CFLAGS = -mno-mmx -mno-sse -mno-sse2
    90         GCC_CFLAGS += -march=pentium4
    91         ICC_CFLAGS += -march=pentium4
    92         SUNCC_CFLAGS += -xarch=sse2
    93         DEFS += -DCONFIG_FENCES_P4
    94 endif
     81
     82FPU_NO_CFLAGS = -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow
     83GCC_CFLAGS += $(CMN2)
     84ICC_CFLAGS += $(CMN2)
    9585
    9686## Own configuration directives
  • kernel/arch/ia32xen/Makefile.inc

    rd4668392 rff50f40  
    5151
    5252ifeq ($(MACHINE),athlon-xp)
    53         CMN2 = -march=athlon-xp -mmmx -msse -m3dnow
    54         GCC_CFLAGS += $(CMN2)
    55         ICC_CFLAGS += $(CMN2)
     53        CMN2 = -march=athlon-xp
    5654        SUNCC_CFLAGS += -xarch=ssea
    5755        DEFS += -DCONFIG_FENCES_P3
     
    6058endif
    6159ifeq ($(MACHINE),athlon-mp)
    62         CMN2 = -march=athlon-mp -mmmx -msse -m3dnow
    63         GCC_CFLAGS += $(CMN2)
    64         ICC_CFLAGS += $(CMN2)
    65         SUNCC_CFLAGS += -xarch=ssea
     60        CMN2 = -march=athlon-mp
     61        SUNCC_CFLAGS += xarch=ssea
    6662        DEFS += -DCONFIG_FENCES_P3
    6763        CONFIG_HT = n
    6864endif
    6965ifeq ($(MACHINE),pentium3)
    70         CMN2 = -march=pentium3 -mmmx -msse
    71         GCC_CFLAGS += $(CMN2)
    72         ICC_CFLAGS += $(CMN2)
     66        CMN2 = -march=pentium3
    7367        SUNCC_CFLAGS += -xarch=sse
    7468        DEFS += -DCONFIG_FENCES_P3
    7569        CONFIG_HT = n
    7670endif
     71ifeq ($(MACHINE),pentium4)
     72        CMN2 = -march=pentium4
     73        SUNCC_CFLAGS += -xarch=sse2
     74        DEFS += -DCONFIG_FENCES_P4
     75endif
    7776ifeq ($(MACHINE),core)
    78         CMN2 = -march=prescott -mfpmath=sse -mmmx -msse -msse2 -msse3
    79         GCC_CFLAGS += $(CMN2)
    80         ICC_CFLAGS += $(CMN2)
     77        CMN2 = -march=prescott
    8178        SUNCC_CFLAGS += -xarch=sse3
    8279        DEFS += -DCONFIG_FENCES_P4
    8380endif
    84 ifeq ($(MACHINE),pentium4)
    85         GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
    86         ICC_CFLAGS += -march=pentium4
    87         SUNCC_CFLAGS += -xarch=sse2
    88         DEFS += -DCONFIG_FENCES_P4
    89 endif
     81
     82FPU_NO_CFLAGS = -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow
     83GCC_CFLAGS += $(CMN2)
     84ICC_CFLAGS += $(CMN2)
    9085
    9186## Own configuration directives
Note: See TracChangeset for help on using the changeset viewer.