Merge trunk HEAD (r46369)
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 23 Mar 2010 23:45:57 +0000 (23:45 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 23 Mar 2010 23:45:57 +0000 (23:45 +0000)
(part 1/x)

svn path=/branches/ros-amd64-bringup/; revision=46375

15 files changed:
reactos/tools/rbuild/backend/backend.h
reactos/tools/rbuild/backend/codeblocks/codeblocks.h
reactos/tools/rbuild/backend/dependencymap/dependencymap.h
reactos/tools/rbuild/backend/mingw/compilers/gcc.mak
reactos/tools/rbuild/backend/mingw/mingw.cpp
reactos/tools/rbuild/backend/mingw/mingw.h
reactos/tools/rbuild/backend/mingw/modulehandler.h
reactos/tools/rbuild/backend/mingw/rule.h
reactos/tools/rbuild/backend/msbuild/msbuild.h
reactos/tools/rbuild/backend/msvc/msvc.h
reactos/tools/rbuild/backend/versionreport/versionreport.h
reactos/tools/rbuild/exception.h
reactos/tools/rbuild/pch.h
reactos/tools/rbuild/rbuild.h
reactos/tools/rbuild/test.h

index 87755e8..7e9da13 100644 (file)
@@ -15,8 +15,8 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-#ifndef __BACKEND_H
-#define __BACKEND_H
+
+#pragma once
 
 #include "../rbuild.h"
 
 
 #include "../rbuild.h"
 
@@ -75,5 +75,3 @@ public:
        Project& ProjectNode;
        Configuration& configuration;
 };
        Project& ProjectNode;
        Configuration& configuration;
 };
-
-#endif /* __BACKEND_H */
index 3848560..c0d0c26 100644 (file)
@@ -16,8 +16,8 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-#ifndef __CODEBLOCKS_H__
-#define __CODEBLOCKS_H__
+
+#pragma once
 
 #include <fstream>
 #include <vector>
 
 #include <fstream>
 #include <vector>
@@ -98,7 +98,3 @@ class CBBackend : public Backend
                bool _copy_file ( const std::string& inputname, const std::string& targetname ) const;
                const Property* _lookup_property ( const Module& module, const std::string& name ) const;
 };
                bool _copy_file ( const std::string& inputname, const std::string& targetname ) const;
                const Property* _lookup_property ( const Module& module, const std::string& name ) const;
 };
-
-
-#endif // __MSVC_H__
-
index 1610d37..96114f5 100644 (file)
@@ -15,8 +15,8 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-#ifndef __DEPMAP_H__
-#define __DEPMAP_H__
+
+#pragma once
 
 #include <fstream>
 #include <vector>
 
 #include <fstream>
 #include <vector>
@@ -62,7 +62,3 @@ class DepMapBackend : public Backend
                };
 
 };
                };
 
 };
-
-
-#endif // __DEPMAP_H__
-
index f54acd0..1f2a09f 100644 (file)
@@ -17,7 +17,7 @@ endif
 BUILTIN_CXXFLAGS+= -fno-optimize-sibling-calls
 
 # Add -fno-set-stack-executable required for x86/MinGW
 BUILTIN_CXXFLAGS+= -fno-optimize-sibling-calls
 
 # Add -fno-set-stack-executable required for x86/MinGW
-ifneq (,$(filter $(ARCH), i386))
+ifneq (,$(filter $(ARCH),amd64 i386))
        BUILTIN_CFLAGS+= -fno-set-stack-executable
        BUILTIN_CXXFLAGS+= -fno-set-stack-executable
 endif
        BUILTIN_CFLAGS+= -fno-set-stack-executable
        BUILTIN_CXXFLAGS+= -fno-set-stack-executable
 endif
@@ -129,7 +129,7 @@ ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch.d:
 
 ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch: $(2) ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch.d $(3) | ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)
        $$(ECHO_PCH)
 
 ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch: $(2) ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch.d $(3) | ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)
        $$(ECHO_PCH)
-       $${gcc} -MF $$@ ${call RBUILD_cflags,$(1),$(4)} -x c-header -M -MP -MT $$@ $$<
+       $${gcc} -o $$@ ${call RBUILD_cflags,$(1),$(4)} -x c-header $$<
 
 else
 
 
 else
 
