This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fixes for alpha...


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: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]