From: "Joel Soete" <soete.joel@tiscali.be>
To: "Carlos O'Donell" <carlos@baldric.uwo.ca>,
"John David Anglin" <dave@hiauly1.hia.nrc.ca>
Cc: parisc-linux@lists.parisc-linux.org
Subject: [parisc-linux] glibc-2.3.3 & gcc-snapshot (3.5.0) pb
Date: Mon, 9 Feb 2004 18:11:32 +0100 [thread overview]
Message-ID: <400CB8A10001082F@ocpmta3.freegates.net> (raw)
In-Reply-To: <20040208014659.GC23095@baldric.uwo.ca>
Hi Carlos and Dave,
I am trying my toolchain script against gcc-snapshot and glibc(2.3.3) with
respective Carlos' patches but I met some pb.
The first was against gconv_simple.c for which I find easily the follwing
patch (see <http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/iconv/gconv_simple.c.diff?r1=1.59&r2=1.60&cvsroot=glibc>)
========><========
--- iconv/gconv_simple.c.orig 2004-02-09 15:11:52.000000000 +0100
+++ iconv/gconv_simple.c 2004-02-09 16:07:16.000000000 +0100
@@ -453,9 +453,11 @@
#if __BYTE_ORDER == __BIG_ENDIAN
/* Sigh, we have to do some real work. */
size_t cnt;
+ uint32_t *outptr32 = (uint32_t *) outptr;
for (cnt = 0; cnt < n_convert; ++cnt, inptr += 4)
- *((uint32_t *) outptr)++ = bswap_32 (*(const uint32_t *) inptr);
+ *outptr32++ = bswap_32 (*(const uint32_t *) inptr);
+ outptr = (unsigned char *) outptr32;
*inptrp = inptr;
*outptrp = outptr;
========><========
Is it correct?
The next on is more hard to me and find in _buff() from sunrpc/clnt_perr.c:
[snip]
#ifdef _RPC_THREAD_SAFE_
/*
* Making buf a preprocessor macro requires renaming the local
* buf variable in a few functions. Overriding a global variable
* with a local variable of the same name is a bad idea, anyway.
*/
#define buf ((char *)RPC_THREAD_VARIABLE(clnt_perr_buf_s))
#else
static char *buf;
#endif
static char *
_buf (void)
{
if (buf == NULL)
buf = (char *) malloc (256);
return buf;
}
[snip]
which precompile as follow:
[snip]
static char *auth_errmsg (enum auth_stat stat) ;
# 63 "clnt_perr.c"
static char *
_buf (void)
{
if (((char *)(__rpc_thread_variables()->clnt_perr_buf_s)) == ((void *)0))
((char *)(__rpc_thread_variables()->clnt_perr_buf_s)) = (char *) malloc
(256);
return ((char *)(__rpc_thread_variables()->clnt_perr_buf_s));
}
[snip]
and failed with error:
clnt_perr.c: In function `_buf':
clnt_perr.c:67: error: invalid lvalue in assignment
make[2]: *** [/Develop/parisc-linux/build/glibc/sunrpc/clnt_perr.o] Error
1
Any idea?
Thanks in advance,
Joel
PS: I just attempt this test because I read a lot of akpm patch related to
gcc-35 ;)
-------------------------------------------------------------------------
Tiscali ADSL: 12 mois à 29,50 /mois! L'Internet rapide, c'est pour tout
le monde.
http://reg.tiscali.be/default.asp?lg=fr
next prev parent reply other threads:[~2004-02-09 17:11 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-31 22:28 [parisc-linux] [PATCH] gcc/config/pa/ftpr.c fixes for new TRAMPOLINE_TEMPLATE in hppa's glibc Carlos O'Donell
2004-02-03 5:50 ` Carlos O'Donell
2004-02-03 23:37 ` Matthias Klose
2004-02-04 0:57 ` Carlos O'Donell
2004-02-08 0:00 ` [parisc-linux] Re: [PATCH] gcc/config/pa/ftpr.c fixes for new TRAMPOLINE_TEMPLATE in John David Anglin
2004-02-08 1:47 ` Carlos O'Donell
2004-02-09 17:11 ` Joel Soete [this message]
2004-02-09 18:40 ` [parisc-linux] glibc-2.3.3 & gcc-snapshot (3.5.0) pb James Morrison
2004-02-09 19:06 ` Joel Soete
2004-02-10 16:46 ` Joel Soete
2004-02-10 19:14 ` Carlos O'Donell
-- strict thread matches above, loose matches on Subject: below --
2004-02-11 9:22 Joel Soete
2004-02-11 15:32 ` Joel Soete
2004-02-11 16:27 ` Carlos O'Donell
2004-02-11 16:50 ` Joel Soete
2004-02-13 14:35 ` Joel Soete
2004-02-13 19:49 ` Carlos O'Donell
2004-02-14 0:17 ` Grant Grundler
2004-02-14 14:52 ` Joel Soete
2004-02-14 18:23 ` Carlos O'Donell
2004-02-14 19:29 ` Joel Soete
2004-02-16 17:31 ` Joel Soete
2004-02-17 21:10 ` Carlos O'Donell
2004-02-18 13:16 ` Joel Soete
2004-02-18 13:36 ` Elliott Potter
2004-02-18 14:42 ` Joel Soete
2004-02-18 16:39 ` Carlos O'Donell
2004-02-18 17:25 ` Joel Soete
2004-02-18 18:40 ` Joel Soete
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=400CB8A10001082F@ocpmta3.freegates.net \
--to=soete.joel@tiscali.be \
--cc=carlos@baldric.uwo.ca \
--cc=dave@hiauly1.hia.nrc.ca \
--cc=parisc-linux@lists.parisc-linux.org \
/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