parent
3288f42fbf
commit
cdd27abb09
|
@ -62,7 +62,7 @@ endif
|
|||
|
||||
# C++ specific options here (added to USE_OPT).
|
||||
ifeq ($(USE_CPPOPT),)
|
||||
USE_CPPOPT = -std=c++17 -Wno-register -fno-rtti -fno-threadsafe-statics -fno-exceptions -fno-use-cxa-atexit
|
||||
USE_CPPOPT = -std=c++2a -Wno-register -fno-rtti -fno-threadsafe-statics -fno-exceptions -fno-use-cxa-atexit
|
||||
endif
|
||||
|
||||
# Hellen is one of the boards which cares
|
||||
|
|
|
@ -39,7 +39,7 @@ endif
|
|||
# C++ specific options here (added to USE_OPT).
|
||||
ifeq ($(USE_CPPOPT),)
|
||||
# constexpr float expf_taylor_impl probably needs just c++14 but why not go with 17?
|
||||
USE_CPPOPT = -std=c++17 -Wno-register -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Werror=write-strings -Werror=type-limits -Winvalid-pch
|
||||
USE_CPPOPT = -std=c++2a -Wno-register -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Werror=write-strings -Werror=type-limits -Winvalid-pch
|
||||
endif
|
||||
|
||||
# Enable this if you want the linker to remove unused code and data
|
||||
|
|
Binary file not shown.
|
@ -84,11 +84,11 @@ public class BitGroupLayout extends Layout {
|
|||
}
|
||||
|
||||
ps.println("offset " + this.offsetWithinStruct + " bit " + i + " */");
|
||||
ps.println("\tbool " + bit.name + " : 1;");
|
||||
ps.println("\tbool " + bit.name + " : 1 {};");
|
||||
} else {
|
||||
// Force pad out all bit groups to a full 32b/4B
|
||||
ps.println("offset " + this.offsetWithinStruct + " bit " + i + " */");
|
||||
ps.println("\tbool unusedBit_" + this.offsetWithinStruct + "_" + i + " : 1;");
|
||||
ps.println("\tbool unusedBit_" + this.offsetWithinStruct + "_" + i + " : 1 {};");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ public abstract class BaseCHeaderConsumer implements ConfigurationConsumer {
|
|||
public static String getHeaderText(ConfigField configField, int currentOffset, int bitIndex) {
|
||||
if (configField.isBit()) {
|
||||
String comment = "\t/**" + EOL + ConfigDefinition.packComment(configField.getCommentContent(), "\t") + "\toffset " + currentOffset + " bit " + bitIndex + " */" + EOL;
|
||||
return comment + "\t" + BOOLEAN_TYPE + " " + configField.getName() + " : 1;" + EOL;
|
||||
return comment + "\t" + BOOLEAN_TYPE + " " + configField.getName() + " : 1 {};" + EOL;
|
||||
}
|
||||
|
||||
String cEntry = ConfigDefinition.getComment(configField.getCommentContent(), currentOffset, configField.getUnits());
|
||||
|
|
|
@ -65,7 +65,7 @@ endif
|
|||
|
||||
# C++ specific options here (added to USE_OPT).
|
||||
ifeq ($(USE_CPPOPT),)
|
||||
USE_CPPOPT = -std=c++17 -Wno-register -fno-rtti
|
||||
USE_CPPOPT = -std=c++2a -Wno-register -fno-rtti
|
||||
endif
|
||||
|
||||
# Enable this if you want the linker to remove unused code and data.
|
||||
|
|
|
@ -63,7 +63,7 @@ endif
|
|||
|
||||
# C++ specific options here (added to USE_OPT).
|
||||
ifeq ($(USE_CPPOPT),)
|
||||
USE_CPPOPT = -std=gnu++17 -fno-rtti -fpermissive -fno-use-cxa-atexit
|
||||
USE_CPPOPT = -std=gnu++2a -fno-rtti -fpermissive -fno-use-cxa-atexit
|
||||
endif
|
||||
|
||||
# Enable this if you want the linker to remove unused code and data
|
||||
|
|
Loading…
Reference in New Issue