comparison dmd/StructDeclaration.d @ 95:ae5b11064a9a

beginning of 2.036 branch
author Trass3r
date Mon, 30 Aug 2010 23:08:44 +0200
parents 37b95c347975
children e6090d1aea7c
comparison
equal deleted inserted replaced
93:df6d0f967680 95:ae5b11064a9a
738 } 738 }
739 sinit.Sfl = FL.FLdata; 739 sinit.Sfl = FL.FLdata;
740 740
741 toDt(&sinit.Sdt); 741 toDt(&sinit.Sdt);
742 742
743 version (OMFOBJ) { 743 version (OMFOBJ)
744 {
744 /* For OMF, common blocks aren't pulled in from the library. 745 /* For OMF, common blocks aren't pulled in from the library.
745 */ 746 */
746 /* ELF comdef's generate multiple 747 /* ELF comdef's generate multiple
747 * definition errors for them from the gnu linker. 748 * definition errors for them from the gnu linker.
748 * Need to figure out how to generate proper comdef's for ELF. 749 * Need to figure out how to generate proper comdef's for ELF.
749 */ 750 */
750 // See if we can convert a comdat to a comdef, 751 // See if we can convert a comdat to a comdef,
751 // which saves on exe file space. 752 // which saves on exe file space.
752 if (sinit.Sclass == SCcomdat && 753 if (0 && // causes multiple def problems with COMMON in one file and COMDAT in library
754 sinit.Sclass == SCcomdat &&
753 sinit.Sdt && 755 sinit.Sdt &&
754 sinit.Sdt.dt == DT.DT_azeros && 756 sinit.Sdt.dt == DT.DT_azeros &&
755 sinit.Sdt.DTnext == null && 757 sinit.Sdt.DTnext == null &&
756 !global.params.multiobj) 758 !global.params.multiobj)
757 { 759 {