diff mbox

Patches for building libstdc++ on vxWorks

Message ID 4FA08A7D.20701@verizon.net
State New
Headers show

Commit Message

rbmj May 2, 2012, 1:14 a.m. UTC
These minor changes are needed to build libstdc++ on vxWorks.

Note- these diffs are based off of gcc 4.7.0


--
rbmj

Comments

rbmj May 15, 2012, 12:55 a.m. UTC | #1
On 05/01/2012 09:14 PM, rbmj wrote:
> These minor changes are needed to build libstdc++ on vxWorks.
>
> Note- these diffs are based off of gcc 4.7.0
>
> <snip patch />
>
Bump?  I'm sorry for not following all the protocols, but I did create a 
bug afterwards and I've waited a while.  I know it's trivial, but to me 
it seems like that should make it easy...

And I also mis-spoke in my original email.  I did not even look closely 
at the patches I'd made - they're for gcov.  I apologize for being an 
idiot :D

Thank you all,

--
rbmj
diff mbox

Patch

diff -durp -x '*~' a/gcc/gcov-io.c b/gcc/gcov-io.c
--- a/gcc/gcov-io.c    2011-04-06 11:05:18.000000000 -0500
+++ b/gcc/gcov-io.c    2012-01-15 21:27:41.407688488 -0500
@@ -92,7 +92,11 @@  gcov_open (const char *name, int mode)
      {
        /* Read-only mode - acquire a read-lock.  */
        s_flock.l_type = F_RDLCK;
+#ifdef __VXWORKS__
+      fd = open (name, O_RDONLY, 0666);
+#else
        fd = open (name, O_RDONLY);
+#endif
      }
    else
      {
diff -durp -x '*~' a/libgcc/libgcov.c b/libgcc/libgcov.c
--- a/libgcc/libgcov.c    2011-01-04 13:05:06.000000000 -0500
+++ b/libgcc/libgcov.c    2012-01-15 17:54:11.566928799 -0500
@@ -119,7 +119,7 @@  create_file_directory (char *filename)

          /* Try to make directory if it doesn't already exist.  */
          if (access (filename, F_OK) == -1
-#ifdef TARGET_POSIX_IO
+#if defined(TARGET_POSIX_IO) && !defined(__VXWORKS__)
&& mkdir (filename, 0755) == -1
  #else
&& mkdir (filename) == -1