jdk/make/sun/jpeg/Makefile
changeset 9361 1051c04ab0b1
parent 9210 f973306e1d07
parent 9350 799e0bb89242
equal deleted inserted replaced
9307:f4298bc3f4b6 9361:1051c04ab0b1
    71   # or 'vfork'": this warning indicates that some variable is placed to
    71   # or 'vfork'": this warning indicates that some variable is placed to
    72   # a register by optimized compiler and it's value might be lost on longjmp().
    72   # a register by optimized compiler and it's value might be lost on longjmp().
    73   # Recommended way to avoid such warning is to declare the variable as
    73   # Recommended way to avoid such warning is to declare the variable as
    74   # volatile to prevent the optimization. However, this approach does not
    74   # volatile to prevent the optimization. However, this approach does not
    75   # work because we have to declare all variables as volatile in result.
    75   # work because we have to declare all variables as volatile in result.
    76 ifndef CROSS_COMPILE_ARCH
    76   ifndef CROSS_COMPILE_ARCH
    77   OTHER_CFLAGS += -Wno-clobbered
    77     CC_43_OR_NEWER := \
    78 endif
    78       $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \
       
    79           \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) )
       
    80     ifeq ($(CC_43_OR_NEWER),1)
       
    81       OTHER_CFLAGS += -Wno-clobbered
       
    82     endif
       
    83   endif
    79 endif
    84 endif
    80 
    85 
    81 include $(BUILDDIR)/common/Mapfile-vers.gmk
    86 include $(BUILDDIR)/common/Mapfile-vers.gmk
    82 include $(BUILDDIR)/common/Library.gmk
    87 include $(BUILDDIR)/common/Library.gmk
    83 
    88