turn on c++ 20 (#3579)

* set flags

* emit initializers

* jar
This commit is contained in:
Matthew Kennedy 2021-11-19 19:19:34 -08:00 committed by GitHub
parent 3288f42fbf
commit cdd27abb09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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.

View File

@ -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 {};");
}
}
}

View File

@ -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());

View File

@ -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.

View File

@ -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