1. Jan N. Schulze
  2. gdc

Commits

Iain Buclaw  committed af07c3a

D1 regression with static array equality testing.

  • Participants
  • Parent commits 3cf2087
  • Branches default

Comments (0)

Files changed (6)

File d/d-decls.cc

View file
  • Ignore whitespace
             if (TREE_CODE(var_decl) == VAR_DECL)
             {   // %% If not marked, variable will be accessible
                 // from multiple threads, which is not what we want.
-                if (targetm.have_tls)
-                    DECL_TLS_MODEL(var_decl) = decl_default_tls_model(var_decl);
-                else
-                    DECL_TLS_MODEL(var_decl) = TLS_MODEL_EMULATED;
+                DECL_TLS_MODEL(var_decl) = decl_default_tls_model(var_decl);
             }
             if (global.params.vtls)
             {

File d/d-glue.cc

View file
  • Ignore whitespace
         }
         else if (tb1->ty == Tsarray && tb2->ty == Tsarray)
         {   // Assuming sizes are equal.
-            return build2(EQ_EXPR, type->toCtype(),
-                          e1->toElem(irs), e2->toElem(irs));
+            return build2(op == TOKnotequal ? NE_EXPR : EQ_EXPR,
+                          type->toCtype(), e1->toElem(irs), e2->toElem(irs));
         }
         else
         {

File d/phobos/configure

View file
  • Ignore whitespace
 # include dir .. need to support --enable-version-specific.. but
 # will have to modify gcc/configure.ac ..
 # For now, basic workaround for cross compilers ..
-if test "${host}" != "${target}"; then
+if test "${host}" != "${build}"; then
     gdc_include_dir='${libdir}/gcc/${host_alias}'/${d_gcc_ver}/include/d
 else
     gdc_include_dir='${prefix}'/include/d/${d_gcc_ver}

File d/phobos/configure.in

View file
  • Ignore whitespace
 # include dir .. need to support --enable-version-specific.. but
 # will have to modify gcc/configure.ac ..
 # For now, basic workaround for cross compilers ..
-if test "${host}" != "${target}"; then
+if test "${host}" != "${build}"; then
     gdc_include_dir='${libdir}/gcc/${host_alias}'/${d_gcc_ver}/include/d
 else
     gdc_include_dir='${prefix}'/include/d/${d_gcc_ver}

File d/phobos2/Makefile.am

View file
  • Ignore whitespace
 FREEBSD_OBJS=std/c/freebsd/socket.o
 
 # std.c.linux.linux, std.loader, gcc.cbridge*
-WINDOWS_OBJS=std/c/windows/com.o std/c/windows/stat.o std/c/windows/windows.o \
-             std/c/windows/winsock.o std/windows/charset.o \
-             std/windows/iunknown.o std/windows/registry.o \
-             std/windows/syserror.o std/__fileinit.o
+WINDOWS_OBJS=std/c/windows/com.o std/c/windows/stat.o std/c/wcharh.o \
+             std/c/windows/windows.o std/c/windows/winsock.o \
+             std/windows/charset.o std/windows/iunknown.o std/windows/registry.o \
+             std/windows/syserror.o std/__fileinit.o 
 
 D_EXTRA_OBJS=@D_EXTRA_OBJS@
 

File d/phobos2/configure

View file
  • Ignore whitespace
 # include dir .. need to support --enable-version-specific.. but
 # will have to modify gcc/configure.ac ..
 # For now, basic workaround for cross compilers ..
-if test "${host}" != "${target}"; then
+if test "${host}" != "${build}"; then
     gdc_include_dir='${libdir}/gcc/${host_alias}'/${d_gcc_ver}/include/d2
 else
     gdc_include_dir='${prefix}'/include/d2/${d_gcc_ver}