Print this page
rev 7128 : 8074010: followup to 8072383
Summary: move arm and gcc logic from open gcc.make to closed
Reviewed-by: dholmes, kvn

Split Split Close
Expand all
Collapse all
          --- old/hotspot/make/linux/makefiles/gcc.make
          +++ new/hotspot/make/linux/makefiles/gcc.make
↓ open down ↓ 329 lines elided ↑ open up ↑
 330  330    CFLAGS += -g
 331  331  else
 332  332    # Use the stabs format for debugging information (this is the default
 333  333    # on gcc-2.91). It's good enough, has all the information about line
 334  334    # numbers and local variables, and libjvm.so is only about 16M.
 335  335    # Change this back to "-g" if you want the most expressive format.
 336  336    # (warning: that could easily inflate libjvm.so to 150M!)
 337  337    # Note: The Itanium gcc compiler crashes when using -gstabs.
 338  338    DEBUG_CFLAGS/ia64  = -g
 339  339    DEBUG_CFLAGS/amd64 = -g
 340      -  DEBUG_CFLAGS/arm   = -g
 341      -  DEBUG_CFLAGS/ppc   = -g
 342  340    DEBUG_CFLAGS/ppc64 = -g
 343  341    DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
 344  342    ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
 345  343        ifeq ($(USE_CLANG), true)
 346  344          # Clang doesn't understand -gstabs
 347      -        DEBUG_CFLAGS += -g
      345 +        DEBUG_CFLAGS/$(BUILDARCH) = -g
 348  346        else
 349      -        DEBUG_CFLAGS += -gstabs
      347 +        DEBUG_CFLAGS/$(BUILDARCH) = -gstabs
 350  348        endif
 351  349    endif
 352  350    
 353  351    ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 354  352      FASTDEBUG_CFLAGS/ia64  = -g
 355  353      FASTDEBUG_CFLAGS/amd64 = -g
 356      -    FASTDEBUG_CFLAGS/arm   = -g
 357      -    FASTDEBUG_CFLAGS/ppc   = -g
 358  354      FASTDEBUG_CFLAGS/ppc64 = -g
 359      -    FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
      355 +    FASTDEBUG_CFLAGS += $(FASTDEBUG_CFLAGS/$(BUILDARCH))
 360  356      ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
 361  357        ifeq ($(USE_CLANG), true)
 362  358          # Clang doesn't understand -gstabs
 363      -        FASTDEBUG_CFLAGS += -g
      359 +        FASTDEBUG_CFLAGS/$(BUILDARCH) = -g
 364  360        else
 365      -        FASTDEBUG_CFLAGS += -gstabs
      361 +        FASTDEBUG_CFLAGS/$(BUILDARCH) = -gstabs
 366  362        endif
 367  363      endif
 368  364    
 369  365      OPT_CFLAGS/ia64  = -g
 370  366      OPT_CFLAGS/amd64 = -g
 371      -    OPT_CFLAGS/arm   = -g
 372      -    OPT_CFLAGS/ppc   = -g
 373  367      OPT_CFLAGS/ppc64 = -g
 374  368      OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH))
 375  369      ifeq ($(OPT_CFLAGS/$(BUILDARCH)),)
 376  370        ifeq ($(USE_CLANG), true)
 377  371          # Clang doesn't understand -gstabs
 378      -        OPT_CFLAGS += -g
      372 +        OPT_CFLAGS/$(BUILDARCH) = -g
 379  373        else
 380      -        OPT_CFLAGS += -gstabs
      374 +        OPT_CFLAGS/$(BUILDARCH) = -gstabs
 381  375        endif
 382  376      endif
 383  377    endif
 384  378  endif
 385  379  
 386  380  # If we are building HEADLESS, pass on to VM
 387  381  # so it can set the java.awt.headless property
 388  382  ifdef HEADLESS
 389  383  CFLAGS += -DHEADLESS
 390  384  endif
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX