From: Iain Buclaw Date: Tue, 18 Mar 2025 17:47:45 +0000 (+0100) Subject: d: Add missing Declaration bitfield setters/getters X-Git-Tag: basepoints/gcc-16~1283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a03e9d4932713c1696bb2bc134da8e8eac3edb94;p=thirdparty%2Fgcc.git d: Add missing Declaration bitfield setters/getters gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd fde0f8c40a. Reviewed-on: https://github.com/dlang/dmd/pull/21014 --- diff --git a/gcc/d/dmd/MERGE b/gcc/d/dmd/MERGE index 57973b18115..1be4da416f4 100644 --- a/gcc/d/dmd/MERGE +++ b/gcc/d/dmd/MERGE @@ -1,4 +1,4 @@ -51be8bb729cfa41ff5af4f5b2a9b7b9902bfdaa1 +fde0f8c40a1b8eb78c3485cb0e940035bfe6fb00 The first line of this file holds the git revision number of the last merge done from the dlang/dmd repository. diff --git a/gcc/d/dmd/declaration.h b/gcc/d/dmd/declaration.h index c535e4cbb14..c7e45526084 100644 --- a/gcc/d/dmd/declaration.h +++ b/gcc/d/dmd/declaration.h @@ -128,6 +128,10 @@ public: short inuse; // used to detect cycles uint8_t bitFields; + LINK _linkage() const; + LINK _linkage(LINK v); + bool noUnderscore() const; + const char *kind() const override; uinteger_t size(Loc loc) override final; diff --git a/gcc/d/dmd/func.d b/gcc/d/dmd/func.d index cc17be741c3..e96c3326b75 100644 --- a/gcc/d/dmd/func.d +++ b/gcc/d/dmd/func.d @@ -1006,12 +1006,12 @@ extern (C++) class FuncDeclaration : Declaration /********************************** * Generate a FuncDeclaration for a runtime library function. */ - extern (D) static FuncDeclaration genCfunc(Parameters* fparams, Type treturn, const(char)* name, STC stc = STC.none) + extern(D) static FuncDeclaration genCfunc(Parameters* fparams, Type treturn, const(char)* name, STC stc = STC.none) { return genCfunc(fparams, treturn, Identifier.idPool(name[0 .. strlen(name)]), stc); } - extern (D) static FuncDeclaration genCfunc(Parameters* fparams, Type treturn, Identifier id, STC stc = STC.none) + extern(D) static FuncDeclaration genCfunc(Parameters* fparams, Type treturn, Identifier id, STC stc = STC.none) { FuncDeclaration fd; TypeFunction tf;