~ubuntu-branches/ubuntu/trusty/gcc-4.8/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/aarch64-abi-fix.diff

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-01-24 14:03:17 UTC
  • Revision ID: package-import@ubuntu.com-20140124140317-hjvb2egjwjn6idrc
Tags: 4.8.2-14ubuntu3
* Update to SVN 20140124 (r207027) from the gcc-4_8-branch.
  - Fix inconsistent install paths between gccgo and go tool. LP: #1271340.
* armhf: Fix ffi_call_VFP with no VFP arguments (Will Newton).
* Apply proposed patch for PR target/59799, allow passing arrays in
  registers on AArch64 (Michael Hudson).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Proposed patch for PR /59799, allow passing arrays in registers on AArch64.
 
2
 
 
3
--- a/src/gcc/config/aarch64/aarch64.c
 
4
+++ b/src/gcc/config/aarch64/aarch64.c
 
5
@@ -987,10 +987,7 @@ aarch64_pass_by_reference (cumulative_args_t pcum ATTRIBUTE_UNUSED,
 
6
 
 
7
   if (type)
 
8
     {
 
9
-      /* Arrays always passed by reference.  */
 
10
-      if (TREE_CODE (type) == ARRAY_TYPE)
 
11
-       return true;
 
12
-      /* Other aggregates based on their size.  */
 
13
+      /* Aggregates based on their size.  */
 
14
       if (AGGREGATE_TYPE_P (type))
 
15
        size = int_size_in_bytes (type);
 
16
     }