aboutsummaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 6a982cc..68a4b4b 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -1514,7 +1514,7 @@ __bb_exit_func (void)
/* If the file exists, and the number of counts in it is the same,
then merge them in. */
- if ((da_file = fopen (ptr->filename, "r")) != 0)
+ if ((da_file = fopen (ptr->filename, "rb")) != 0)
{
long n_counts = 0;
@@ -1547,7 +1547,7 @@ __bb_exit_func (void)
fprintf (stderr, "arc profiling: Error closing output file %s.\n",
ptr->filename);
}
- if ((da_file = fopen (ptr->filename, "w")) == 0)
+ if ((da_file = fopen (ptr->filename, "wb")) == 0)
{
fprintf (stderr, "arc profiling: Can't open output file %s.\n",
ptr->filename);