Fix CRIS build errors with --enable-build-with-cxx.
authorHans-Peter Nilsson <hp@axis.com>
Sat, 9 Jun 2012 20:53:39 +0000 (20:53 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Sat, 9 Jun 2012 20:53:39 +0000 (20:53 +0000)
commit2f352e3d30920e6e703e528b9e7335702de91b74
tree04feb51f47a5381f3cb1809ede5b7871ffe76c17
parent492fbea1624fb5b754c2abc978e3275c576b4ba8
Fix CRIS build errors with --enable-build-with-cxx.

* config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
variable "and" to "andop".
* config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
temporary variable for memory model, passing C++-type-correct
parameter type to expand_mem_thread_fence.
("atomic_compare_and_swap<mode>"): Ditto.

From-SVN: r188362
gcc/ChangeLog
gcc/config/cris/cris.c
gcc/config/cris/sync.md