public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
From: Matt Turner <mattst88@gmail.com>
To: Richard Henderson <rth@twiddle.net>
Cc: libc-ports@sourceware.org,	Matt Turner <mattst88@gmail.com>
Subject: [PATCH 3/4] alpha: Remove __STDC__ conditionals.
Date: Fri, 27 Apr 2012 02:08:00 -0000	[thread overview]
Message-ID: <1335492474-16057-3-git-send-email-mattst88@gmail.com> (raw)
In-Reply-To: <1335492474-16057-1-git-send-email-mattst88@gmail.com>

---
 ChangeLog.alpha                        |    6 ++++++
 sysdeps/alpha/bits/mathdef.h           |   11 +----------
 sysdeps/unix/alpha/sysdep.h            |    7 +------
 sysdeps/unix/sysv/linux/alpha/sysdep.h |    9 ++-------
 4 files changed, 10 insertions(+), 23 deletions(-)

diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index 096fe9a..72eb5af 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,11 @@
 2012-04-26  Matt Turner  <mattst88@gmail.com>
 
+	* sysdeps/alpha/bits/mathdef.h: Remove __STDC__ conditionals.
+	* sysdeps/unix/alpha/sysdep.h: Likewise.
+	* sysdeps/unix/sysv/linux/alpha/sysdep.h: Likewise.
+
+2012-04-26  Matt Turner  <mattst88@gmail.com>
+
 	* sysdeps/alpha/fpu/bits/fenv.h: Use const instead of __const.
 	* sysdeps/unix/sysv/linux/alpha/oldglob.c: Likewise.
 	* sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
diff --git a/sysdeps/alpha/bits/mathdef.h b/sysdeps/alpha/bits/mathdef.h
index 7648a9e..ae0049a 100644
--- a/sysdeps/alpha/bits/mathdef.h
+++ b/sysdeps/alpha/bits/mathdef.h
@@ -1,5 +1,4 @@
-/* Copyright (C) 1997,1998,1999,2000,2003,2004,2006
-	Free Software Foundation, Inc.
+/* Copyright (C) 1997-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -27,19 +26,11 @@
 # define _MATH_H_MATHDEF	1
 
 # ifdef __GNUC__
-#  if __STDC__ == 1
 
 /* In GNU or ANSI mode, gcc leaves `float' expressions as-is.  */
 typedef float float_t;
 typedef double double_t;
 
-#  else
-
-/* For `gcc -traditional', `float' expressions are evaluated as `double'. */
-typedef double float_t;
-typedef double double_t;
-
-#  endif
 # else
 
 /* Wild guess at types for float_t and double_t. */
diff --git a/sysdeps/unix/alpha/sysdep.h b/sysdeps/unix/alpha/sysdep.h
index 4cc8894..e17bf21 100644
--- a/sysdeps/unix/alpha/sysdep.h
+++ b/sysdeps/unix/alpha/sysdep.h
@@ -1,5 +1,4 @@
-/* Copyright (C) 1992, 1995, 1996, 2000, 2003, 2004, 2006, 2010, 2012
-   Free Software Foundation, Inc.
+/* Copyright (C) 1992-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Brendan Kehoe (brendan@zen.org).
 
@@ -32,11 +31,7 @@
 #endif
 
 
-#ifdef __STDC__
 #define __LABEL(x)	x##:
-#else
-#define __LABEL(x)	x/**/:
-#endif
 
 #define LEAF(name, framesize)			\
   .globl name;					\
diff --git a/sysdeps/unix/sysv/linux/alpha/sysdep.h b/sysdeps/unix/sysv/linux/alpha/sysdep.h
index 7616ba9..329fdbd 100644
--- a/sysdeps/unix/sysv/linux/alpha/sysdep.h
+++ b/sysdeps/unix/sysv/linux/alpha/sysdep.h
@@ -1,5 +1,4 @@
-/* Copyright (C) 1992, 1993, 1995, 1996, 1997, 2002, 2003, 2004, 2007
-   Free Software Foundation, Inc.
+/* Copyright (C) 1992-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>, August 1995.
 
@@ -35,11 +34,7 @@
    of the kernel.  But these symbols do not follow the SYS_* syntax
    so we have to redefine the `SYS_ify' macro here.  */
 #undef SYS_ify
-#ifdef __STDC__
-# define SYS_ify(syscall_name)	__NR_##syscall_name
-#else
-# define SYS_ify(syscall_name)	__NR_/**/syscall_name
-#endif
+#define SYS_ify(syscall_name)	__NR_##syscall_name
 
 /* Define some aliases to make automatic syscall generation work
    properly.  The SYS_* variants are for the benefit of the files in
-- 
1.7.3.4

  reply	other threads:[~2012-04-27  2:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-27  2:08 [PATCH 1/4] alpha: Define O_PATH Matt Turner
2012-04-27  2:08 ` Matt Turner [this message]
2012-04-27  2:28   ` [PATCH 3/4] alpha: Remove __STDC__ conditionals Mike Frysinger
2012-04-27  2:08 ` [PATCH 2/4] alpha: Use const instead of __const Matt Turner
2012-04-27  2:26   ` Mike Frysinger
2012-04-27  2:08 ` [PATCH 4/4] alpha: Update bits/mman.h Matt Turner
2012-04-27  2:29   ` Mike Frysinger
2012-04-27  2:26 ` [PATCH 1/4] alpha: Define O_PATH Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1335492474-16057-3-git-send-email-mattst88@gmail.com \
    --to=mattst88@gmail.com \
    --cc=libc-ports@sourceware.org \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).