[Ada] Fix error with pragma Linker_Section
Eric Botcazou
ebotcazou@adacore.com
Sat Jan 25 10:42:00 GMT 2014
The compiler may refuse to apply pragma Linker_Section with the same section
name to two different variables, if one is considered constant by the compiler
but not declared as such. Fixed thusly.
Tested on x86_64-suse-linux, applied on the mainline.
2014-01-25 Tristan Gingold <gingold@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity): Always build a variable
for E_Variable with a pragma Linker_Section.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 785 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140125/293231f6/attachment.bin>
More information about the Gcc-patches
mailing list