Opened 10 years ago

Last modified 5 years ago

#45492 assigned defect

gcc49: Graphite loop optimizations cannot be used

Reported by: hiro.masa.yoshi.moto@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: haspatch Cc: ryandesign (Ryan Carsten Schmidt), chrstphrchvz (Christopher Chavez)
Port: gcc49

Description

gcc49 can not use graphite loop optimizations.

For example, I can not use "-floop-parallelize-all" optimization as follows:

 $ echo "int main(){return 0;}" | gcc-mp-4.9 -floop-parallelize-all  -xc - 

 <stdin>:1:0: sorry, unimplemented: Graphite loop optimizations cannot be used
 (-fgraphite, -fgraphite-identity, -floop-block, -floop-interchange, -floop-strip-mine, -floop-parallelize-all, and -ftree-loop-linear)

This error is caused by isl library. While macports uses isl-0.13, it is not officially supported yet by gcc.

I found a workaround and fixed Portfiles. Please check attached files for details.

Attachments (3)

Portfile.diff (781 bytes) - added by hiro.masa.yoshi.moto@… 10 years ago.
isl-0.13-compat.diff (2.8 KB) - added by hiro.masa.yoshi.moto@… 10 years ago.
gcc48-isl-0.13-compat.diff (3.0 KB) - added by hiro.masa.yoshi.moto@… 10 years ago.

Download all attachments as: .zip

Change History (9)

Changed 10 years ago by hiro.masa.yoshi.moto@…

Attachment: Portfile.diff added

Changed 10 years ago by hiro.masa.yoshi.moto@…

Attachment: isl-0.13-compat.diff added

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Keywords: haspatch added
Owner: changed from macports-tickets@… to mww@…

Thanks. In the future, please Cc the port maintainers (port info --maintainers gcc49).

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Since this is a runtime problem, the port's revision needs to be increased.

Does this problem exist in older or newer versions of gcc as well, or only in gcc49?

comment:3 in reply to:  2 Changed 10 years ago by hiro.masa.yoshi.moto@…

gcc48 has same problem.

I prepared a patch for gcc-4.8. Please use attached file, gcc48-isl-0.13-compat.diff

Changed 10 years ago by hiro.masa.yoshi.moto@…

Attachment: gcc48-isl-0.13-compat.diff added

comment:4 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Owner: changed from mww@… to macports-tickets@…
Status: newassigned

comment:5 Changed 5 years ago by chrstphrchvz (Christopher Chavez)

I think this has already been fixed; gcc49 has since been updated to use isl18. (gcc48 also now uses isl14; see #53662.)

comment:6 Changed 5 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added
Note: See TracTickets for help on using tickets.