@@ -156,7 +156,7 @@ ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch.d:
 
 ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch: $(2) ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch.d $(3) | ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)
        $$(ECHO_PCH)
 
 ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch: $(2) ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch.d $(3) | ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)
        $$(ECHO_PCH)
-       $${gpp} -MF $$@ ${call RBUILD_cxxflags,$(1),$(4)} -x c++-header -M -MP -MT $$@ $$<
+       $${gpp} -o $$@ ${call RBUILD_cxxflags,$(1),$(4)} -x c++-header $$<
 
 else
 
 
 else
 
index 2ffc0ee..fa428a2 100644 (file)
@@ -487,8 +487,11 @@ MingwBackend::GenerateGlobalVariables () const
                fputs ( "BUILTIN_CXXINCLUDES+= $(TARGET_CPPFLAGS)\n", fMakefile );
 
                fprintf ( fMakefile, "PROJECT_CCLIBS := \"$(shell ${TARGET_CC} -print-libgcc-file-name)\"\n" );
                fputs ( "BUILTIN_CXXINCLUDES+= $(TARGET_CPPFLAGS)\n", fMakefile );
 
                fprintf ( fMakefile, "PROJECT_CCLIBS := \"$(shell ${TARGET_CC} -print-libgcc-file-name)\"\n" );
-        fprintf ( fMakefile, "PROJECT_CXXLIBS := \"$(shell ${TARGET_CPP} -print-file-name=libstdc++.a)\" \"$(shell ${TARGET_CPP} -print-libgcc-file-name)\" \"$(shell ${TARGET_CPP} -print-file-name=libmingw32.a)\" \"$(shell ${TARGET_CPP} -print-file-name=libmingwex.a)\" " );
 
 
+               // We use our proprietary "ofmt_stub.a" to implement a stub for "_get_output_format" required by "libmingwex.a".
+               // This archive just contains the compiled "ofmt_stub.s" supplied with the MinGW Runtime sources.
+               fprintf ( fMakefile, "PROJECT_CXXLIBS := \"$(shell ${TARGET_CPP} -print-file-name=libstdc++.a)\" \"$(shell ${TARGET_CPP} -print-libgcc-file-name)\" \"$(shell ${TARGET_CPP} -print-file-name=libmingw32.a)\" \"$(shell ${TARGET_CPP} -print-file-name=libmingwex.a)\" \"$(shell ${TARGET_CPP} -print-file-name=ofmt_stub.a)\" \"$(shell ${TARGET_CPP} -print-file-name=libcoldname.a)\"\n" );
+               
                /* hack to get libgcc_eh.a, should check mingw version or something */
                if (Environment::GetArch() == "amd64")
                        fprintf ( fMakefile, " \"$(shell ${TARGET_CPP} -print-file-name=libgcc_eh.a)\"" );
                /* hack to get libgcc_eh.a, should check mingw version or something */
                if (Environment::GetArch() == "amd64")
                        fprintf ( fMakefile, " \"$(shell ${TARGET_CPP} -print-file-name=libgcc_eh.a)\"" );
index 4e31394..e73973f 100644 (file)
@@ -15,8 +15,8 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-#ifndef MINGW_H
-#define MINGW_H
+
+#pragma once
 
 #include "../backend.h"
 
 
 #include "../backend.h"
 
@@ -150,5 +150,3 @@ struct ModuleHandlerInformations
 };
 
 extern const struct ModuleHandlerInformations ModuleHandlerInformations[];
 };
 
 extern const struct ModuleHandlerInformations ModuleHandlerInformations[];
-
-#endif /* MINGW_H */
index 797f075..b67f63f 100644 (file)
@@ -15,8 +15,8 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-#ifndef MINGW_MODULEHANDLER_H
-#define MINGW_MODULEHANDLER_H
+
+#pragma once
 
 #include "../backend.h"
 #include "mingw.h"
 
 #include "../backend.h"
 #include "mingw.h"
