diff options
author | Robert Mason <rbmj@verizon.net> | 2012-11-03 15:53:28 +0000 |
---|---|---|
committer | Bruce Korb <korbb@gcc.gnu.org> | 2012-11-03 15:53:28 +0000 |
commit | 2588b26e0e0374bccd928e2d102e81a9e334fc0b (patch) | |
tree | a6986ee5adfb979a07e590f264651d5cf98a61ca /gcc | |
parent | 358a3dbce6aad5488da4c4dd68d37ca74fbe4157 (diff) | |
download | gcc-2588b26e0e0374bccd928e2d102e81a9e334fc0b.zip gcc-2588b26e0e0374bccd928e2d102e81a9e334fc0b.tar.gz gcc-2588b26e0e0374bccd928e2d102e81a9e334fc0b.tar.bz2 |
final patch for enabling VxWorks
From-SVN: r193124
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/gcov-io.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0043200..e3eb2f2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2012-11-03 Robert Mason <rbmj@verizon.net> + + * gcov-io.c (gcov_open): Add file mode to open call (need for VxWorks) + 2012-11-03 Sandra Loosemore <sandra@codesourcery.com> * doc/extend.texi: Copy-edit to use present tense except when diff --git a/gcc/gcov-io.c b/gcc/gcov-io.c index d64fb42..f562654 100644 --- a/gcc/gcov-io.c +++ b/gcc/gcov-io.c @@ -92,7 +92,8 @@ gcov_open (const char *name, int mode) { /* Read-only mode - acquire a read-lock. */ s_flock.l_type = F_RDLCK; - fd = open (name, O_RDONLY); + /* pass mode (ignored) for compatibility */ + fd = open (name, O_RDONLY, S_IRUSR | S_IWUSR); } else { |