Merge trunk HEAD (r46369)

(part 1/x)

svn path=/branches/ros-amd64-bringup/; revision=46375
This commit is contained in:
Timo Kreuzer 2010-03-23 23:45:57 +00:00
parent 15e28917ea
commit a86904e856
15 changed files with 32 additions and 62 deletions

View 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.
*/
#ifndef __BACKEND_H
#define __BACKEND_H
#pragma once
#include "../rbuild.h"
@ -75,5 +75,3 @@ public:
Project& ProjectNode;
Configuration& configuration;
};
#endif /* __BACKEND_H */

View 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.
*/
#ifndef __CODEBLOCKS_H__
#define __CODEBLOCKS_H__
#pragma once
#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;
};
#endif // __MSVC_H__

View 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.
*/
#ifndef __DEPMAP_H__
#define __DEPMAP_H__
#pragma once
#include <fstream>
#include <vector>
@ -62,7 +62,3 @@ class DepMapBackend : public Backend
};
};
#endif // __DEPMAP_H__

View file

@ -17,7 +17,7 @@ endif
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
@ -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)
$${gcc} -MF $$@ ${call RBUILD_cflags,$(1),$(4)} -x c-header -M -MP -MT $$@ $$<
$${gcc} -o $$@ ${call RBUILD_cflags,$(1),$(4)} -x c-header $$<
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)
$${gpp} -MF $$@ ${call RBUILD_cxxflags,$(1),$(4)} -x c++-header -M -MP -MT $$@ $$<
$${gpp} -o $$@ ${call RBUILD_cxxflags,$(1),$(4)} -x c++-header $$<
else

View 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" );
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)\"" );

View 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.
*/
#ifndef MINGW_H
#define MINGW_H
#pragma once
#include "../backend.h"
@ -150,5 +150,3 @@ struct ModuleHandlerInformations
};
extern const struct ModuleHandlerInformations ModuleHandlerInformations[];
#endif /* MINGW_H */

View 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.
*/
#ifndef MINGW_MODULEHANDLER_H
#define MINGW_MODULEHANDLER_H
#pragma once
#include "../backend.h"
#include "mingw.h"
@ -370,5 +370,3 @@ public:
MingwElfExecutableModuleHandler ( const Module& module );
virtual void Process ();
};
#endif /* MINGW_MODULEHANDLER_H */

View file

@ -16,8 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MINGW_RULE_H
#define MINGW_RULE_H
#pragma once
#include "mingw.h"
@ -46,5 +45,3 @@ private:
const std::string command;
string_list generatedFiles;
};
#endif

View 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.
*/
#ifndef __MSBUILD_H__
#define __MSBUILD_H__
#pragma once
#include <fstream>
#include <vector>
@ -66,7 +66,3 @@ class MsBuildBackend : public Backend
};
};
#endif // __MsBuild_H__

View 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.
*/
#ifndef __MSVC_H__
#define __MSVC_H__
#pragma once
#include <fstream>
#include <vector>
@ -253,4 +253,3 @@ class PropsMaker
void _generate_footer();
};
#endif // __MSVC_H__

View 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.
*/
#ifndef __VREPORT_H__
#define __VREPORT_H__
#pragma once
#include <fstream>
#include <vector>
@ -63,6 +63,3 @@ class VReportBackend : public Backend
};
};
#endif // __VREPORT_H__

View 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.
*/
#ifndef __EXCEPTION_H
#define __EXCEPTION_H
#pragma once
#include "pch.h"
#include "xml.h"
@ -144,5 +144,3 @@ public:
std::string BuildTool;
std::string Version;
};
#endif /* __EXCEPTION_H */

View 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.
*/
#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
@ -79,5 +79,3 @@ inline char *strupr(char *x)
#define MAX_PATH PATH_MAX
#define _MAX_PATH PATH_MAX
#endif
#endif//PCH_H

View 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.
*/
#ifndef __RBUILD_H
#define __RBUILD_H
#pragma once
#include "pch.h"
@ -1098,5 +1098,3 @@ NormalizeFilename ( const std::string& filename );
extern std::string
ToLower ( std::string filename );
#endif /* __RBUILD_H */

View 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.
*/
#ifndef __TEST_H
#define __TEST_H
#pragma once
#include "rbuild.h"
#include "backend/mingw/mingw.h"
@ -160,5 +160,3 @@ class CompilationUnitTest : public BaseTest
public:
void Run ();
};
#endif /* __TEST_H */