+2020-04-17 Martin Liska <mliska@suse.cz>
+ Jonathan Yong <10walls@gmail.com>
+
+ PR gcov-profile/94570
+ * ltmain.sh: Do not define HAVE_DOS_BASED_FILE_SYSTEM
+ for CYGWIN.
+
2020-04-14 Martin Jambor <mjambor@suse.cz>
* MAINTAINERS (Reviewers): Add myself as callgraph (IPA) reviewer.
+2020-04-17 Martin Liska <mliska@suse.cz>
+ Jonathan Yong <10walls@gmail.com>
+
+ PR gcov-profile/94570
+ * coverage.c (coverage_init): Use separator properly.
+
2020-04-16 Peter Bergner <bergner@linux.ibm.com>
PR rtl-optimization/93974
void
coverage_init (const char *filename)
{
+#if HAVE_DOS_BASED_FILE_SYSTEM
+ const char *separator = "\\";
+#else
+ const char *separator = "/";
+#endif
int len = strlen (filename);
int prefix_len = 0;
of filename in order to prevent file path clashing. */
if (profile_data_prefix)
{
-#if HAVE_DOS_BASED_FILE_SYSTEM
- const char *separator = "\\";
-#else
- const char *separator = "/";
-#endif
filename = concat (getpwd (), separator, filename, NULL);
if (profile_prefix_path)
{
if (profile_data_prefix)
{
memcpy (da_file_name, profile_data_prefix, prefix_len);
- da_file_name[prefix_len++] = '/';
+ da_file_name[prefix_len++] = *separator;
}
memcpy (da_file_name + prefix_len, filename, len);
strcpy (da_file_name + prefix_len + len, GCOV_DATA_SUFFIX);
+2020-04-17 Martin Liska <mliska@suse.cz>
+ Jonathan Yong <10walls@gmail.com>
+
+ PR gcov-profile/94570
+ * filenames.h (defined): Do not define HAVE_DOS_BASED_FILE_SYSTEM
+ for CYGWIN.
+
2020-04-01 Maciej W. Rozycki <macro@linux-mips.org>
PR lto/94249
extern "C" {
#endif
-#if defined(__MSDOS__) || defined(_WIN32) || defined(__OS2__) || defined (__CYGWIN__)
+#if defined(__MSDOS__) || (defined(_WIN32) && ! defined(__CYGWIN__)) || \
+ defined(__OS2__)
# ifndef HAVE_DOS_BASED_FILE_SYSTEM
# define HAVE_DOS_BASED_FILE_SYSTEM 1
# endif
# define PATH_SEPARATOR ':'
#endif
-#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
- defined (__OS2__)
+#if (defined (_WIN32) && ! defined(__CYGWIN__)) || defined (__MSDOS__) || \
+ defined (__DJGPP__) || defined (__OS2__)
# define HAVE_DOS_BASED_FILE_SYSTEM
# define FOPEN_WB "wb"
# ifndef DIR_SEPARATOR_2