Bug 21423 – frontend.h is platform dependent and has diff on Mac OSX

Status
NEW
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Mac OS X
Creation time
2020-11-24T11:42:41Z
Last change time
2024-12-13T19:12:59Z
Keywords
wrong-code
Assigned to
No Owner
Creator
Mathias LANG
Moved to GitHub: dmd#19828 →

Comments

Comment #0 by pro.mathias.lang — 2020-11-24T11:42:41Z
Running `./src/build.d cxx-headers-test AUTO_UPDATE=1` leads to a bunch of difference, namely: ``` --- a/src/dmd/frontend.h +++ b/src/dmd/frontend.h @@ -81,6 +81,7 @@ class Module; class TemplateInstance; struct Ungag; class ScopeDsymbol; +enum class __c_ulonglong : uint64_t; class AggregateDeclaration; class LabelDsymbol; class ClassDeclaration; @@ -748,6 +749,7 @@ struct TargetCPP; struct TargetObjC; struct Param; struct Target; +enum class __c_longlong : int64_t; struct Mem; class Object; class TypeInfo_Class; @@ -841,7 +843,7 @@ public: virtual void importAll(Scope* sc); virtual Dsymbol* search(const Loc& loc, Identifier* ident, int32_t flags = 0); virtual bool overloadInsert(Dsymbol* s); - virtual d_uns64 size(const Loc& loc); + virtual unsigned long long size(const Loc& loc); virtual bool isforwardRef(); virtual AggregateDeclaration* isThis(); virtual bool isExport() const; // A lot more differences for all `size` methods @@ -6863,8 +6865,8 @@ enum class HIGHLIGHT : uint8_t enum class TARGET : bool { - Linux = true, - OSX = false, + Linux = false, + OSX = true, FreeBSD = false, OpenBSD = false, Solaris = false, @@ -7320,9 +7322,9 @@ typedef int32_t d_int32; typedef uint32_t d_uns32; -typedef int64_t d_int64; +typedef long long d_int64; -typedef uint64_t d_uns64; +typedef unsigned long long d_uns64; typedef uint64_t StorageClass; ```
Comment #1 by alexanderheistermann — 2021-12-31T21:28:01Z
This negatively effects on windows as well. Going to make this a blocker bug, as it makes it difficult for windows users to contribute to the dmd compiler.
Comment #2 by robert.schadek — 2024-12-13T19:12:59Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19828 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB