From f624290705e4dec86d53bddfe04dc6aec02004eb Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sat, 3 Mar 2001 19:05:00 +0000 Subject: [PATCH] fixlib.h (t_bool): Add identifier `t_bool' in typedef. * 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. From-SVN: r40217 --- gcc/ChangeLog | 7 +++++++ gcc/fixinc/fixlib.h | 4 ++-- gcc/fixinc/server.c | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7c2ddebbf5c..c81260a0999 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2001-03-03 John David Anglin + + * 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 * i386.c (ix86_expand_fp_compare): Delay creating of scratch register diff --git a/gcc/fixinc/fixlib.h b/gcc/fixinc/fixlib.h index 4490d2086ea..166995c9c9b 100644 --- a/gcc/fixinc/fixlib.h +++ b/gcc/fixinc/fixlib.h @@ -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; diff --git a/gcc/fixinc/server.c b/gcc/fixinc/server.c index e32576fca51..76785e1fe80 100644 --- a/gcc/fixinc/server.c +++ b/gcc/fixinc/server.c @@ -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[] = -- 2.30.2