comparison make/linux/makefiles/gcc.make @ 14402:faf0c78e906b

8019922: PPC64 (part 8): Implement Linux/PPC64 support in HotSpot makefiles Summary: HotSpot make changes to build the HotSpot on Linux/PPC64 Reviewed-by: dholmes, kvn
author simonis
date Wed, 10 Jul 2013 09:14:25 -0700
parents cc63bcb47cce
children e2722a66aba7
comparison
equal deleted inserted replaced
14401:0014add32e54 14402:faf0c78e906b
1 # 1 #
2 # Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. 7 # published by the Free Software Foundation.
179 ARCHFLAG/arm = -fsigned-char 179 ARCHFLAG/arm = -fsigned-char
180 ARCHFLAG/zero = $(ZERO_ARCHFLAG) 180 ARCHFLAG/zero = $(ZERO_ARCHFLAG)
181 ifndef E500V2 181 ifndef E500V2
182 ARCHFLAG/ppc = -mcpu=powerpc 182 ARCHFLAG/ppc = -mcpu=powerpc
183 endif 183 endif
184 ARCHFLAG/ppc64 = -m64
184 185
185 CFLAGS += $(ARCHFLAG) 186 CFLAGS += $(ARCHFLAG)
186 AOUT_FLAGS += $(ARCHFLAG) 187 AOUT_FLAGS += $(ARCHFLAG)
187 LFLAGS += $(ARCHFLAG) 188 LFLAGS += $(ARCHFLAG)
188 ASFLAGS += $(ARCHFLAG) 189 ASFLAGS += $(ARCHFLAG)
344 # Note: The Itanium gcc compiler crashes when using -gstabs. 345 # Note: The Itanium gcc compiler crashes when using -gstabs.
345 DEBUG_CFLAGS/ia64 = -g 346 DEBUG_CFLAGS/ia64 = -g
346 DEBUG_CFLAGS/amd64 = -g 347 DEBUG_CFLAGS/amd64 = -g
347 DEBUG_CFLAGS/arm = -g 348 DEBUG_CFLAGS/arm = -g
348 DEBUG_CFLAGS/ppc = -g 349 DEBUG_CFLAGS/ppc = -g
350 DEBUG_CFLAGS/ppc64 = -g
349 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) 351 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
350 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) 352 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
351 ifeq ($(USE_CLANG), true) 353 ifeq ($(USE_CLANG), true)
352 # Clang doesn't understand -gstabs 354 # Clang doesn't understand -gstabs
353 DEBUG_CFLAGS += -g 355 DEBUG_CFLAGS += -g
359 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) 361 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
360 FASTDEBUG_CFLAGS/ia64 = -g 362 FASTDEBUG_CFLAGS/ia64 = -g
361 FASTDEBUG_CFLAGS/amd64 = -g 363 FASTDEBUG_CFLAGS/amd64 = -g
362 FASTDEBUG_CFLAGS/arm = -g 364 FASTDEBUG_CFLAGS/arm = -g
363 FASTDEBUG_CFLAGS/ppc = -g 365 FASTDEBUG_CFLAGS/ppc = -g
366 FASTDEBUG_CFLAGS/ppc64 = -g
364 FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) 367 FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
365 ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),) 368 ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
366 ifeq ($(USE_CLANG), true) 369 ifeq ($(USE_CLANG), true)
367 # Clang doesn't understand -gstabs 370 # Clang doesn't understand -gstabs
368 FASTDEBUG_CFLAGS += -g 371 FASTDEBUG_CFLAGS += -g
373 376
374 OPT_CFLAGS/ia64 = -g 377 OPT_CFLAGS/ia64 = -g
375 OPT_CFLAGS/amd64 = -g 378 OPT_CFLAGS/amd64 = -g
376 OPT_CFLAGS/arm = -g 379 OPT_CFLAGS/arm = -g
377 OPT_CFLAGS/ppc = -g 380 OPT_CFLAGS/ppc = -g
381 OPT_CFLAGS/ppc64 = -g
378 OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH)) 382 OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH))
379 ifeq ($(OPT_CFLAGS/$(BUILDARCH)),) 383 ifeq ($(OPT_CFLAGS/$(BUILDARCH)),)
380 ifeq ($(USE_CLANG), true) 384 ifeq ($(USE_CLANG), true)
381 # Clang doesn't understand -gstabs 385 # Clang doesn't understand -gstabs
382 OPT_CFLAGS += -g 386 OPT_CFLAGS += -g