public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* failure notice
@ 1999-11-26 20:00 Siu.Bun.Chu
  1999-11-27 11:51 ` Alexandre Oliva
  1999-11-30 23:37 ` Siu.Bun.Chu
  0 siblings, 2 replies; 17+ messages in thread
From: Siu.Bun.Chu @ 1999-11-26 20:00 UTC (permalink / raw)
  To: gcc

---------------------- Forwarded by Siu Bun Chu/HK/ABNAMRO/NL on 27/11/99 11:59
AM ---------------------------


MAILER-DAEMON@sourceware.cygnus.com on 27/11/99 11:45:46 AM

To:   Siu Bun Chu/HK/ABNAMRO/NL@ABNAMRO
cc:
Subject:  failure notice




Hi. This is the qmail-send program at sourceware.cygnus.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<gcc@gcc.gnu.org>:
ezmlm-reject: fatal: Sorry, I don't accept message with empty Subject (#5.7.0)

--- Below this line is a copy of the message.

Return-Path: <Siu.Bun.Chu@ap.abnamro.com>
Received: (qmail 32647 invoked from network); 27 Nov 1999 03:45:45 -0000
Received: from sg-inet2.ap.abnamro.com (203.127.86.204)
  by sourceware.cygnus.com with SMTP; 27 Nov 1999 03:45:45 -0000
Received: from SGMTA02.ap.abnamro.com ([203.127.86.194])
          by sg-inet2.ap.abnamro.com (Netscape Messaging Server 3.6)
           with SMTP id AAA61B for <gcc@gcc.gnu.org>;
          Sat, 27 Nov 1999 11:54:45 +0800
Received: by SGMTA02.ap.abnamro.com(Lotus SMTP MTA v4.6.3 (778.2 1-4-1999))  id
48256836.0014C189 ; Sat, 27 Nov 1999 11:46:42 +0800
X-Lotus-FromDomain: ABNAMRO
From: Siu.Bun.Chu@ap.abnamro.com
To: gcc@gcc.gnu.org
Message-ID: <48256836.0014C041.00@SGMTA02.ap.abnamro.com>
Date: Sat, 27 Nov 1999 11:40:00 +0800
Mime-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline


When I tried to complie the Client.c, an error come out. How can I resolve this

# gcc -o client client.c -lsocket
Undefined                       first referenced
 symbol                             in file
inet_addr                           /var/tmp/cchrLbqU.o  (symbol belongs to impl
icit dependency /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to client
collect2: ld returned 1 exit status





I have installed the GCC under \usr\local\bin


Environment :


HOME=/
HZ=100
LOGNAME=root
MAIL=/var/mail/root
PATH=/usr/sbin:/usr/bin
SHELL=/sbin/sh
TERM=vt100
TZ=Hongkong
_INIT_PREV_LEVEL=S
_INIT_RUN_LEVEL=3
_INIT_RUN_NPREV=0
_INIT_UTS_ISA=sparc
_INIT_UTS_MACHINE=sun4m
_INIT_UTS_NODENAME=unix-sparc20
_INIT_UTS_PLATFORM=SUNW,SPARCstation-20
_INIT_UTS_RELEASE=5.7
_INIT_UTS_SYSNAME=SunOS
_INIT_UTS_VERSION=Generic_106541-05
#
_________________________________________________________________________

Disclaimer:

"Any  unauthorized  form of reproduction of this message is strictly prohibited.
The  bank  does  not  guarantee  the  security of any information electronically
transmitted  and  is  not liable for the proper and complete transmission of the
information  contained  in this communication, nor for any delay in its receipt.
THE  USE  OF  EMAIL  FOR  ANY  ILLEGAL  PURPOSE OR FOR ANY PURPOSE OTHER THAN AS
PERMITTED  BY  THE  BANK  IS  STRICTLY  PROHIBITED  AND  SUCH  USE MAY RESULT IN
DISCIPLINARY AND LEGAL ACTION."






_________________________________________________________________________

Disclaimer:

"Any  unauthorized  form of reproduction of this message is strictly prohibited.
The  bank  does  not  guarantee  the  security of any information electronically
transmitted  and  is  not liable for the proper and complete transmission of the
information  contained  in this communication, nor for any delay in its receipt.
THE  USE  OF  EMAIL  FOR  ANY  ILLEGAL  PURPOSE OR FOR ANY PURPOSE OTHER THAN AS
PERMITTED  BY  THE  BANK  IS  STRICTLY  PROHIBITED  AND  SUCH  USE MAY RESULT IN
DISCIPLINARY AND LEGAL ACTION."




^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: failure notice
@ 2000-05-20 19:18 Timothy J. Wood
  0 siblings, 0 replies; 17+ messages in thread
From: Timothy J. Wood @ 2000-05-20 19:18 UTC (permalink / raw)
  To: gcc

  I'm working on the Quake3:Arena port for MacOS X DP4.  This newly released version supposedly contains a compiler based off of gcc 2.95.2 (at least cc -v claims something to that effect).

  The PPC is really poor at converting ints to floats, there is an optimization problem that is making this even worse.  One of the current hot spots in Quake3:Arena exposes this problem under MacOS X DP4.  I don't have a Linux PPC system to test this on unfortunately (maybe I'll reformat my PowerBook to have more partitions in the future :).

  Some code that demonstrates the problem follows.  I'm using doubles in this code to make the example assembly simpler (avoids rounding the double to a float).

