OSDN Git Service

* fixinc/fixlib.h (t_bool): Add identifier `t_bool' in typedef.
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 3 Mar 2001 19:05:00 +0000 (19:05 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 3 Mar 2001 19:05:00 +0000 (19:05 +0000)
* fixinc/server.c (read_pipe_timeout): Use enum t_bool instead of
t_bool in declaration because pcc can't combine volatile with typedef
types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40217 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/fixinc/fixlib.h
gcc/fixinc/server.c

index 7c2ddeb..c81260a 100644 (file)
@@ -1,3 +1,10 @@
+2001-03-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * fixinc/fixlib.h (t_bool): Add identifier `t_bool' in typedef.
+       * fixinc/server.c (read_pipe_timeout): Use enum t_bool instead of
+       t_bool in declaration because pcc can't combine volatile with typedef
+       types.
+
 Sat Mar  3 19:47:13 CET 2001  Jan Hubicka  <jh@suse.cz>
 
        * i386.c (ix86_expand_fp_compare): Delay creating of scratch register
index 4490d20..166995c 100644 (file)
@@ -3,7 +3,7 @@
    files which are fixed to work correctly with ANSI C and placed in a
    directory that GNU C will search.
 
-   Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -88,7 +88,7 @@ typedef int t_success;
 
 #define IGNORE_ARG(a)   ((void)(a))
 
-typedef enum
+typedef enum t_bool
 {
   BOOL_FALSE, BOOL_TRUE
 } t_bool;
index e32576f..76785e1 100644 (file)
@@ -2,7 +2,7 @@
 /*
  *  server.c  Set up and handle communications with a server process.
  *
- *  Server Handling copyright 1992-1999 The Free Software Foundation
+ *  Server Handling copyright 1992-1999, 2001 The Free Software Foundation
  *
  *  Server Handling is free software.
  *  You may redistribute it and/or modify it under the terms of the
@@ -57,7 +57,7 @@
 # define volatile
 #endif
 
-STATIC volatile t_bool read_pipe_timeout;
+STATIC volatile enum t_bool read_pipe_timeout;
 STATIC pid_t server_master_pid = NOPROCESS;
 
 tSCC* def_args[] =