Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(136)

Unified Diff: gcc/testsuite/gcc.target/arm/got1.c

Issue 4433079: [google] Use R_ARM_GOT_PREL to simplify global address loading from GOT Base URL: svn+ssh://gcc.gnu.org/svn/gcc/branches/google/main/
Patch Set: Created 13 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gcc/testsuite/gcc.target/arm/got1.c
===================================================================
--- gcc/testsuite/gcc.target/arm/got1.c (revision 0)
+++ gcc/testsuite/gcc.target/arm/got1.c (revision 0)
@@ -0,0 +1,10 @@
+/* { dg-options "-Os -fpic" } */
+/* { dg-final { scan-assembler "GOT_PREL" } } */
+
+extern int x;
+int foo(int j)
+{
+ int t = x;
+ x = j;
+ return t;
+}
« gcc/simplify-got.c ('K') | « gcc/target.def ('k') | gcc/testsuite/gcc.target/arm/got2.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b