This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/41750] gcc 4.5.0 miscompiles binutils
- From: "rainer at emrich-ebersheim dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2009 18:04:59 -0000
- Subject: [Bug middle-end/41750] gcc 4.5.0 miscompiles binutils
- References: <bug-41750-11564@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from rainer at emrich-ebersheim dot de 2009-10-20 18:04 -------
First of all, it's nearly impossible to create a short self contained test
case, at least for me. The function get_got in bfd/elf64-ia64.c shows the
issue.
Resolving the dependencies of this function is like opening a can of worms.
What I have:
I verified that enclosing only the get_got function in
#pragma GCC optimize ("ipa-sra", "no-inline")
.
.
#pragma GCC reset_options
yields the fault.
In contrast enclosing the get_got function in
#pragma GCC optimize ("no-ipa-sra", "no-inline")
.
.
#pragma GCC reset_options
gives a working ia64-unknown-linux-gnu-ld.
I'm attaching both versions as preprocessed source.
compiling these with gcc -g -O2 -S produces the correspondent assembler output,
also attached.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41750