diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-05 21:00:07 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-05 21:00:07 +0000 |
commit | 788bd1708aa33197eb06957af45fc18fca4d6edd (patch) | |
tree | ba1ca4bc338247654252816f9d8010fab9f068f8 /gcc/testsuite/gcc.target/i386 | |
parent | fa1a3f3370259e5323549b8f7b23095a0fe460d3 (diff) | |
download | gcc-788bd1708aa33197eb06957af45fc18fca4d6edd.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217156 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target/i386')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr63538.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr63538.c b/gcc/testsuite/gcc.target/i386/pr63538.c new file mode 100644 index 00000000000..7b979c35d81 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr63538.c @@ -0,0 +1,13 @@ +/* PR target/63538 */ +/* { dg-do compile } */ +/* { dg-require-effective-target lp64 } */ +/* { dg-options "-O2 -mcmodel=medium -mlarge-data-threshold=0" } */ + +static char *str = "Hello World"; + +char *foo () +{ + return str; +} + +/* { dg-final { scan-assembler "movabs" } } */ |