Cleanup NEWUNIT allocation.
authorJanne Blomqvist <jb@gcc.gnu.org>
Tue, 1 Nov 2011 11:44:12 +0000 (13:44 +0200)
committerJanne Blomqvist <jb@gcc.gnu.org>
Tue, 1 Nov 2011 11:44:12 +0000 (13:44 +0200)
commitea5e3c042b9d6867475df08c95f9181bea21c5f0
tree3763f8dc50f9d3254ab5d03e9aebcd277367ab70
parent1f9ed162eb30f1b40b65d164b3a40ac78e1f006e
Cleanup NEWUNIT allocation.

2011-11-01  Janne Blomqvist  <jb@gcc.gnu.org>

* io/io.h (next_available_newunit): Remove prototype.
* io/unit.h (next_available_newunit): Make variable static,
initialize it.
(init_units): Don't initialize next_available_newunit.
(get_unique_unit_number): Use atomic builtin if available.

From-SVN: r180734
libgfortran/ChangeLog
libgfortran/io/io.h
libgfortran/io/unit.c