---- cast.c ----

double test1(unsigned short *stuff)
{
    unsigned int i;
    double x = 0;
    for (i = 0; i < 1000; i++)
        x += stuff[i];
    return x;
}


double test2(short *stuff)
{
    unsigned int i;
    double x = 0;
    for (i = 0; i < 1000; i++)
        x += stuff[i];
    return x;
}

double test3(char *stuff)
{
    unsigned int i;
    double x = 0;
    for (i = 0; i < 1000; i++)
        x += stuff[i];
    return x;
}

double test4(unsigned char *stuff)
{
    unsigned int i;
    double x = 0;
    for (i = 0; i < 1000; i++)
        x += stuff[i];
    return x;
}


typedef struct _foo {
    unsigned int i:18;
    unsigned int j:14;
} foo;

double test5(foo *stuff)
{
    unsigned int i;
    double x = 0;
    for (i = 0; i < 1000; i++)
        x += stuff[i].i;
    return x;
}

---- end cast.c ----


  I compile this test case with:

	cc -static -O2 -S cast.c

  (the -static avoids a bunch of Mach-O PIC crud that isn't relevant to the problem), I get something like the following:


.data
.const
        .align 2
LC0:
        .double 0r0.00000000000000000000e0
.text
        .align 2
.globl _test1
_test1:
        lis r7,ha16(LC0)
        la r7,lo16(LC0)(r7)
        lfd f1,0(r7)
        lis r11,0x4330
        lis r9,0x4330
        lis r10,0x8000
        li r8,1000
        mtctr r8
L8:
        lhz r0,0(r3)
        addi r3,r3,2
        stw r9,-16(r1)
        stw r10,-12(r1)
        lfd f13,-16(r1)
        xoris r8,r0,0x8000
        stw r8,-4(r1)
        stw r11,-8(r1)
        lfd f0,-8(r1)
        fsub f0,f0,f13
        fadd f1,f1,f0
        bdnz L8
        blr


  There are two problems here.  First, is that the various constants are duplicated for each function (there are more constants for some of the types).  Maybe the linker cleans this up -- I don't know.

  More important is the second problem.  When building the double on the stack, there are two words, one that is constant throughout the loop and one that needs to be updated for each value.  But, gcc doesn't realize that it can avoid rewriting the constant part of the double on each iteration of the loop and in most of the cases above, ends up issuing twice as many store instructions as necessary.

  But in the case of casting unsigned shorts to floats, gcc goes bonkers and ends up doing part of the conversion twice and throwing away the results.

  Can anyone replicate this result on a PPC Linux box with the latest sources?  Either way, hopefully Apple will be able to fix these problems so that their Quake port for MacOS X will run faster :)

