diff -Naur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/gcc46/Portfile ./Portfile
old
|
new
|
|
| 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
1 | 2 | # $Id: Portfile 98042 2012-09-24 01:22:57Z jeremyhu@macports.org $ |
2 | 3 | |
3 | 4 | PortSystem 1.0 |
… |
… |
|
6 | 7 | name gcc46 |
7 | 8 | epoch 1 |
8 | 9 | version 4.6.3 |
9 | | revision 8 |
| 10 | revision 9 |
10 | 11 | platforms darwin |
11 | 12 | categories lang |
12 | 13 | maintainers mww openmaintainer |
… |
… |
|
54 | 55 | |
55 | 56 | worksrcdir build |
56 | 57 | |
| 58 | patchfiles gcc-4.6-cloog_lang_c.patch |
| 59 | patch.dir ${workpath}/gcc-${version} |
| 60 | |
57 | 61 | post-extract { |
58 | 62 | file mkdir ${worksrcpath} |
59 | 63 | copy ${distpath}/${ecj} ${workpath}/${distname}/ecj.jar |
… |
… |
|
82 | 86 | --with-mpc=${prefix} \ |
83 | 87 | --with-ppl=${prefix} \ |
84 | 88 | --with-cloog=${prefix} --enable-cloog-backend=isl \ |
| 89 | --disable-cloog-version-check \ |
85 | 90 | --enable-stage1-checking \ |
86 | 91 | --disable-multilib \ |
87 | 92 | --enable-lto \ |
diff -Naur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/gcc46/files/gcc-4.6-cloog_lang_c.patch ./files/gcc-4.6-cloog_lang_c.patch
old
|
new
|
|
| 1 | --- gcc/graphite-clast-to-gimple.c (revision 186481) |
| 2 | +++ gcc/graphite-clast-to-gimple.c (working copy) |
| 3 | @@ -40,6 +40,10 @@ |
| 4 | #include "graphite-dependences.h" |
| 5 | #include "graphite-cloog-compat.h" |
| 6 | |
| 7 | +#ifndef CLOOG_LANGUAGE_C |
| 8 | +#define CLOOG_LANGUAGE_C LANGUAGE_C |
| 9 | +#endif |
| 10 | + |
| 11 | /* This flag is set when an error occurred during the translation of |
| 12 | CLAST to Gimple. */ |
| 13 | static bool gloog_error; |
| 14 | @@ -1367,7 +1371,7 @@ |
| 15 | /* Change cloog output language to C. If we do use FORTRAN instead, cloog |
| 16 | will stop e.g. with "ERROR: unbounded loops not allowed in FORTRAN.", if |
| 17 | we pass an incomplete program to cloog. */ |
| 18 | - options->language = LANGUAGE_C; |
| 19 | + options->language = CLOOG_LANGUAGE_C; |
| 20 | |
| 21 | /* Enable complex equality spreading: removes dummy statements |
| 22 | (assignments) in the generated code which repeats the |