Workaround a C++ bug in GCC 4.2 in gold test
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 9 Mar 2016 16:27:03 +0000 (08:27 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 9 Mar 2016 16:32:46 +0000 (08:32 -0800)
commitfd91f0024caec4cbca0c53a175cfaa9bc2c5dc5a
tree0160e4ff7af63f86b7a58279b0e4aa24ebafbfe8
parentbc0e3f49c84055034cae31bba169100d107b28f4
Workaround a C++ bug in GCC 4.2 in gold test

G++ in GCC 4.2 silently ignores

---
__attribute__ ((section(".rodata.v1_a2")))
const short rodata_item1 = 101;
---

which leads to plugin_layout_with_alignment test failure with

Expected 12 sections, found 8 sections

since 4 .rodata sections are missing.  As a workaround, this patch
changes plugin_layout_with_alignment test from C++ to C.

* testsuite/plugin_layout_with_alignment.cc: Renamed to ..
* testsuite/plugin_layout_with_alignment.c: This.
* testsuite/Makefile.am (plugin_layout_with_alignment.o): Updated.
(plugin_layout_with_alignment): Likewise.
* testsuite/Makefile.in: Regenerated.
gold/ChangeLog
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/plugin_layout_with_alignment.c [new file with mode: 0644]
gold/testsuite/plugin_layout_with_alignment.cc [deleted file]
This page took 0.026023 seconds and 4 git commands to generate.