public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33652] New: Problem in libgcov.c (__gcov_execve) for target x86_64-pc-mingw32
@ 2007-10-04 4:30 nightstrike at gmail dot com
2007-10-04 4:32 ` [Bug c++/33652] " nightstrike at gmail dot com
2007-10-10 18:44 ` [Bug c++/33652] Target x86_64-pc-mingw32 fails to build nightstrike at gmail dot com
0 siblings, 2 replies; 3+ messages in thread
From: nightstrike at gmail dot com @ 2007-10-04 4:30 UTC (permalink / raw)
To: gcc-bugs
Building g++ for target x86_64-pc-mingw32 currently fails. Here is the
description from Kai Tietz, along with his proposed patch:
An interesting issue is that there is problem related that in c case the
type char * const[] is not equivalent to type char *const *. Is this done
by intention ?
For the w64 target the parameter of exec(??) methods are using 'const char
* const *' but gcc uses the type 'char * const []' for argp and envp
arguments. In earlier versions the types were equivalent.
See other report: http://gcc.gnu.org/ml/gcc-help/2007-10/msg00008.html
So I suggest the following patch for w64 in libgcov.c:
ChangeLog:
2007-10-02 Kai Tietz <kai.tietz@onevision.com>
* libgcov.c: (__gcov_execve): Special case for x86_64-pc-mingw32.
Index: gcc/gcc/libgcov.c
===================================================================
--- gcc.orig/gcc/libgcov.c
+++ gcc/gcc/libgcov.c
@@ -945,7 +945,11 @@ int
__gcov_execve (const char *path, char *const argv[], char *const envp[])
{
__gcov_flush ();
+#ifdef _WIN64
+ return execve (path, (const char * const *) argv, (const char * const *)
envp);
+#else
return execve (path, argv, envp);
+#endif
}
#endif
#endif /* inhibit_libc */
=
--
Summary: Problem in libgcov.c (__gcov_execve) for target x86_64-
pc-mingw32
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: nightstrike at gmail dot com
GCC target triplet: x86_64-pc-mingw32
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33652
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/33652] Problem in libgcov.c (__gcov_execve) for target x86_64-pc-mingw32
2007-10-04 4:30 [Bug c++/33652] New: Problem in libgcov.c (__gcov_execve) for target x86_64-pc-mingw32 nightstrike at gmail dot com
@ 2007-10-04 4:32 ` nightstrike at gmail dot com
2007-10-10 18:44 ` [Bug c++/33652] Target x86_64-pc-mingw32 fails to build nightstrike at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: nightstrike at gmail dot com @ 2007-10-04 4:32 UTC (permalink / raw)
To: gcc-bugs
--
nightstrike at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |blocker
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33652
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/33652] Target x86_64-pc-mingw32 fails to build
2007-10-04 4:30 [Bug c++/33652] New: Problem in libgcov.c (__gcov_execve) for target x86_64-pc-mingw32 nightstrike at gmail dot com
2007-10-04 4:32 ` [Bug c++/33652] " nightstrike at gmail dot com
@ 2007-10-10 18:44 ` nightstrike at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: nightstrike at gmail dot com @ 2007-10-10 18:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from nightstrike at gmail dot com 2007-10-10 18:44 -------
Changed the title to better reflect what was transpiring.
This problem has since been fixed, so I am closing it.
--
nightstrike at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Summary|Problem in libgcov.c |Target x86_64-pc-mingw32
|(__gcov_execve) for target |fails to build
|x86_64-pc-mingw32 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33652
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-10 18:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-04 4:30 [Bug c++/33652] New: Problem in libgcov.c (__gcov_execve) for target x86_64-pc-mingw32 nightstrike at gmail dot com
2007-10-04 4:32 ` [Bug c++/33652] " nightstrike at gmail dot com
2007-10-10 18:44 ` [Bug c++/33652] Target x86_64-pc-mingw32 fails to build nightstrike at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).