@@ -370,5 +370,3 @@ public:
        MingwElfExecutableModuleHandler ( const Module& module );
        virtual void Process ();
 };
        MingwElfExecutableModuleHandler ( const Module& module );
        virtual void Process ();
 };
-
-#endif /* MINGW_MODULEHANDLER_H */
index fa56b0d..1c9c9a5 100644 (file)
@@ -16,8 +16,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#ifndef MINGW_RULE_H
-#define MINGW_RULE_H
+#pragma once
 
 #include "mingw.h"
 
 
 #include "mingw.h"
 
@@ -46,5 +45,3 @@ private:
        const std::string command;
        string_list generatedFiles;
 };
        const std::string command;
        string_list generatedFiles;
 };
-
-#endif
index 6252278..d1cd1f0 100644 (file)
@@ -15,8 +15,8 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-#ifndef __MSBUILD_H__
-#define __MSBUILD_H__
+
+#pragma once
 
 #include <fstream>
 #include <vector>
 
 #include <fstream>
 #include <vector>
@@ -66,7 +66,3 @@ class MsBuildBackend : public Backend
                };
 
 };
                };
 
 };
-
-
-#endif // __MsBuild_H__
-
index 4be80c6..a917c12 100644 (file)
@@ -16,8 +16,8 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-#ifndef __MSVC_H__
-#define __MSVC_H__
+
+#pragma once
 
 #include <fstream>
 #include <vector>
 
 #include <fstream>
 #include <vector>
@@ -253,4 +253,3 @@ class PropsMaker
                void _generate_footer();
 
 };
                void _generate_footer();
 
 };
-#endif // __MSVC_H__
index 2b677b8..24d4add 100644 (file)
@@ -15,8 +15,8 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-#ifndef __VREPORT_H__
-#define __VREPORT_H__
+
+#pragma once
 
 #include <fstream>
 #include <vector>
 
 #include <fstream>
 #include <vector>
@@ -63,6 +63,3 @@ class VReportBackend : public Backend
                };
 
 };
                };
 
 };
-
-
-#endif // __VREPORT_H__
index 9adde7d..c095285 100644 (file)
@@ -15,8 +15,8 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-#ifndef __EXCEPTION_H
-#define __EXCEPTION_H
+
+#pragma once
 
 #include "pch.h"
 #include "xml.h"
 
 #include "pch.h"
 #include "xml.h"
@@ -144,5 +144,3 @@ public:
        std::string BuildTool;
        std::string Version;
 };
        std::string BuildTool;
        std::string Version;
 };
-
-#endif /* __EXCEPTION_H */
index 298699e..e98342b 100644 (file)
@@ -15,8 +15,8 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-#ifndef PCH_H
-#define PCH_H
+
+#pragma once
 
 #ifdef _MSC_VER
 #pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information
 
 #ifdef _MSC_VER
 #pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information
@@ -79,5 +79,3 @@ inline char *strupr(char *x)
 #define MAX_PATH PATH_MAX
 #define _MAX_PATH PATH_MAX
 #endif
 #define MAX_PATH PATH_MAX
 #define _MAX_PATH PATH_MAX
 #endif
-
-#endif//PCH_H
index 9ecb952..e5be60c 100644 (file)
@@ -15,8 +15,8 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-#ifndef __RBUILD_H
-#define __RBUILD_H
+
+#pragma once
 
 #include "pch.h"
 
 
 #include "pch.h"
 
@@ -1098,5 +1098,3 @@ NormalizeFilename ( const std::string& filename );
 
 extern std::string
 ToLower ( std::string filename );
 
 extern std::string
 ToLower ( std::string filename );
-
-#endif /* __RBUILD_H */
index fd9cdfc..69e131f 100644 (file)
@@ -15,8 +15,8 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-#ifndef __TEST_H
-#define __TEST_H
+
+#pragma once
 
 #include "rbuild.h"
 #include "backend/mingw/mingw.h"
 
 #include "rbuild.h"
 #include "backend/mingw/mingw.h"
@@ -160,5 +160,3 @@ class CompilationUnitTest : public BaseTest
 public:
        void Run ();
 };
 public:
        void Run ();
 };
-
-#endif /* __TEST_H */