mirrored from git://gcc.gnu.org/git/gcc.git
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gcc/ xxxx-xx-xx Claudiu Zissulescu <claziss@synopsys.com> * config/arc/arc.c (arc_symbol_binds_local_p): New function. (arc_legitimize_pic_address): Simplify and cleanup the function. (SYMBOLIC_CONST): Remove. (prepare_pic_move): Likewise. (prepare_move_operands): Handle complex mov cases here. (arc_legitimize_address_0): Remove call to arc_legitimize_pic_address. (arc_legitimize_address): Remove call to arc_legitimize_tls_address. * config/arc/arc.md (movqi_insn): Allow Cm3 match. (movhi_insn): Likewise. /gcc/testsuite xxxx-xx-xx Claudiu Zissulescu <claziss@synopsys.com git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-9-branch@272645 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
claziss
committed
Jun 25, 2019
1 parent
219a6a6
commit 472bac3
Showing
5 changed files
with
98 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* { dg-do compile } */ | ||
/* { dg-require-effective-target tls } */ | ||
/* { dg-options "-O2" } */ | ||
|
||
extern void foo (void); | ||
extern void bar (void *); | ||
|
||
struct { | ||
int __attribute__(()) a; | ||
int __attribute__(()) b; | ||
} __thread c __attribute__((tls_model("initial-exec"))); | ||
|
||
void foo (void) | ||
{ | ||
bar (&c.b); | ||
} |