equal
deleted
inserted
replaced
219 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit |
219 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit |
220 # conversions which might affect the values. Only enable it in earlier versions. |
220 # conversions which might affect the values. Only enable it in earlier versions. |
221 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0" |
221 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0" |
222 # GCC < 4.3 |
222 # GCC < 4.3 |
223 WARNING_FLAGS += -Wconversion |
223 WARNING_FLAGS += -Wconversion |
224 endif |
224 endif |
225 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 8 \) \))" "1" |
225 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 8 \) \))" "1" |
226 # GCC >= 4.8 |
226 # GCC >= 4.8 |
227 # This flag is only known since GCC 4.3. Gcc 4.8 contains a fix so that with templates no |
227 # This flag is only known since GCC 4.3. Gcc 4.8 contains a fix so that with templates no |
228 # warnings are issued: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11856 |
228 # warnings are issued: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11856 |
229 WARNING_FLAGS += -Wtype-limits |
229 WARNING_FLAGS += -Wtype-limits |
258 endif |
258 endif |
259 endif |
259 endif |
260 |
260 |
261 OPT_CFLAGS = $(OPT_CFLAGS/$(OPT_CFLAGS_DEFAULT)) $(OPT_EXTRAS) |
261 OPT_CFLAGS = $(OPT_CFLAGS/$(OPT_CFLAGS_DEFAULT)) $(OPT_EXTRAS) |
262 |
262 |
263 # Variable tracking size limit exceeded for VMStructs::init() |
263 # Variable tracking size limit exceeded for VMStructs::init() |
264 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "1" |
264 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "1" |
265 # GCC >= 4.3 |
265 # GCC >= 4.3 |
266 # Gcc 4.1.2 does not support this flag, nor does it have problems compiling the file. |
266 # Gcc 4.1.2 does not support this flag, nor does it have problems compiling the file. |
267 OPT_CFLAGS/vmStructs.o += -fno-var-tracking-assignments |
267 OPT_CFLAGS/vmStructs.o += -fno-var-tracking-assignments |
268 # The debug flag is added to OPT_CFLAGS, but lost in case of per-file overrides |
268 # The debug flag is added to OPT_CFLAGS, but lost in case of per-file overrides |