-tim



^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <200206112112.RAA11174@life.ai.mit.edu>]
[parent not found: <20030108110840.F1D502B4D7@dell-paw-2.cambridge.redhat.com>]
* Re: failure notice
@ 2003-01-08 12:44 Nathanael Nerode
  2003-01-08 16:15 ` Falk Hueffner
  0 siblings, 1 reply; 17+ messages in thread
From: Nathanael Nerode @ 2003-01-08 12:44 UTC (permalink / raw)
  To: gcc



Using the "send mail to interested parties" link at
http://gcc.gnu.org/cgi-bin/gnatsweb.pl gets me this:

MAILER-DAEMON@sources.redhat.com writes:
 > Hi. This is the qmail-send program at sources.redhat.com.
 > I'm afraid I wasn't able to deliver your message to the following 
addresses.
 > This is a permanent error; I've given up. Sorry it didn't work out.
 > 
 > <gcc-prs@gcc.gnu.org>:
 > Sender: aph@cambridge.redhat.com
 > This mailing list is not for general discussions.  Please resend your
 > mail note to a more appropriate list.
 > 
 > 
 > <java-prs@gcc.gnu.org>:
 > Sender: aph@cambridge.redhat.com
 > This mailing list is not for general discussions.  Please resend your
 > mail note to a more appropriate list.

What on Earth does this mean?  How should I do this?

Thanks,
Andrew.

----
This is a known, and infuriating, bug in GNATSweb.  The '*-prs' mailing 
lists should *not* be in the "send mail to interested parties" list in 
http://gcc.gnu.org/cgi-bin/gnatsweb.pl.  Nobody seems inclined to fix it 
though.

--Nathanael

^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <19dce7c30807300204i2a03e356na82f35438f9ff73b@mail.gmail.com>]
[parent not found: <CAMPTgK3cXLbSk29j7v9nzRFrVp9Sry4W8JPQ3+wh0u4_EUv5ZQ@mail.gmail.com>]

end of thread, other threads:[~2011-11-07 22:20 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-26 20:00 failure notice Siu.Bun.Chu
1999-11-27 11:51 ` Alexandre Oliva
1999-11-30 23:37   ` Alexandre Oliva
1999-11-30 23:37 ` Siu.Bun.Chu
2000-05-20 19:18 Timothy J. Wood
     [not found] <200206112112.RAA11174@life.ai.mit.edu>
2002-06-12 12:37 ` Masayuki Ida
     [not found] <20030108110840.F1D502B4D7@dell-paw-2.cambridge.redhat.com>
2003-01-08 12:18 ` Andrew Haley
2003-01-08 14:24   ` Christian Ehrhardt
2003-01-08 14:41   ` Richard Earnshaw
2003-01-08 18:22   ` Joe Buck
2003-01-08 12:44 Nathanael Nerode
2003-01-08 16:15 ` Falk Hueffner
2003-01-08 16:49   ` Michael S. Zick
     [not found] <19dce7c30807300204i2a03e356na82f35438f9ff73b@mail.gmail.com>
     [not found] ` <48902eb2.0917400a.504e.7a31SMTPIN_ADDED@mx.google.com>
2008-07-30 11:01   ` G Shyam Sundar
2008-07-30 11:59     ` Dave Korn
2008-07-30 12:10     ` Andrew Haley
     [not found] <CAMPTgK3cXLbSk29j7v9nzRFrVp9Sry4W8JPQ3+wh0u4_EUv5ZQ@mail.gmail.com>
     [not found] ` <4eb85856.6306440a.5bfd.ffffa66dSMTPIN_ADDED@mx.google.com>
2011-11-07 23:28   ` niXman

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).