Some fixes to make it work again on Mac OS X

This commit is contained in:
Wolfgang Thaller 2014-09-25 22:50:22 +02:00
parent cfa92dcc02
commit cd842777c9
4 changed files with 12 additions and 9 deletions

View File

@ -92,7 +92,7 @@ int main(int argc, char *argv[])
if(rx::regex_match(line, match, rtd))
{
out << "\tmove.l (%a7)+, %a0\n";
out << "\tlea " + match[1] + "(%a7), %a7\n";
out << "\tlea " + match[1].str() + "(%a7), %a7\n";
out << "\tjmp (%a0)\n";
hadRts = true;
}

View File

@ -1,3 +1,7 @@
#include <string>
#include <map>
#include <vector>
#include "config.h"
#include "system.h"
#include "coretypes.h"
@ -9,10 +13,6 @@
#include "diagnostic-core.h"
#include "cpplib.h"
#include <string>
#include <map>
#include <vector>
std::map<std::string, int> pragma_parameter_register_names;
extern std::map< std::string, std::vector<int> > pragma_parameter_directives;

View File

@ -17,6 +17,10 @@ You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
#include <string>
#include <map>
#include <vector>
#include "config.h"
#include "system.h"
#include "coretypes.h"
@ -51,10 +55,6 @@ along with GCC; see the file COPYING3. If not see
#include "diagnostic-core.h"
#include <string>
#include <map>
#include <vector>
std::map< std::string, std::vector<int> > pragma_parameter_directives;

View File

@ -1,6 +1,9 @@
IN=$1
OUT=$2
# Make Mac OS X's tr and sed not complain that the files are not UTF-8
export LANG=en
# cp $IN/[A-Z]*.h $OUT/
for file in $(cd $IN; ls [A-Z]*.h); do
tr '\r' '\n' < $IN/$file > $OUT/$file