• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gcc/4.9.4/0001-ARM-PR-target-68059-libgcc-should-not-use-__write-fo.patch
Arnout VandecappelleArnout Vandecappelle committed 16a4241cb7822 Nov 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 80bc14a5249da7054b716229206b453f339b4a5e Mon Sep 17 00:00:00 2001
2
From: nsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4>
3
Date: Mon, 23 Nov 2015 15:17:55 +0000
4
Subject: [PATCH] [ARM] PR target/68059 libgcc should not use __write for
5
 printing fatal error
6
​
7
libgcc/
8
    PR target/68059
9
    * config/arm/linux-atomic-64bit.c (__write): Rename to...
10
    (write): ...this and fix the return type.
11
​
12
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230762 138bc75d-0d04-0410-961f-82ee72b054a4
13
​
14
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
15
---
16
 libgcc/config/arm/linux-atomic-64bit.c | 4 ++--
17
 1 file changed, 2 insertions(+), 2 deletions(-)
18
​
19
diff --git a/libgcc/config/arm/linux-atomic-64bit.c b/libgcc/config/arm/linux-atomic-64bit.c
20
index 5b8c6e2..9078673 100644
21
--- a/libgcc/config/arm/linux-atomic-64bit.c
22
+++ b/libgcc/config/arm/linux-atomic-64bit.c
23
@@ -33,7 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
24
    kernels; we check for that in an init section and bail out rather
25
    unceremoneously.  */
26
 
27
-extern unsigned int __write (int fd, const void *buf, unsigned int count);
28
+extern int write (int fd, const void *buf, unsigned int count);
29
 extern void abort (void);
30
 
31
 /* Kernel helper for compare-and-exchange.  */
32
@@ -56,7 +56,7 @@ static void __check_for_sync8_kernelhelper (void)
33
     for the user - I'm not sure I can rely on much else being
34
     available at this point, so do the same as generic-morestack.c
35
     write () and abort ().  */
36
-      __write (2 /* stderr.  */, err, sizeof (err));
37
+      write (2 /* stderr.  */, err, sizeof (err));
38
       abort ();
39
     }
40
 };
41
-- 
42
2.10.2
43
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.