re PR target/63538 ([X86_64] With -mcmodel=medium .lrodata accesses do not use 64...
authorUros Bizjak <uros@gcc.gnu.org>
Wed, 5 Nov 2014 21:00:07 +0000 (22:00 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 5 Nov 2014 21:00:07 +0000 (22:00 +0100)
commitb478c0cd398851b78a85b0667f3997b424e42f35
treeba1ca4bc338247654252816f9d8010fab9f068f8
parent2374257aff7c2f88a7b1fa8c1466176b7d42f99c
re PR target/63538 ([X86_64] With -mcmodel=medium .lrodata accesses do not use 64-bit addresses)

PR target/63538
* config/i386/i386.c (in_large_data_p): Reject automatic variables.
(ix86_encode_section_info): Do not check for non-automatic varibles
when setting SYMBOL_FLAG_FAR_ADDR flag.
(x86_64_elf_select_section): Do not check ix86_cmodel here.
(x86_64_elf_unique_section): Ditto.
(x86_elf_aligned_common): Emit tab before .largecomm.

testsuite/ChangeLog:

PR target/63538
* gcc.target/i386/pr63538.c: New test.

From-SVN: r217156
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr63538.c [new file with mode: 0644]