From: Andreas Jaeger <aj@suse.de>
To: GNU libc hacker <libc-hacker@sources.redhat.com>
Subject: Fixes for alpha...
Date: Sun, 07 Dec 2003 11:08:00 -0000 [thread overview]
Message-ID: <u865gsholf.fsf@gromit.moeb> (raw)
[-- Attachment #1: Type: text/plain, Size: 2420 bytes --]
The following two fixes are needed to get glibc compile on alpha. The
first one is a 3.4/unit-at-a-time problem where a variable is only
used by asm and optimized out without the attribute, the second one
contains an extraneous line (fixed for nptl, broken in linuxthreads).
Ok to commit?
Andreas
2003-12-07 Andreas Jaeger <aj@suse.de>
Ruediger Oertel <ro@suse.de>
* sysdeps/alpha/fpu/e_sqrt.c: Mark as used.
linuxthreads:
* sysdeps/alpha/elf/pt-initfini.c (__asm__): Remove extra
.prologue.
============================================================
Index: sysdeps/alpha/fpu/e_sqrt.c
--- sysdeps/alpha/fpu/e_sqrt.c 8 Nov 2002 02:18:58 -0000 1.7
+++ sysdeps/alpha/fpu/e_sqrt.c 7 Dec 2003 11:07:38 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1996,1997,1998,2002,2003 Free Software Foundation, Inc.
Contributed by David Mosberger (davidm@cs.arizona.edu).
This file is part of the GNU C Library.
@@ -33,7 +33,7 @@ const static struct sqrt_data_struct {
unsigned long dn, up, half, almost_three_half;
unsigned long one_and_a_half, two_to_minus_30, one, nan;
const int T2[64];
-} sqrt_data = {
+} sqrt_data __attribute__((used)) = {
0x3fefffffffffffff, /* __dn = nextafter(1,-Inf) */
0x3ff0000000000001, /* __up = nextafter(1,+Inf) */
0x3fe0000000000000, /* half */
============================================================
Index: linuxthreads/sysdeps/alpha/elf/pt-initfini.c
--- linuxthreads/sysdeps/alpha/elf/pt-initfini.c 5 Jul 2003 22:56:39 -0000 1.3
+++ linuxthreads/sysdeps/alpha/elf/pt-initfini.c 7 Dec 2003 11:07:38 -0000
@@ -1,5 +1,5 @@
/* Special .init and .fini section support for Alpha. Linuxthreads version.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2003 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
@@ -75,7 +75,6 @@ _fini: \n\
subq $30, 16, $30 \n\
stq $26, 0($30) \n\
stq $29, 8($30) \n\
- .prologue 1 \n\
.align 3 \n\
/*@_fini_PROLOG_ENDS*/ \n\
\n\
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]
next reply other threads:[~2003-12-07 11:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-07 11:08 Andreas Jaeger [this message]
2003-12-10 2:24 ` Roland McGrath
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=u865gsholf.fsf@gromit.moeb \
--to=aj@suse.de \
--cc=libc-hacker@sources.redhat.com \
/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).