2015-03-02 Pierre-Marie de Rodat <derodat@adacore.com>
commita10d3a24987eb64513e312445758385f69f39cb3
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Mar 2015 10:59:32 +0000 (2 10:59 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Mar 2015 10:59:32 +0000 (2 10:59 +0000)
tree52a6e66a285b54a02a7555a6e7d81b48214a6807
parente4b5ff5f56becfea59fdd6330ba524c48cf1b96d
2015-03-02  Pierre-Marie de Rodat  <derodat@adacore.com>

* gcc-interface/utils.c (gnat_pushdecl): For non-artificial pointer
types, preserve the original type and create copies just like the C
front-end does.  For artificial ones, do not define a name for
the original type.
(create_type_decl): When gnat_pushdecl made the input type the
original type for the new declaration, do not define a stub
declaration for it.
* gcc-interface/utils2.c (build_binary_op): Accept two different
pointer types when they point to the same type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221108 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c
gcc/ada/gcc-interface/utils2.c