From gcc-help-return-2900-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 02 11:11:09 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 11931 invoked by alias); 2 May 2000 11:11:09 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 11900 invoked from network); 2 May 2000 11:11:06 -0000 Received: from sasi.com (164.164.56.2) by sourceware.cygnus.com with SMTP; 2 May 2000 11:11:06 -0000 Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id QAA16301 for ; Tue, 2 May 2000 16:40:21 +0530 (IST) Received: from pcb68.sasi.com ([10.0.0.68]) by sasi.com; Tue, 02 May 2000 16:40:20 +0000 (IST) Received: from localhost (vinu@localhost) by pcb68.sasi.com (8.9.1/8.9.1) with ESMTP id QAA02485 for ; Tue, 2 May 2000 16:40:21 +0530 Date: Tue, 2 May 2000 16:40:21 +0530 (IST) From: Vinu V Nair To: gcc-help@gcc.gnu.org Subject: Dynamic Libraries under Solaris Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi When I try to build a shared library as follows g++ -o libname.so -shared source.o where source.o is obtained as follows g++ -c source.cxx, The linker cribbs saying ld: fatal: relocations remain against allocatable but non-writable sections. Is this because the shared versions of libg++ and libstdc++ are not present? Again if I try to build the library by the following command gcc -o libname.so -shared source.o it works. (source.o is made with g++) But when I make the executable, (ie. g++ libname.so -o exacutable.) I end up with a very big one. What could be the reason for this? Thanx vinu NB: This (both gcc and g++) works fine in Linux. Vinu V. Nair Software Engineer Silicon Automation Systems Limited 5281461/5281229-2213 From gcc-help-return-2901-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 02 16:31:56 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 11721 invoked by alias); 2 May 2000 16:31:56 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 11663 invoked from network); 2 May 2000 16:31:53 -0000 Received: from unknown (HELO diamond.rdscj.ro) (212.93.152.50) by sourceware.cygnus.com with SMTP; 2 May 2000 16:31:53 -0000 Received: from rdscj.ro (mercury.rdscj.ro [212.93.140.3]) by diamond.rdscj.ro (8.9.3/8.9.3) with ESMTP id TAA23902 for ; Tue, 2 May 2000 19:31:44 +0300 Message-ID: <390F02F0.F265AF25@rdscj.ro> Date: Tue, 02 May 2000 19:31:44 +0300 From: Claudiu BRASOVEAN X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.13 i686) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: need help Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hello....

Please excuse my childish question but I am new in the field and I am lost due to a very simple problem.
Here is my problem:
Main program:
//main.c
#include <stdio.h>
#include "funct.h"

void main(void){
printf("Calling external function\n");
foo(3);
}
////////////////////
//funct.h
.....
extern void foo(int);
.....

////////////////////
//funct.c
#include <stdio.h>
#include "funct.h"
..........
void foo(int x){printf("My parameter was:%d\n",x);};
..................
Here is what i get from gcc (in fact is ld, isn't it?)

/tmp/ccahK6eu1.o: In function `main':
/tmp/ccahK6eu1.o(.text+0x29): undefined reference to `foo'

I do not understand why ld can not resolve symbol. The compiling phase works fine
I do have a SuSE 6.3 Linux distribution whith gcc-2.7.2.3-63 on it.

Thank you in advance.
  From gcc-help-return-2902-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 02 16:41:41 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 15219 invoked by alias); 2 May 2000 16:41:41 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 15174 invoked from network); 2 May 2000 16:41:38 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 2 May 2000 16:41:38 -0000 Received: from zecarneiro.lsd.ic.unicamp.br (IDENT:oliva@zecarneiro.lsd.ic.unicamp.br [143.106.24.141]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id NAA28500; Tue, 2 May 2000 13:40:41 -0300 To: Vinu V Nair Cc: gcc-help@gcc.gnu.org Subject: Re: Dynamic Libraries under Solaris References: From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 02 May 2000 13:40:39 -0300 In-Reply-To: Vinu V Nair's message of "Tue, 2 May 2000 16:40:21 +0530 (IST)" Message-ID: Lines: 19 User-Agent: Gnus/5.0804 (Gnus v5.8.4) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 2, 2000, Vinu V Nair wrote: > g++ -o libname.so -shared source.o > where source.o is obtained as follows > g++ -c source.cxx, You're missing -fPIC. > NB: This (both gcc and g++) works fine in Linux. GNU ld isn't as strict WRT -fPIC as Solaris' linker. But it's advantageous to use it on GNU/Linux too, since it allows for sharing of code pages. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-2903-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 02 17:00:20 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 21822 invoked by alias); 2 May 2000 17:00:20 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 21789 invoked from network); 2 May 2000 17:00:19 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 2 May 2000 17:00:19 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id CBF6A12105; Tue, 2 May 2000 11:00:34 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id 5B60812104; Tue, 2 May 2000 11:00:34 -0600 (MDT) Date: Tue, 2 May 2000 11:00:34 -0600 (MDT) From: To: Claudiu BRASOVEAN Cc: gcc-help@gcc.gnu.org Subject: Re: need help In-Reply-To: <390F02F0.F265AF25@rdscj.ro> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 2 May 2000, Claudiu BRASOVEAN wrote: > Hello.... > > Please excuse my childish question but I am new in the field and I am lost due to a very simple problem. Please note that this list is for questions specific to gcc; your question is a general C question that is not specific to gcc. > Here is my problem: > Main program: > //main.c > #include > #include "funct.h" > > void main(void){ Note: the return type of main() should always be 'int'. > > printf("Calling external function\n"); > > foo(3); > > } > //////////////////// > //funct.h > ..... > extern void foo(int); > ..... > > //////////////////// > //funct.c > #include > #include "funct.h" > .......... > void foo(int x){printf("My parameter was:%d\n",x);}; > .................. > Here is what i get from gcc (in fact is ld, isn't it?) > > /tmp/ccahK6eu1.o: In function `main': > /tmp/ccahK6eu1.o(.text+0x29): undefined reference to `foo' Did you link funct.c with main.c ? You need to do something like this: $gcc funct.c main.c $./a.out or: $gcc -c funct.c $gcc -c main.c $gcc funct.o main.o $./a.out If I compile and link it this way, your code works fine on my i686-linux-pc-gnu box with gcc 2.95.2 > > I do not understand why ld can not resolve symbol. ld can only resolve what it can see. If you do not pass it the name of the module, it will know to look in that module for functions. > The compiling phase works fine > I do have a SuSE 6.3 Linux distribution whith gcc-2.7.2.3-63 on it. > > Thank you in advance. > > From gcc-help-return-2904-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 02 23:41:06 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 28923 invoked by alias); 2 May 2000 23:41:06 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 28856 invoked from network); 2 May 2000 23:41:00 -0000 Received: from gw-us1.philips.com (205.167.14.34) by sourceware.cygnus.com with SMTP; 2 May 2000 23:41:00 -0000 Received: from smtprelay-us1.philips.com (localhost.philips.com [127.0.0.1]) by gw-us1.philips.com with ESMTP id TAA07201 for ; Tue, 2 May 2000 19:23:56 -0400 (EDT) (envelope-from Robert.Lopez@abq.sc.philips.com) From: Robert.Lopez@abq.sc.philips.com Received: from smtprelay-nam1.philips.com(130.140.196.208) by gw-us1.philips.com via mwrap (4.0a) id xma007197; Tue, 2 May 00 19:23:56 -0400 Received: from smtphub.sv.sc.philips.com (smtphub.sv.sc.philips.com [130.140.45.86]) by smtprelay-us1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id TAA01123 for ; Tue, 2 May 2000 19:23:55 -0400 (EDT) Received: from smtphub.abq.sc.philips.com (smtphub.abq.sc.philips.com [130.140.3.9]) by smtphub.sv.sc.philips.com (8.8.5/8.8.5) with ESMTP id QAA13057 for ; Tue, 2 May 2000 16:23:54 -0700 (PDT) Received: from abqato (abqato.abq.sc.philips.com [130.140.5.4]) by smtphub.abq.sc.philips.com (8.8.5/8.8.5) with ESMTP id RAA19789; Tue, 2 May 2000 17:24:25 -0600 (MDT) Received: from abqn07.sca.philips.com by abqato (8.8.8+Sun/SMI-SVR4-DNI-8.0) id RAA16819; Tue, 2 May 2000 17:24:20 -0600 (MDT) Received: (from lopez@localhost) by abqn07.sca.philips.com (8.9.1b+Sun/8.9.1) id RAA00008; Tue, 2 May 2000 17:18:46 -0600 (MDT) Date: Tue, 2 May 2000 17:18:46 -0600 (MDT) Message-Id: <200005022318.RAA00008@abqn07.sca.philips.com> X-Authentication-Warning: abqn07.sca.philips.com: lopez set sender to Robert.Lopez@abq.sc.philips.com using -f To: gcc-help@gcc.gnu.org Subject: modify gcc's include list Reply-to: I have a departmental server on which there is /usr/local/... and stable tools. On my workstation I build newer tools which are in /usr/local1/.... I usually build with "../configure --prefix=/usr/local1". It appears that when I build gcc-2.95.1 I should have used "../configure --prefix=/usr/local1 --with-local-prefix=/usr/local1" After several months of using this gcc today I found out [server down] that gcc looks in /usr/local/include instead of /usr/local1/include. Is there a way to modify gcc to fix this without building it again? I build from CD with a temp build dir which I no longer have. Thanks. -Robert Lopez From gcc-help-return-2905-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 03 06:07:19 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 19695 invoked by alias); 3 May 2000 06:07:19 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 19661 invoked from network); 3 May 2000 06:07:10 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 3 May 2000 06:07:10 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id 819C812105; Wed, 3 May 2000 00:07:26 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id 2D82812104; Wed, 3 May 2000 00:07:26 -0600 (MDT) Date: Wed, 3 May 2000 00:07:25 -0600 (MDT) From: To: Robert.Lopez@abq.sc.philips.com Cc: gcc-help@gcc.gnu.org Subject: Re: modify gcc's include list In-Reply-To: <200005022318.RAA00008@abqn07.sca.philips.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 2 May 2000 Robert.Lopez@abq.sc.philips.com wrote: > > I have a departmental server on which there is > /usr/local/... and stable tools. > > On my workstation I build newer tools which are in > /usr/local1/.... I usually build with > "../configure --prefix=/usr/local1". > > It appears that when I build gcc-2.95.1 I should have > used > "../configure --prefix=/usr/local1 > --with-local-prefix=/usr/local1" > > After several months of using this gcc today I found > out [server down] that gcc looks in /usr/local/include > instead of /usr/local1/include. > > Is there a way to modify gcc to fix this without > building it again? I build from CD with a temp build > dir which I no longer have. > I think your only recourse is tricks such as -I, C_INCLUDE_PATH, or, perhaps editing your specs file (not for the faint of heart). See http://gcc.gnu.org/onlinedocs/gcc_2.html#SEC14 (for -I). See http://gcc.gnu.org/onlinedocs/gcc_2.html#SEC47 (for C_INCLUDE_PATH) I do not where to find docs for the specs file, so on second thought, leave it alone. From gcc-help-return-2906-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 03 11:09:02 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 13050 invoked by alias); 3 May 2000 11:09:01 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 13013 invoked from network); 3 May 2000 11:08:59 -0000 Received: from kermit.ss.pub.ro (141.85.252.99) by sourceware.cygnus.com with SMTP; 3 May 2000 11:08:59 -0000 Received: (qmail 13018 invoked from network); 3 May 2000 11:06:36 -0000 Received: from adita.cs.pub.ro (HELO adita) (141.85.37.56) by kermit.ss.pub.ro with SMTP; 3 May 2000 11:06:36 -0000 Message-ID: <026901bfb4f0$53cdf320$3825558d@cs.pub.ro> From: "Senti" To: "gcc-help" Subject: asm - novice question Date: Wed, 3 May 2000 14:11:27 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0266_01BFB509.78D373C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 This is a multi-part message in MIME format. ------=_NextPart_000_0266_01BFB509.78D373C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable In i386.h machine description file there are 3 lines as follows : fprintf (FILE, "\tleal %sP%d@GOTOFF(%%ebx),%%edx\n", \ LPREFIX, (LABELNO)); \ fprintf (FILE, "\tcall *_mcount@GOT(%%ebx)\n"); \ 1.) Can anyone help telling me what @GOTOFF(%%ebx) and @GOT(%%ebx) means = ? 2.) Or the "*" in front of _mcount . I've built the gcc without these and i didn't saw anything going wild . If someone can translate that to me or tell me where i can find some = docs about it i would be grateful. Thanks , Adrian ------=_NextPart_000_0266_01BFB509.78D373C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

In i386.h machine description file = there are 3=20 lines as follows :
 

fprintf (FILE, "\tleal %sP%d@GOTOFF(%%ebx),%%edx\n", \

            =    =20 LPREFIX, (LABELNO)); \

fprintf (FILE, "\tcall *_mcount@GOT(%%ebx)\n"); \

 

1.) Can anyone help telling me what @GOTOFF(%%ebx) and @GOT(%%ebx) means=20 ?

2.) Or the "*" in front of _mcount = .

I've built the gcc without these = and i didn't=20 saw anything going wild .

If someone can translate that to me or = tell me where=20 i can find some docs about it i would be grateful.

Thanks , = Adrian

------=_NextPart_000_0266_01BFB509.78D373C0-- From gcc-help-return-2907-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 03 21:41:13 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 11628 invoked by alias); 3 May 2000 21:41:13 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 11582 invoked from network); 3 May 2000 21:41:11 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 3 May 2000 21:41:11 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id XAA08298; Wed, 3 May 2000 23:35:28 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id XAA06714; Wed, 3 May 2000 23:35:31 +0200 Date: Wed, 3 May 2000 23:35:31 +0200 Message-Id: <200005032135.XAA06714@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: senti1@k.ro CC: gcc-help@gcc.gnu.org In-reply-to: <026901bfb4f0$53cdf320$3825558d@cs.pub.ro> (senti1@k.ro) Subject: Re: asm - novice question References: <026901bfb4f0$53cdf320$3825558d@cs.pub.ro> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > 1.) Can anyone help telling me what @GOTOFF(%%ebx) and @GOT(%%ebx) means = > ? That's the global offset table (GOT). It is part of the position-independent code (PIC) mechanism. The problem is that the i386 does not support EIP-relative loads, especially not when the delta between the EIP and the target address is not known at link time. To still support position-idendepent code, the static linker constructs the GOT, and puts offsets to the GOT into the various @GOT and @GOTOFF locations. The dynamic linker then fills-out the GOT with the true addresses of the objects at run-time. To see this work, compile some code referencing global variables from another library with -fPIC, and look at the generated assembler output. Then, link the code with --shared, and use 'objdump -d' to disassemble the linked binary. Compare the original assembly and the disassembly, to see how the GOT works. > 2.) Or the "*" in front of _mcount . I believe the 'call *var' means an indirect call, fetching the function point in var, and jumping to the address fetched. > I've built the gcc without these and i didn't saw anything going wild . Try compiling with -pg -fPIC. > If someone can translate that to me or tell me where i can find some > docs about it i would be grateful. Depends on what aspect of your problem you need to understand. These are the aspects I can see; for some of them, books are available, online documentation for others, nothing for the rest: - i386 assembler code - the ELF object file format - x86 processor-specific ABI - position-independent code - GCC command line options - profiling in GCC Regards, Martin From gcc-help-return-2908-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 04 07:05:33 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23913 invoked by alias); 4 May 2000 07:05:32 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23855 invoked from network); 4 May 2000 07:05:30 -0000 Received: from law-f78.hotmail.com (HELO hotmail.com) (209.185.131.141) by sourceware.cygnus.com with SMTP; 4 May 2000 07:05:30 -0000 Received: (qmail 46688 invoked by uid 0); 4 May 2000 07:04:58 -0000 Message-ID: <20000504070458.46687.qmail@hotmail.com> Received: from 195.167.65.53 by www.hotmail.com with HTTP; Thu, 04 May 2000 00:04:58 PDT X-Originating-IP: [195.167.65.53] From: "Per-Ola Andersson" To: gcc-help@gcc.gnu.org Subject: position indenpendent code Date: Thu, 04 May 2000 09:04:58 CEST Mime-Version: 1.0 Content-Type: text/plain; format=flowed Hi, can anyone please tell me exactly what position independent code means, or tell me I can find a good source of information? man gcc just states that if the -fpic is used the gcc generates position independent code, suitable for use int shared libs. Thnx // POA ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From gcc-help-return-2909-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 04 16:16:27 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 2816 invoked by alias); 4 May 2000 16:16:26 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 2786 invoked from network); 4 May 2000 16:16:24 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 4 May 2000 16:16:24 -0000 Received: from mail.vjs.org (cc50165-b.hwrd1.md.home.com [24.9.159.241]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id MAA10822 for ; Thu, 4 May 2000 12:16:19 -0400 Received: from [192.168.0.234] (192.168.1.6) by mail.vjs.org with ESMTP (Eudora Internet Mail Server 2.2); Thu, 4 May 2000 12:16:12 -0400 Mime-Version: 1.0 Message-Id: X-Organization: Little to None X-Mailer: Eudora 5.0 for Cray T3E-1200 Date: Thu, 4 May 2000 12:14:18 -0400 To: help-gcc@gnu.org From: Vince Sabio Subject: need solaris 8 gcc binary Content-Type: text/plain; charset="us-ascii" ; format="flowed" Hi folks, New here, so please pardon this request if it's a repeat. I just installed Solaris 8, which apparently doesn't come with a compiler, which means that I can't build gcc locally. I called to purchase the GNU Compiler Tools CD, but FSF doesn't have Solaris 8 binaries yet. What they *do* have is a very helpful person who referred me to this forum. So, anyone know where I can get a pre-compiled gcc installation? Any help is greatly appreciated. Thanks, Vince __________________________________________________________________________ Vince Sabio Got Bounces? vince-lists@vjs.org Got Jokes? Got Spam? From gcc-help-return-2910-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 04 18:14:01 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 4517 invoked by alias); 4 May 2000 18:14:00 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 4467 invoked from network); 4 May 2000 18:13:59 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 4 May 2000 18:13:59 -0000 Received: from dbritsch.dsl.xmission.com (dbritsch.dsl.xmission.com [166.70.156.242]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id OAA24216 for ; Thu, 4 May 2000 14:13:47 -0400 From: llewelly@dbritsch.dsl.xmission.com Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id 9801212105; Thu, 4 May 2000 12:13:51 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id D696712104; Thu, 4 May 2000 12:13:51 -0600 (MDT) Date: Thu, 4 May 2000 12:13:51 -0600 (MDT) To: Vince Sabio Cc: help-gcc@gnu.org Subject: Re: need solaris 8 gcc binary In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 4 May 2000, Vince Sabio wrote: > Hi folks, > > New here, so please pardon this request if it's a repeat. I just > installed Solaris 8, which apparently doesn't come with a compiler, > which means that I can't build gcc locally. I called to purchase the > GNU Compiler Tools CD, but FSF doesn't have Solaris 8 binaries yet. > What they *do* have is a very helpful person who referred me to this > forum. > > So, anyone know where I can get a pre-compiled gcc installation? Any > help is greatly appreciated. > [snip] sunfreeware.com http://gcc.gnu.org/fom_serv/cache/57.html From gcc-help-return-2911-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 04 19:12:55 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 24603 invoked by alias); 4 May 2000 19:12:55 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 24563 invoked from network); 4 May 2000 19:12:52 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 4 May 2000 19:12:52 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id D20B912105; Thu, 4 May 2000 13:13:09 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id 3915E12104; Thu, 4 May 2000 13:13:09 -0600 (MDT) Date: Thu, 4 May 2000 13:13:09 -0600 (MDT) From: llewelly@dbritsch.dsl.xmission.com To: FeliceGata@aol.com Cc: gcc-help@gcc.gnu.org Subject: Re: download C compiler In-Reply-To: <48.4f2ea11.2642d9d2@aol.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 4 May 2000 FeliceGata@aol.com wrote: This list is primarily for developers of gcc. Questions like this should go to gcc-help@gcc.gnu.org . This question is best answered at: http://gcc.gnu.org/install/binaries.html Also, please check the FAQ at: http://gcc.gnu.org/fom_serv/cache/1.html > Good Morning, > > I am a student studing computer programing. I have just started an > intorductory C Programming class. My professor stated that I could download a > c compiler from your web site, which would enable me to do the class > programming assignments at home. > > However, I am just begining and am confused by your language. I don't know > which download to use. Can you please help with advise. > gcc.gnu.org does not distribute the compiler as a ready-to-execute binary. gcc.gnu.org distributes the compiler in source code form, which requires that you already have a compiler for your system. Which precompiled compiler you need, and where you can get it depends on your platform (operating system + hardware arch). [snip] From gcc-help-return-2912-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 04 19:42:18 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 3977 invoked by alias); 4 May 2000 19:42:17 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 3933 invoked from network); 4 May 2000 19:42:15 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 4 May 2000 19:42:15 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id CFE6E12105; Thu, 4 May 2000 13:42:32 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id C7FD912104; Thu, 4 May 2000 13:42:32 -0600 (MDT) Date: Thu, 4 May 2000 13:42:32 -0600 (MDT) From: To: HM Nesbit Cc: gcc-help@gcc.gnu.org Subject: Re: Dynamic linker In-Reply-To: <3911692F.27C5FCD6@infop6.jussieu.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 4 May 2000, HM Nesbit wrote: > Greetings, > > I don't know if this is the right address to ask about trouble using > GCC, It is not. gcc-help@gcc.gnu.org is what you want. > but I'm not a very experienced Linux user, so I have to call upon > "gurus". All apologies if I was wrong. > > I recently installed GCC 2.95.2, When reporting bugs or difficulties with gcc, please describe how you installed it. > but after that, no shared libraries > couldn't be found by any application using them. What applications could not find shared libraries? > I read in the docs that > the dynamic linker was not updated while installing, so I would like to > know how to do this. This varies widely from one platform to the next. I will have to assume you are using linux. (0) Find out which directories contain newly installed shared libs. If you do not have root on the machine you are using, add these dirs to the environment variable LD_LIBARY_LOAD_PATH , and stop here. (1) $man ldconfig (2) Check your /etc/ld.so.conf . If these directories are not in your /etc/ld.so.conf, add them to /etc/ld.so.conf, one directory per line. (You must edit /etc/ld.so.conf as root.) (3) $su $ldconfig by the way, I do not really know what your problem is; you should re-read the installation instructions for gcc, and see if you missed something. [snip] From gcc-help-return-2913-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 04 19:55:05 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 11286 invoked by alias); 4 May 2000 19:55:05 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 11254 invoked from network); 4 May 2000 19:55:04 -0000 Received: from lx40.tx.ncsu.edu (root@152.1.40.208) by sourceware.cygnus.com with SMTP; 4 May 2000 19:55:04 -0000 Received: from lx40.tx.ncsu.edu (IDENT:wjasper@localhost.localdomain [127.0.0.1]) by lx40.tx.ncsu.edu (8.9.3/8.9.3) with ESMTP id PAA18371 for ; Thu, 4 May 2000 15:53:59 -0400 Message-Id: <200005041953.PAA18371@lx40.tx.ncsu.edu> To: gcc-help@gcc.gnu.org Subject: gcc failing on -G 0 option Reply-To: wjasper@tx.ncsu.edu Phone: 919-515-6565 Date: Thu, 04 May 2000 15:53:59 -0400 From: Warren Jasper Hi. I am trying to build a cross compiler to port eCos to a Mips chip. I have followed the direction in the web page "Building the NEC MIPS VR4300 development tools for Linux". I download the following snapshots and patches: egcs-core-20000501.tar.gz egcs-g++-20000501.tar.gz ecos-gcc-snap.pat binutils-000426 (from binutils.tar.bz2) I was able to compile and install binutils, no problem. I was able to configure the cross compiler. However, when I tried to make it, I get the followin errors: LIBGCC2_CFLAGS="-O2 -DCROSS_COMPILE -DIN_GCC -g -O2 -isystem ./include -G 0 -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc " libgcc2.a make[3]: Entering directory `/tmp/build/gcc/gcc' rm -f tmplibgcc2.a for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit _ctors _pure; \ do \ echo ${name}; \ /tmp/build/gcc/gcc/xgcc -B/tmp/build/gcc/gcc/ -B/tools/H-i686-pc-linux-gnu/mips64vr4300-elf/bin/ -I/tools/H-i686-pc-linux-gnu/mips64vr4300-elf/include -O2 -DCROSS_COMPILE -DIN_GCC -g -O2 -isystem ./include -G 0 -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I/usr/local/src/gcc/egcs-20000501/gcc -I/usr/local/src/gcc/egcs-20000501/gcc/config -I/usr/local/src/gcc/egcs-20000501/gcc/../include -c -DL${name} \ /usr/local/src/gcc/egcs-20000501/gcc/libgcc2.c -o ${name}.o; \ if [ $? -eq 0 ] ; then true; else exit 1; fi; \ mips64vr4300-elf-ar rc tmplibgcc2.a ${name}.o; \ rm -f ${name}.o; \ done _muldi3 as: unrecognized option `-G' make[3]: *** [libgcc2.a] Error 1 make[3]: Leaving directory `/tmp/build/gcc/gcc' make[2]: *** [stmp-multilib-sub] Error 2 make[2]: Leaving directory `/tmp/build/gcc/gcc' make[1]: *** [stmp-multilib] Error 1 make[1]: Leaving directory `/tmp/build/gcc/gcc' make: *** [all-gcc] Error 2 make: Leaving directory `/tmp/build/gcc' The Makefile in /tmp/buid/gcc/gcc states: # We must build libgcc2.a with -G 0, in case the user wants to link # without the $gp register. TARGET_LIBGCC2_CFLAGS = -G 0 but I could not find the -G option documented in as. Can someone help me out? Is there a patch I need? Thanks, -- Warren Warren J. Jasper wjasper@tx.ncsu.edu From gcc-help-return-2914-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 04 21:22:28 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 11119 invoked by alias); 4 May 2000 21:22:25 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 11070 invoked from network); 4 May 2000 21:22:21 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 4 May 2000 21:22:21 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id XAA05195; Thu, 4 May 2000 23:16:26 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id XAA01366; Thu, 4 May 2000 23:13:37 +0200 Date: Thu, 4 May 2000 23:13:37 +0200 Message-Id: <200005042113.XAA01366@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: poa33@hotmail.com CC: gcc-help@gcc.gnu.org In-reply-to: <20000504070458.46687.qmail@hotmail.com> (poa33@hotmail.com) Subject: Re: position indenpendent code References: <20000504070458.46687.qmail@hotmail.com> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > can anyone please tell me exactly what position independent code > means, or tell me I can find a good source of information? Code is *position dependent* if the machine instructions contain absolute addresses of variables and functions; the exact contents of the machine code *depends* on the *position* of those variables and functions. Code is *position independent* if it is not position dependent. Regards, Martin From gcc-help-return-2915-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 04 22:03:04 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 25663 invoked by alias); 4 May 2000 22:03:04 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 25631 invoked from network); 4 May 2000 22:03:03 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 4 May 2000 22:03:03 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id F1BFB12105; Thu, 4 May 2000 16:03:16 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id D7FB912104; Thu, 4 May 2000 16:03:16 -0600 (MDT) Date: Thu, 4 May 2000 16:03:16 -0600 (MDT) From: To: Neelakanth Cc: Nick Clifton , gcc-help@gcc.gnu.org Subject: Re: ARM syntax in gcc? In-Reply-To: <20000504142845.I4489@neel> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 4 May 2000, Neelakanth wrote: > Sometime ago, Nick Clifton said: > [snip] > I am sorry, I should have been more clear. Does gcc provide flags to > force source file to follow the guidelines in the The Annotated C++ > Reference Manual ?? > > thanks, > -neelakanth > Not specifically. However, see http://gcc.gnu.org/onlinedocs/gcc_2.html#SEC7 for some flags that may be of use. Fortunately, much of ARM C++ is upward compatible with current gcc (2.95.2). Most ARM C++ should 'just work'. Your biggest difficulties will probably be with const violations. [snip] From gcc-help-return-2916-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 05 08:18:33 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 29634 invoked by alias); 5 May 2000 08:18:32 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 29593 invoked from network); 5 May 2000 08:18:31 -0000 Received: from mail.gmx.net (HELO mail2.gmx.net) (194.221.183.62) by sourceware.cygnus.com with SMTP; 5 May 2000 08:18:31 -0000 Received: (qmail 32042 invoked by uid 0); 5 May 2000 08:18:28 -0000 Received: from as10-182.brunet.bn (HELO stomper.sdtzone) (202.160.10.182) by mail.gmx.net with SMTP; 5 May 2000 08:18:28 -0000 Received: from localhost (sdt@localhost) by stomper.sdtzone (8.9.3/8.9.3) with ESMTP id QAA02532; Fri, 5 May 2000 16:16:43 +0800 (BNT) (envelope-from sdt@stomper.sdtzone) Date: Fri, 5 May 2000 16:16:42 +0800 (BNT) From: Stefanus Du Toit To: freebsd-stable@FreeBSD.ORG cc: gcc-help@gcc.gnu.org Subject: libio - _G_IO_IO_FILE_VERSION, streambuf::showmanyc() Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi, (note: I am not subscribed to gcc-help, but am to freebsd-stable) I'm currently working at a protocol library in C++. It uses iostreams for network communication, hence relying on streambuf. However, we require streambuf::showmanyc() to be available, but it seems to be #defined out as follows in /usr/include/g++/streambuf.h: -- g++/streambuf.h, line 416 -- #if _G_IO_IO_FILE_VERSION == 0x20001 virtual int showmanyc(); virtual void imbue(void *); #endif -- snip -- Another developer also working on the project has g++ 2.95.2 installed from the sources straight from cygnus (on Linux afaik) and he seems to have #define _G_IO_IO_FILE_VERSION = 0x20001 in his _G_config.h. Why is this not defined in the version built from /usr/src/, with FreeBSD-STABLE 4.0 from about 2 weeks ago? Any ideas on how I can get this fixed? Your help would be greatly appreciated, -- Stefanus Du Toit * WorldForger * Open-source/free software unix hacker mailto:sdt@gmx.net * http://www.worldforge.org/ * http://ultracool.net/ GPG key: 6B92DE98 from certserver.pgp.com or http://ultracool.net/gpg/ From gcc-help-return-2917-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 05 10:07:28 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 20256 invoked by alias); 5 May 2000 10:07:27 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 20222 invoked from network); 5 May 2000 10:07:22 -0000 Received: from imo19.mx.aol.com (152.163.225.9) by sourceware.cygnus.com with SMTP; 5 May 2000 10:07:22 -0000 Received: from FeliceGata@aol.com by imo19.mx.aol.com (mail_out_v26.7.) id r.dd.3ed3934 (4229) for ; Fri, 5 May 2000 06:06:54 -0400 (EDT) From: FeliceGata@aol.com Message-ID: Date: Fri, 5 May 2000 06:06:54 EDT Subject: Download c compiler To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: AOL 4.0 for Windows 95 sub 100 Good Morning, > > I am a student studing computer programing. I have just started an > intorductory C Programming class. My professor stated that I could download a > c compiler from your web site, which would enable me to do the class > programming assignments at home. > > However, I am just begining and am confused by your language. I don't know > which download to use. Can you please help with advise. > Thank you, John Ackerman jackx135@aol.com From gcc-help-return-2918-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 05 11:42:22 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 593 invoked by alias); 5 May 2000 11:42:19 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 558 invoked from network); 5 May 2000 11:42:12 -0000 Received: from spinoza.ime.usp.br (143.107.45.30) by sourceware.cygnus.com with SMTP; 5 May 2000 11:42:12 -0000 Received: (qmail 29046 invoked from network); 5 May 2000 11:41:55 -0000 Received: from vila.linux.ime.usp.br (qmailr@192.168.240.9) by spinoza.linux.ime.usp.br with SMTP; 5 May 2000 11:41:55 -0000 Received: (qmail 2284 invoked from network); 5 May 2000 11:41:55 -0000 Received: from pascal.linux.ime.usp.br (HELO linux.ime.usp.br) (192.168.240.40) by vila.linux.ime.usp.br with SMTP; 5 May 2000 11:41:55 -0000 Message-ID: <3912B383.986E6392@linux.ime.usp.br> Date: Fri, 05 May 2000 08:41:33 -0300 From: Nelson Guedes Paulo Junior X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.0.38 i586) X-Accept-Language: en MIME-Version: 1.0 To: Lista GCC Subject: About Keyboards - URGENT!!!! Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello to anyone..... I need some help in using the keyboard in C and on the GCC. I need a function that reads n leters from the keyboard that folow some rule. The function prototype will be: int *read_keyboard(int n;char rule); The function MUST read exactly n characters and return IMEDIATLY (thingh that the functions of the C library doesn't does). If (n==0) the function just return -1 The rule will be: 'n' or 'N' for numbers 'w' or 'W' for words (only a-z or A-Z) 'a' or 'A' for any character 's' or 'S' for these characters: ({[]})*/\?|><.,;:-_&%$#@! If rule is not valid, then the function return -2. Is desired that the param rule be optional so 'A' will be the default and you can use: int *c; c = read_keyboard(10); Or int *c; c = read_keyboard(10,'a'); And, is desired too that the function runs on Windows/Dos/Unix/Linux systems.... Need response urgent..... Thanks... -- Nelson Guedes Paulo Junior E-mail: UIN: 2489382 (Tender AML) HomePage: (Em eterna construção) http://members.xoom.com/DuneKiller/index2.html From gcc-help-return-2919-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 05 11:50:28 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 3533 invoked by alias); 5 May 2000 11:50:28 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 3501 invoked from network); 5 May 2000 11:50:26 -0000 Received: from spinoza.ime.usp.br (143.107.45.30) by sourceware.cygnus.com with SMTP; 5 May 2000 11:50:26 -0000 Received: (qmail 29347 invoked from network); 5 May 2000 11:50:09 -0000 Received: from vila.linux.ime.usp.br (qmailr@192.168.240.9) by spinoza.linux.ime.usp.br with SMTP; 5 May 2000 11:50:09 -0000 Received: (qmail 2858 invoked from network); 5 May 2000 11:50:09 -0000 Received: from pascal.linux.ime.usp.br (HELO linux.ime.usp.br) (192.168.240.40) by vila.linux.ime.usp.br with SMTP; 5 May 2000 11:50:09 -0000 Message-ID: <3912B571.CDDE2962@linux.ime.usp.br> Date: Fri, 05 May 2000 08:49:47 -0300 From: Nelson Guedes Paulo Junior X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.0.38 i586) X-Accept-Language: en MIME-Version: 1.0 To: Lista GCC Subject: Strings..... Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello to everyone.... I need a really fast way to do the following: I have a (char *) that contains am arbitrary string and have space to do the desired operation. Now i need to left-shift the string from n positions and fill the initial n position with space. for example: char *string; string = (char *)malloc(sizeof(char)*10); string = "Hello\0"; left_shift_string(string,2); printf("String value:%s\n",string); When you execute the following code, will be printed: "String value: Hello" Note that now we have two spaces at the beggining of the string. The function can assume that we HAVE space to do the operation, n will be an positive integer, must run on Windows/Dos/Unix/Linux systems and must follow the prototype: char *left_shift_string(char *string,int n); Thanks.... []'s -- Nelson Guedes Paulo Junior E-mail: UIN: 2489382 (Tender AML) HomePage: (Em eterna construção) http://members.xoom.com/DuneKiller/index2.html From gcc-help-return-2920-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 05 12:11:28 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 5734 invoked by alias); 5 May 2000 12:11:26 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 5702 invoked from network); 5 May 2000 12:11:23 -0000 Received: from ulise.cs.pub.ro (141.85.37.2) by sourceware.cygnus.com with SMTP; 5 May 2000 12:11:23 -0000 Received: (qmail 14586 invoked from network); 5 May 2000 11:52:53 -0000 Received: from vv.cs.pub.ro (HELO vv) (141.85.37.53) by ulise.cs.pub.ro with SMTP; 5 May 2000 11:52:53 -0000 From: "Virgil Palanciuc" To: "Nelson Guedes Paulo Junior" , "Lista GCC" Subject: RE: About Keyboards - URGENT!!!! Date: Fri, 5 May 2000 15:13:34 +0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-reply-to: <3912B383.986E6392@linux.ime.usp.br> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal As a first note, I don't think this is the right place for this kind of questions. > I need a function that reads n leters from the keyboard > that folow some rule. > [....] I don't think anybody will write the program for you, so you should have given a much shorter description for your problem. You can use read(...) to do the job, and specify '0' as the first parameter (0 means stdin - i.e. the keybord, generally). You should also do something like fcntl(0,F_SETFL,O_RDONLY|O_NONBLOCK); before any call to your function. (I'm not sure the fcntl call is correct, you should check the manpages). > And, is desired too that the function runs on Windows/Dos/Unix/Linux > systems.... AFAICT, this will work both on windows/dos and on linux. However, depending on the compiler you use (under dos), you may need to include different header files. > Need response urgent..... > Thanks... > -- > Nelson Guedes Paulo Junior > E-mail: UIN: 2489382 (Tender AML) > HomePage: (Em eterna construção) > http://members.xoom.com/DuneKiller/index2.html Virgil. From gcc-help-return-2921-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 05 21:31:38 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 15043 invoked by alias); 5 May 2000 21:31:38 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 15012 invoked from network); 5 May 2000 21:31:36 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 5 May 2000 21:31:36 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id XAA20467; Fri, 5 May 2000 23:25:48 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id XAA01066; Fri, 5 May 2000 23:18:15 +0200 Date: Fri, 5 May 2000 23:18:15 +0200 Message-Id: <200005052118.XAA01066@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: npaulo@linux.ime.usp.br CC: gcc-help@gcc.gnu.org In-reply-to: <3912B571.CDDE2962@linux.ime.usp.br> (message from Nelson Guedes Paulo Junior on Fri, 05 May 2000 08:49:47 -0300) Subject: Re: Strings..... References: <3912B571.CDDE2962@linux.ime.usp.br> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > I need a really fast way to do the following: Please understand that this is the list for help on the GNU C compiler, not for help with C in general. You cannot really expect anybody on this list to implement this function for you. Please use other fora, such as comp.lang.c, where general questions on C are on-topic. > char *string; > > string = (char *)malloc(sizeof(char)*10); > string = "Hello\0"; If you really meant to write this, you need to study C in more detail. When you assign "Hello\0" to string, than the result of the earlier allocation is lost and garbage. Also, modifying the string won't work because it is a constant. To copy overlapping memory, you can use the memmove(3) function. Regards, Martin From gcc-help-return-2922-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sat May 06 17:47:11 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 21403 invoked by alias); 6 May 2000 17:47:11 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 21372 invoked from network); 6 May 2000 17:47:10 -0000 Received: from kalman.iau.dtu.dk (root@192.38.66.22) by sourceware.cygnus.com with SMTP; 6 May 2000 17:47:10 -0000 Received: from kalman.iau.dtu.dk (pc120.iau.dtu.dk [192.38.66.220]) by kalman.iau.dtu.dk (8.8.6 (PHNE_17135)/8.8.6) with ESMTP id TAA24801 for ; Sat, 6 May 2000 19:47:02 +0200 (METDST) Message-ID: <3914773D.559A2FC@kalman.iau.dtu.dk> Date: Sat, 06 May 2000 21:49:17 +0200 From: Ivan Martinez Reply-To: ivan_m_r@email.com X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14-15mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: libstdc++ included?. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello all, I just installed the full distribution of GCC 2.95.2 but it seems that it doesn't include libstdc++, does it?. So I downloaded de C++ distribution. This one doesn't contain the compiler itself, does it?. How should I install this C++ distribution?. Is there any configuration file stablishing GCC's default include directories?. Thank you. -- Ivan Martinez (Rodriguez) BEng in Software Engineering - MEng student http://www.student.dtu.dk/~u990873 "Got fabes?" From gcc-help-return-2923-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sat May 06 19:19:54 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 1040 invoked by alias); 6 May 2000 19:19:53 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 1010 invoked from network); 6 May 2000 19:19:52 -0000 Received: from empire.netrevolution.com (root@207.253.184.2) by sourceware.cygnus.com with SMTP; 6 May 2000 19:19:52 -0000 Received: from netrevolution.com (IDENT:root@161.CPA2511-2-Sherb.NetRevolution.com [207.253.184.161]) by empire.NetRevolution.com (8.9.3/8.8.7) with ESMTP id PAA23378 for ; Sat, 6 May 2000 15:46:38 -0400 Message-ID: <3914703F.86CBF6D8@netrevolution.com> Date: Sat, 06 May 2000 15:19:27 -0400 From: Mike Corbeil X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.2.5-22 i586) MIME-Version: 1.0 To: Lista GCC Subject: Re: About Keyboards - URGENT!!!! References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit What about using getc or getchar in a loop which iterates n times? I'm not going to give more of the algorithm out, but recall doing something like this for a C course in school and both of these functions are ANSI, which means that they should be available on all platforms where the C compiler is ANSI, and (I believe) the same result would occur on all such platforms; although, supporting all platforms might not be important, especially for a university or college course. If getc and or getchar work, then this would eliminate the need for additional overhead like fcntl, but you'ld need to look up the definition of both of these, because I think that one may need the user to press Enter or Return, whilst the function other doesn't; something like getc being irrelevant of Return or Enter while getchar needs this key to be pressed (you'ld need to verify). It's been a long time since I've used these, but these were common for simpler ways of getting single char user input from stdin. If the stdin happens to be from some other location than the default, then I believe that there are counterpart f functions for either or both of these, for example fgetc. There's a purpose for read, but it's for lowest level work or tasks; perhaps also for more assured portability. getc or getchar may be adequate in this case, and I believe that these use read while providing a simpler user or programmer interface when special cases aren't relevant. For example, an OS probably uses read, while many or most user programs adequately use getc and or getchar, i.e., it depends on the purpose; although, ANSI only says what a function must do, instead of how it must be done, which means that ANSI'd functions can vary wrt things like side effects. If that's important, then use read. Look up the getc, getchar, read, and fcntl functions in this order, to go from simplest to least (getc and getchar are very similar). If others are relevant, then the descriptions you'll read should indicate this. If you're programming C on Unix or Linux and have Richard Stevens' book on Programming C for Unix available, then look these functions up in this book. This book may be adequate for programming in MS OSs, but you'ld need to learn from trial. If the question is for a university or college course, then such questions should be figured out by studying the book. These functions would be quick to find by simply browsing through the index, at least if the book is decent. The way to approach this kind of search is to ask yourself what you want to do and in this case it's related to character, or string (char is subset of string, but you can surely skip looking up string in the index, if you have a decent book), and get or read. Using this kind of approach, answers can be quickly found by simply browsing the index (of a decent book) and this can often be quicker than using mailing lists. I agree with Virgil that this mailing list is probably not intended for such questions. mike corbeil Virgil Palanciuc wrote: > As a first note, I don't think this is the right place for this kind of > questions. > > > I need a function that reads n leters from the keyboard > > that folow some rule. > > [....] > > I don't think anybody will write the program for you, so you should have > given a much shorter description for your problem. > You can use read(...) to do the job, and specify '0' as the first > parameter (0 means stdin - i.e. the keybord, generally). You should also do > something like > fcntl(0,F_SETFL,O_RDONLY|O_NONBLOCK); > before any call to your function. (I'm not sure the fcntl call is correct, > you should check the manpages). > > And, is desired too that the function runs on Windows/Dos/Unix/Linux > > systems.... > AFAICT, this will work both on windows/dos and on linux. However, > depending on the compiler you use (under dos), you may need to include > different header files. > > > Need response urgent..... > > Thanks... > > -- > > Nelson Guedes Paulo Junior > > E-mail: UIN: 2489382 (Tender AML) > > HomePage: (Em eterna construção) > > http://members.xoom.com/DuneKiller/index2.html > > Virgil. From gcc-help-return-2924-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sat May 06 20:54:38 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 12893 invoked by alias); 6 May 2000 20:54:38 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 12862 invoked from network); 6 May 2000 20:54:36 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 6 May 2000 20:54:36 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id 6F02B12105; Sat, 6 May 2000 14:54:54 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id 1C54512104; Sat, 6 May 2000 14:54:54 -0600 (MDT) Date: Sat, 6 May 2000 14:54:54 -0600 (MDT) From: To: ivan_m_r@email.com Cc: gcc-help@gcc.gnu.org Subject: Re: libstdc++ included?. In-Reply-To: <3914773D.559A2FC@kalman.iau.dtu.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 6 May 2000, Ivan Martinez wrote: > Hello all, > I just installed the full distribution of GCC 2.95.2 but it seems that > it doesn't include libstdc++, does it?. The full distribution of gcc 2.95.2 *does* contain libstdc++-v2. (It does not contain libstdc++-v3, which is still experimental.) > So I downloaded de C++ > distribution. This one doesn't contain the compiler itself, does it?. It contains the c compiler, the C++ compiler, and libstdc++-v2 . It does not contain java, chill, fortran77, objective-c, etc. So you have some redundancy amoung these packages; you will only need to install one of them. > How should I install this C++ distribution?. See http://gcc.gnu.org/install/index.html Keep in mind that the instructions are the same, whichever gcc source tarball you use; only the result differs. And you always get the C frontend. > Is there any configuration > file stablishing GCC's default include directories?. Thank you. > From gcc-help-return-2925-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sun May 07 17:17:43 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 6045 invoked by alias); 7 May 2000 17:17:42 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 6015 invoked from network); 7 May 2000 17:17:41 -0000 Received: from kalman.iau.dtu.dk (root@192.38.66.22) by sourceware.cygnus.com with SMTP; 7 May 2000 17:17:41 -0000 Received: from kalman.iau.dtu.dk (pc120.iau.dtu.dk [192.38.66.220]) by kalman.iau.dtu.dk (8.8.6 (PHNE_17135)/8.8.6) with ESMTP id TAA10046; Sun, 7 May 2000 19:16:23 +0200 (METDST) Message-ID: <3915C196.E11FD271@kalman.iau.dtu.dk> Date: Sun, 07 May 2000 21:18:46 +0200 From: Ivan Martinez Reply-To: ivan_m_r@email.com X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14-15mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: llewelly@dbritsch.dsl.xmission.com CC: gcc-help@gcc.gnu.org Subject: Re: libstdc++ included?. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit llewelly@dbritsch.dsl.xmission.com wrote: > > On Sat, 6 May 2000, Ivan Martinez wrote: > > > Hello all, > > > How should I install this C++ distribution?. > > See http://gcc.gnu.org/install/index.html > I had a look at it and I saw that they are the typical compilation and installaction instructions (./configure, make, make install), which I already knew. After downloading "GCC 2.95.2, gzip format, 1.6Meg" below "C++ distribution and updates to C++ distribution" in "gcc.gnu.org/pub/gcc/releases/index.html", I untar it and get a "gcc-2.95.2" directory. My problem is that under that directory there isn't a "configure" file, so this package doesn't follow the common installation way. There are three other directories, "gcc", "libio" and "libstdc++". I look for "configure" with a file searcher without success. What am I doing wrong?. Many thanks. > Keep in mind that the instructions are the same, whichever gcc source > tarball you use; only the result differs. And you always get the C > frontend. > > > Is there any configuration > > file stablishing GCC's default include directories?. Thank you. > > -- Ivan Martinez (Rodriguez) BEng in Software Engineering - MEng student http://www.student.dtu.dk/~u990873 "Got fabes?" From gcc-help-return-2926-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sun May 07 18:21:36 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 16948 invoked by alias); 7 May 2000 18:21:35 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 16918 invoked from network); 7 May 2000 18:21:34 -0000 Received: from kalman.iau.dtu.dk (root@192.38.66.22) by sourceware.cygnus.com with SMTP; 7 May 2000 18:21:34 -0000 Received: from kalman.iau.dtu.dk (pc120.iau.dtu.dk [192.38.66.220]) by kalman.iau.dtu.dk (8.8.6 (PHNE_17135)/8.8.6) with ESMTP id UAA12129 for ; Sun, 7 May 2000 20:21:31 +0200 (METDST) Message-ID: <3915D0DC.39B121FB@kalman.iau.dtu.dk> Date: Sun, 07 May 2000 22:23:56 +0200 From: Ivan Martinez Reply-To: ivan_m_r@email.com X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14-15mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: GCC mailing list Subject: How does GCC look for includes? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello all. Could you tell me how GCC looks for default include files?. Does it always look in "/usr/include" or the directories are specified in any configuration file?. When it looks in a directory, it doesn't necessarily looks in its subdirectories, does it?. Many thanks. -- Ivan Martinez (Rodriguez) BEng in Software Engineering - MEng student http://www.student.dtu.dk/~u990873 "Got fabes?" From gcc-help-return-2927-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sun May 07 18:57:57 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23572 invoked by alias); 7 May 2000 18:57:56 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23540 invoked from network); 7 May 2000 18:57:55 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 7 May 2000 18:57:55 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id D491E12105; Sun, 7 May 2000 12:58:14 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id 0246212104; Sun, 7 May 2000 12:58:14 -0600 (MDT) Date: Sun, 7 May 2000 12:58:14 -0600 (MDT) From: To: ivan_m_r@email.com Cc: GCC mailing list Subject: Re: How does GCC look for includes? In-Reply-To: <3915D0DC.39B121FB@kalman.iau.dtu.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 7 May 2000, Ivan Martinez wrote: > Hello all. Could you tell me how GCC looks for default include files?. > Does it always look in "/usr/include" or the directories are specified > in any configuration file?. When it looks in a directory, it doesn't > necessarily looks in its subdirectories, does it?. Many thanks. > If you add '-v' to your command line, gcc will display the directories searched for include files, in the order they are searched in. For flags that affect where gcc searches for include files, see http://gcc.gnu.org/onlinedocs/gcc_2.html#SEC11 From gcc-help-return-2928-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 02:46:41 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 7291 invoked by alias); 8 May 2000 02:46:40 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 7261 invoked from network); 8 May 2000 02:46:39 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 8 May 2000 02:46:39 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id 6CA3B12105; Sun, 7 May 2000 20:46:57 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id D456412104; Sun, 7 May 2000 20:46:57 -0600 (MDT) Date: Sun, 7 May 2000 20:46:57 -0600 (MDT) From: To: =?utf-8?B?7ZWY7KCV7Z2s?= Cc: gcc-help@gcc.gnu.org Subject: Re: [Q]Cross-compiler In-Reply-To: <001d01bfb880$61808300$bf81bca8@cnu.ac.kr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Unfortunately, I do not remember all the details of building a cross-compiler. (It is something end up doing only once every six months or so.)=20 Please send questions like this to gcc-help@gcc.gnu.org; I do not know everything, and I usually read gcc-help anyway. So my only answer to your question is: http://gcc.gnu.org/install/index.html and http://www.objsw.com/CrossGCC/ On Mon, 8 May 2000, [utf-8] =ED=95=98=EC=A0=95=ED=9D=AC wrote: > I'm glad to meet you=20 > Let me introduce myself. I am Korean student > =20 > Nowadays, I try to make Cross-Compiler for sparc-sun but, that was very d= ifficult since errors > =20 > target=3Dsparc-sun =20 > host=3Di686-pc-linux-gnu =20 > =20 > Cross-compiler > =20 > my directory is=20 > =20 > /home/alohajh/bar > /binutils-2.9.1 > /build-binutils > /build-gcc > /build-gdb > /gcc-2.95.2 > /objdir > =20 > first , I made native compiler > =20 > cd objdir > ../gcc-2.95.2/configure > make bootstrap ----OK > =20 > second,=20 > 1) install binutils > target=3Dsparc-sun > prefix=3D/home/alohajh/bar =3D>alohajh is my id. > i=3D$prefix/bin > cd build-binutils > ../binutils-2.9.1/configure --target=3D$target --prefix=3D$prefix -v --wi= th-headers=3D/usr/include > make all install -----OK > =20 > 2) install gcc for sparc-sun > cd build-gcc > ../gcc-2.95.2/configure --target=3D$target --prefix=3D$prefix -v --with-h= eaders=3D/usr/include I have always built gcc in an object directory that is separate from the source. Also, I remember needing --with-libs=3D{target system libs} the last time I built a cross compiler.=20 > make all install -----Erros and I remember running 'make cross', and *not* 'make all'. The details are in the two links above. > =20 > Error lists are.. > =20 > after compiling during 10 minutes > =20 > _fixtfdi > _floatdixf > _fixunsxfsi > _fixfdi > _fixunstfdi > _floatditf > __gcc_bcmp > _varargs > __dummy > _eprintf > _bb > _shtab > _clear_cache > _trampoline > __main > Infile included from ../../gcc-2.95.2/gcc/libgcc2.c:2820 > ../../gcc-2.95.2/gcc/gbl-ctors.h:46: conflicting types for 'on_exit' > /usr/include/stdlib.h:514: previous declaration of 'on_exit' > make[3] : ***[libgcc2.a]Error1 > make[3] : Leaving directory '/home/alohajh/build-gcc/gcc' > make[2] : ***[stmp-multilib-sub]Error2 > make[2] : Leaving directory '/home/alohajh/build-gcc/gcc' > make[1] : ***[stmp-multilib]Error1 > make[1] : Leaving directory '/home/alohajh/build-gcc/gcc' > make : ***[all-gcc]Error2 > ________________________________________________________ > 3) Newlib ---- not yet > 4) GDB ---- not yet > ________________________________________________________| > =20 > How can I handle 2)'s erros > =20 > Let me to wating your answer mail.... > If you can tell me something more about it i would appreciate it a lot.= =20 > =20 > Thank you...... >=20 >=20 From gcc-help-return-2929-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 03:07:01 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 8208 invoked by alias); 8 May 2000 03:07:01 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 8071 invoked from network); 8 May 2000 03:06:59 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 8 May 2000 03:06:59 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id F2B8912105; Sun, 7 May 2000 21:07:16 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id DAA5812104; Sun, 7 May 2000 21:07:16 -0600 (MDT) Date: Sun, 7 May 2000 21:07:16 -0600 (MDT) From: To: ivan_m_r@email.com Cc: gcc-help@gcc.gnu.org Subject: Re: libstdc++ included?. In-Reply-To: <3915C196.E11FD271@kalman.iau.dtu.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 7 May 2000, Ivan Martinez wrote: > llewelly@dbritsch.dsl.xmission.com wrote: > > > > On Sat, 6 May 2000, Ivan Martinez wrote: > > > > > Hello all, > > > > > How should I install this C++ distribution?. > > > > See http://gcc.gnu.org/install/index.html > > > I had a look at it and I saw that they are the typical compilation and > installaction instructions (./configure, make, make install), which I > already knew. > After downloading "GCC 2.95.2, gzip format, 1.6Meg" below "C++ > distribution and updates to C++ distribution" in > "gcc.gnu.org/pub/gcc/releases/index.html", I untar it and get a > "gcc-2.95.2" directory. My problem is that under that directory there > isn't a "configure" file, so this package doesn't follow the common > installation way. > There are three other directories, "gcc", "libio" and > "libstdc++". I look for "configure" with a file searcher without > success. > What am I doing wrong?. Many thanks. > > > Keep in mind that the instructions are the same, whichever gcc source > > tarball you use; only the result differs. And you always get the C > > frontend. I was wrong here, and I appologize. According to http://gcc.gnu.org/install/download.html (which you should read in case I have made another mistake) , you need either (a) The full source tarball gcc-2.95.2.tar.gz or (b) The core source tarball gcc-core-2.95.2.tar.gz *and* gcc-g++-2.95.2.tar.gz Which means you need to to get gcc-core as well. [snip] From gcc-help-return-2930-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 08:01:36 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 26348 invoked by alias); 8 May 2000 08:01:35 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 26316 invoked from network); 8 May 2000 08:01:33 -0000 Received: from kalman.iau.dtu.dk (root@192.38.66.22) by sourceware.cygnus.com with SMTP; 8 May 2000 08:01:33 -0000 Received: from kalman.iau.dtu.dk (pc120.iau.dtu.dk [192.38.66.220]) by kalman.iau.dtu.dk (8.8.6 (PHNE_17135)/8.8.6) with ESMTP id KAA11657 for ; Mon, 8 May 2000 10:01:29 +0200 (METDST) Message-ID: <3916910F.89160001@kalman.iau.dtu.dk> Date: Mon, 08 May 2000 12:03:59 +0200 From: Ivan Martinez Reply-To: ivan_m_r@email.com X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14-15mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: How does GCC look for includes? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit llewelly@dbritsch.dsl.xmission.com wrote: > > On Sun, 7 May 2000, Ivan Martinez wrote: > > > Hello all. Could you tell me how GCC looks for default include files?. > > Does it always look in "/usr/include" or the directories are specified > > in any configuration file?. When it looks in a directory, it doesn't > > necessarily looks in its subdirectories, does it?. Many thanks. > > > > If you add '-v' to your command line, gcc will display the directories > searched for include files, in the order they are searched in. > > For flags that affect where gcc searches for include files, see > http://gcc.gnu.org/onlinedocs/gcc_2.html#SEC11 Many thanks for your persistent help. I mean, if I just type "gcc myfile.c", without any "-I", does "gcc" look for include files anywhere?. In case it does, what tells gcc where to look?. Thanks again. -- Ivan Martinez (Rodriguez) BEng in Software Engineering - MEng student http://www.student.dtu.dk/~u990873 "Got fabes?" From gcc-help-return-2931-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 09:08:11 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 6532 invoked by alias); 8 May 2000 09:08:11 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 6496 invoked from network); 8 May 2000 09:08:09 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 8 May 2000 09:08:09 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id 0276912105; Mon, 8 May 2000 03:08:27 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id 51C9A12104; Mon, 8 May 2000 03:08:27 -0600 (MDT) Date: Mon, 8 May 2000 03:08:27 -0600 (MDT) From: To: ivan_m_r@email.com Cc: gcc-help@gcc.gnu.org Subject: Re: How does GCC look for includes? In-Reply-To: <3916910F.89160001@kalman.iau.dtu.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 8 May 2000, Ivan Martinez wrote: > llewelly@dbritsch.dsl.xmission.com wrote: > > > > On Sun, 7 May 2000, Ivan Martinez wrote: > > > > > Hello all. Could you tell me how GCC looks for default include files?. > > > Does it always look in "/usr/include" or the directories are specified > > > in any configuration file?. When it looks in a directory, it doesn't > > > necessarily looks in its subdirectories, does it?. Many thanks. > > > > > > > If you add '-v' to your command line, gcc will display the directories > > searched for include files, in the order they are searched in. > > > > For flags that affect where gcc searches for include files, see > > http://gcc.gnu.org/onlinedocs/gcc_2.html#SEC11 Sorry, this url should have been: http://gcc.gnu.org/onlinedocs/gcc_2.html#SEC14 > > Many thanks for your persistent help. I mean, if I just type "gcc > myfile.c", without any "-I", does "gcc" look for include files > anywhere?. In case it does, what tells gcc where to look?. Thanks again. > I think it varies somewhat depending on your architecture and installation. Unfortunately I do not actually know the rules; I just use -v if I have a question. On my machine, I get: {~/cc_exer}gcc -v main.c Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs gcc version 2.95.2 19991024 (release) /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ main.c /tmp/ccKuW0DX.i GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF) #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../i686-pc-linux-gnu/include /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include /usr/include End of search list. The following default directories have been omitted from the search path: /usr//lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3 End of omitted list. [snipped output not relevant to include directories] The above is probably typical for most unices (the paths containing 'i686-pc-linux-gnu' vary depending on the archetecture), but I seem to remember that BeOS uses a very different search path, and I would guess windows and NeXT use unusual search paths as well. Note that '-v' is only a way of getting some verbose info about what gcc is doing; it does not change gcc's behavior in any other way. From gcc-help-return-2932-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 10:02:40 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 17721 invoked by alias); 8 May 2000 10:02:37 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 17650 invoked from network); 8 May 2000 10:02:16 -0000 Received: from sasi.com (164.164.56.2) by sourceware.cygnus.com with SMTP; 8 May 2000 10:02:16 -0000 Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id PAA19163 for ; Mon, 8 May 2000 15:31:19 +0530 (IST) Received: from pcb68.sasi.com ([10.0.0.68]) by sasi.com; Mon, 08 May 2000 15:31:17 +0000 (IST) Received: from localhost (vinu@localhost) by pcb68.sasi.com (8.9.1/8.9.1) with ESMTP id PAA02185 for ; Mon, 8 May 2000 15:31:21 +0530 Date: Mon, 8 May 2000 15:31:21 +0530 (IST) From: Vinu V Nair To: gcc-help@gcc.gnu.org Subject: Shared libs Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi.. Is it necessary that all shared libraries be executables? What happens if we try to link to a shared library that is not an executable? rgds vinu Vinu V. Nair Software Engineer Silicon Automation Systems Limited 5281461/5281229-2213 From gcc-help-return-2933-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 10:51:32 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 24384 invoked by alias); 8 May 2000 10:51:32 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 24351 invoked from network); 8 May 2000 10:51:28 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 8 May 2000 10:51:28 -0000 Received: from zecarneiro.lsd.ic.unicamp.br (IDENT:oliva@zecarneiro.lsd.ic.unicamp.br [143.106.24.141]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id HAA32605; Mon, 8 May 2000 07:51:23 -0300 To: Vinu V Nair Cc: gcc-help@gcc.gnu.org Subject: Re: Shared libs References: From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 08 May 2000 07:51:22 -0300 In-Reply-To: Vinu V Nair's message of "Mon, 8 May 2000 15:31:21 +0530 (IST)" Message-ID: Lines: 12 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 8, 2000, Vinu V Nair wrote: > Is it necessary that all shared libraries be executables? It depends on the platform. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-2934-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 10:58:58 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 25464 invoked by alias); 8 May 2000 10:58:57 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 25433 invoked from network); 8 May 2000 10:58:55 -0000 Received: from ns.ikossvan.de (root@194.123.122.66) by sourceware.cygnus.com with SMTP; 8 May 2000 10:58:55 -0000 Received: from mail.ikossvan.de (limes.ikossvan.de [194.123.122.65]) by ns.ikossvan.de (8.9.3/8.9.3) with ESMTP id MAA18378 for ; Mon, 8 May 2000 12:58:36 +0200 Received: from [192.168.41.183] by mail.ikossvan.de (NTMail 4.20.0009/NU4601.00.2180fc9e) with ESMTP id nyodbaaa for ; Mon, 8 May 2000 12:58:50 +0200 Message-ID: <39169DA3.27114FB2@atos-group.com> Date: Mon, 08 May 2000 12:57:39 +0200 From: Pascal Bleser Organization: ATOS GmbH X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: Shared libs References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Alexandre Oliva wrote: > On May 8, 2000, Vinu V Nair wrote: > > Is it necessary that all shared libraries be executables? > It depends on the platform. Is it necessary on Linux ? I don't think so... -- -o) / Pascal Bleser ATOS Payment Systems| /\\ \ C++/UNIX Development Aachen, Germany| _\_v \ | ---------------------------------------------------| /earth is 98% full... please delete anyone you can.: ---------------------------------------------------' From gcc-help-return-2935-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 11:29:57 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 29531 invoked by alias); 8 May 2000 11:29:57 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 29501 invoked from network); 8 May 2000 11:29:55 -0000 Received: from unknown (HELO sohm.stpp.soft.net) (203.129.230.82) by sourceware.cygnus.com with SMTP; 8 May 2000 11:29:55 -0000 Received: from CITRIX1 ([192.10.10.6]) by sohm.stpp.soft.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id KQCTF62Y; Mon, 8 May 2000 17:02:00 +0530 Received: by CITRIX1 with Microsoft Mail id <01BFB90E.E1B8F960@CITRIX1>; Mon, 8 May 2000 17:00:15 +0530 Message-ID: <01BFB90E.E1B8F960@CITRIX1> From: Rakesh Nair To: "gcc-help@gcc.gnu.org" Subject: help on c++ sockets Date: Mon, 8 May 2000 17:00:14 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi all, Is there any library or header for sockets in c++/UNIX? Pls help.. Regards Rakesh. From gcc-help-return-2936-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 11:39:26 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 30450 invoked by alias); 8 May 2000 11:39:23 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 30413 invoked from network); 8 May 2000 11:39:13 -0000 Received: from ns.ikossvan.de (root@194.123.122.66) by sourceware.cygnus.com with SMTP; 8 May 2000 11:39:13 -0000 Received: from mail.ikossvan.de (limes.ikossvan.de [194.123.122.65]) by ns.ikossvan.de (8.9.3/8.9.3) with ESMTP id NAA18592 for ; Mon, 8 May 2000 13:38:46 +0200 Received: from [192.168.41.183] by mail.ikossvan.de (NTMail 4.20.0009/NU4601.00.2180fc9e) with ESMTP id ibpdbaaa for ; Mon, 8 May 2000 13:38:56 +0200 Message-ID: <3916A709.BBA1A781@atos-group.com> Date: Mon, 08 May 2000 13:37:45 +0200 From: Pascal Bleser Organization: ATOS GmbH X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: gcc Subject: Re: help on c++ sockets References: <01BFB90E.E1B8F960@CITRIX1> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Rakesh Nair wrote: > > Hi all, > > Is there any library or header for sockets in c++/UNIX? I've seen a libnet recently on freshmeat. I think that GNU Common C++ also has something like that. If not, you can still have a look at CoreLinux++ GNU Common C++: --------------- The Common C++ project has been merged with APE, and the combined project now uses the Common C++ name. Common C++ offers a highly portable application framework for threading, sockets, realtime network streaming, persistance, and file access. -> I think that's what you need ;-) URL: http://sourceforge.net/project/?group_id=1523 -- -o) / Pascal Bleser ATOS Payment Systems| /\\ \ C++/UNIX Development Aachen, Germany| _\_v \ | ---------------------------------------------------| /earth is 98% full... please delete anyone you can.: ---------------------------------------------------' From gcc-help-return-2937-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 12:23:53 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 5469 invoked by alias); 8 May 2000 12:23:52 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 5424 invoked from network); 8 May 2000 12:23:51 -0000 Received: from ny-bas05.csfb.com (198.240.130.70) by sourceware.cygnus.com with SMTP; 8 May 2000 12:23:51 -0000 Received: (from uucp@localhost) by ny-bas05.csfb.com (8.8.8/8.8.8/EXT) id IAA12432 for ; Mon, 8 May 2000 08:23:46 -0400 (EDT) Received: from unknown(169.37.98.44) by ny-bas05 via smap (V4.2) id xma011560; Mon, 8 May 00 08:23:19 -0400 Received: from 166.12.210.33 by snyc00708 with ESMTP (WorldSecure Server SMTP Relay(WSS) v4.3); Mon, 08 May 00 08:23:18 -0400 X-Server-Uuid: a46faee8-2a4f-11d3-9c63-00508b4fa69c Received: by slon00300 with Internet Mail Service (5.5.2448.0) id ; Mon, 8 May 2000 13:23:17 +0100 Message-ID: From: "Smith, Jack" To: "'gcc-help@gcc.gnu.org'" Subject: RE: libstdc++ included?. Date: Mon, 8 May 2000 13:22:52 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) X-WSS-ID: 15086E3F39677-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Oh good, it's not just me who finds this confusing !! I spent three days (in excess of 10 hours a day) working my way through setting up my C++ development environment on Linux. ( and it's still not quite the way I would like or expect it to be ) What follows is my documentation ( yes I have started documenting virtually everything I do no matter how picayune, since I have started working with Linux. This in the hopes that I can spare someone else the incredible feelings of inadequacy, low self worth, and intense frustration in their attempts to help bring Linux into the twenty first century . I remember reading somewhere, in some 'getting started with Linux' type of guide - when I was foolish enough to believe that they actually taught you anything about Linux - that you should document everything you do, Now I know why; they were hoping someone else would actually write some worthwhile documentation so that they could figure out how to use their system - .) I started here: http://www.gnu.org/software/software.html well, actually here http://www.gnu.org but I thought I would save the hassle of trying to figure out how to get there from the main page. (hint, every other site on the internet uses the word 'download' to try to help you find a download, but at GNU you follow the link called 'software'), the word download doesn't appear on the main page. I am looking for a C++ compiler search this page for the word compiler OK first I find a Simula compiler (Cim) then I get to 'GCC is a free compiler collection for C, C++, Objective C and other languages.' Hmm... that doesn't look quite right either, what's a 'compiler collection', and what do other languages have to do with a C++ compiler This must not be what I am looking for either. Continuing the search I discover that there are no other C++ compilers available from this sight Hmm.... maybe I was wrong, maybe you can't get the C++ compiler from GNU, maybe it is available from somewhere else on the internet (about an hour wasted here searching for the compiler) Eventually I grok that gcc is in fact the C++ compiler. It just so happens that it is also able to compile other languages as well. Rather than staying with the idea that one builds small utilities to do specific tasks, we now have a compiler which is also a linker, and compiles and links many languages. Ahh....... I'll go back to the GNU web site and get it from there. browsing my way to this page: ftp://gcc.gnu.org/pub/gcc/releases/index.html I am again confused. What do I need to download in order to be able to compile and link C++ ??, I 'm not interested in Fortran, Java, Chill, or Objective C I guess I need the C++ distribution. But wait, what' this thing called 'Core compiler distribution...', I wonder if I need that too. (Yes, is the quick answer ) Where on this page is it made clear what exactly is required to compile C++ code. Jeez, 8.7 Meg zipped up, I thought Microsoft were the masters of bloat, their compiler and linker ( not all the gui, and other stuff, just the compiler and linker ) weighs in at less than 4 meg, unzipped. Ok, (an hour later) I've got it. Now, which C++ library version is it compatible with ???? And, why aren't there any links to them, surely the C++ compiler is of very little use without a C++ library to use with it. ( Or do these guys really think I write all my own class libraries, and don't take advantage of the standard C++ library. When was the last time you wrote your own istream_withassign ??.) So back to the GNU software index page. O.K. Search for libg++, hmm .... no match, O.K. how about glibc No match there either. How is that possible, glibc is to Linux what cement is to concrete (for those of you who have not experienced the joy of working with concrete, mortar, or other ingenious Roman recopies, you don't know what your missing), and I can't find it on GNUs sight. How can that be. Ahh, I wonder if I managed to get this as a part of the GCC download. Oh... there it is, under libstdc++ I think. No, it's just the headers. What is the use of the headers without the libraries. Or, Am I again not understanding something, maybe I will read every readme file regardless of it's location, hoping to find a snippet of addition information. Well, that didn't help any. It's back to yahoo, to search for libg++ Hmm... that's really weird, here is a site that clearly labels libg++, and it's even in a subdirectory called gnu, why couldn't GNU do that. Hmm.. look at that, a readme file, this indicates that I should be searching for libstdc++ back to yahoo Hey look, here' s a link that looks promising !! http://sourceware.cygnus.com/libstdc++/ Why are Cygnus the source for the standard c++ library, Cygnus is run by Redhat, why isn't GNU (The Free Software Foundation) doing this ?!?!? Oh, I forgot to get the debugger. That is the one thing that is easy to find on GNU's site. in case you didn't think of the highly meaningful name gdb ( what's wrong with c++debugger, its only eleven characters long, and you can always create a sym link or alias so that you only have to type 'gdb', or 'g' for that matter, but wait, 'g', that's going a bit too far isn't it ) oops, wait a minute, I can see 'gdb is a source-level debugger for C, C++ and Fortran.' but when I follow the link to here: http://www.gnu.org/software/gdb/gdb.html , I can't find anything to download. Oh, that's because it comes with the 'Core compiler distribution' . How strange, perhaps my understanding of the meaning of the word 'core' could use a little refreshing. A quick jump here http://www.m-w.com/dictionary.htm and what do I get when I look up core. 1 : a central and often foundational part usually distinct from the enveloping part by a difference in nature or even better 2 b: the essential meaning Thanks Webster's GNU uses 'Core compiler' to mean this: 'various GNU compilers, assemblers, linkers, debuggers, etc., plus their support routines, definitions, and documentation.' Doesn't sound at all like 'core' to me. I have written to the Free Software Foundation regarding the shocking state of the ftp directory tree, as well as the descriptions and preliminary documentation for the various applications and utilities available there. It seems that there is a small group of people, in control of such issues, who feel that since they had to spend a significant portion of their lives figuring all these things out, that everyone else ought to have to do the same. I am a proponent of sharing information, not hiding it, and so don't quite understand why this group of people, who claim to be all about 'openness' make so little effort to be 'open'. It is indeed a sad state of affairs that there are a very large number of experienced software developers willing to donate their time and talent to the free/open software movement, who are effectively prevented from doing so, in a manner very similar to the way that Microsoft was found to have effectively prohibited competition in the PC market. (See:http://www.microsoft.com/presspass/trial/col/col.asp) Whereas Microsoft was found to have maintained the barrier to entry into the PC software, and Operating System market; in this case the barrier to entry is a lack of clearly labelled, simple, adequate, accurate documentation. This is perhaps the main tool used by a select group to maintain their status (rank) within the 'Gift Culture' of the Open Source Bazaar. Since they have the knowledge you need, they can provide little 'gifts' of that knowledge. thus reinforcing the association between the joy you experience from receiving that knowledge and your esteem of the individual bearing that knowledge. This helps to ensure their rank is maintained. Many of them will take great offence to these statements, but their actions indicate that in fact this is the case. Had these people been truly interested in sharing their knowledge, and providing easily assessable open source/free software they would have expended a great deal more effort in the one area that you, me, and almost everyone else in our positions have recognised as the weak point: Documentation. The single most difficult aspect for me in trying to come to terms with software development under Linux has been attempting to find what I consider to be very basic information. Just wait until I start trying to write programs, I am sure I'll love the documentation for the Linux Native File System- cleverly called ext2 ( why not efs2 or extfs2; every other major file system has the letter 'fs' in it's name ( NTFS, NFS, HPFS), or Synchronisation Objects, or Threads. I think it's great that all these people love to churn out free software, but please everyone, write some documentation, otherwise I won't know how to use it ! > -----Original Message----- > From: Ivan Martinez [SMTP:ex08@kalman.iau.dtu.dk] > Sent: 07 May 2000 20:19 > To: llewelly@dbritsch.dsl.xmission.com > Cc: gcc-help@gcc.gnu.org > Subject: Re: libstdc++ included?. > > llewelly@dbritsch.dsl.xmission.com wrote: > > > > On Sat, 6 May 2000, Ivan Martinez wrote: > > > > > Hello all, > > > > > How should I install this C++ distribution?. > > > > See http://gcc.gnu.org/install/index.html > > > I had a look at it and I saw that they are the typical compilation > and > installaction instructions (./configure, make, make install), which I > already knew. > After downloading "GCC 2.95.2, gzip format, 1.6Meg" below "C++ > distribution and updates to C++ distribution" in > "gcc.gnu.org/pub/gcc/releases/index.html", I untar it and get a > "gcc-2.95.2" directory. My problem is that under that directory there > isn't a "configure" file, so this package doesn't follow the common > installation way. There are three other directories, "gcc", "libio" and > "libstdc++". I look for "configure" with a file searcher without > success. > What am I doing wrong?. Many thanks. > > > Keep in mind that the instructions are the same, whichever gcc source > > tarball you use; only the result differs. And you always get the C > > frontend. > > > > > Is there any configuration > > > file stablishing GCC's default include directories?. Thank you. > > > > > -- > Ivan Martinez (Rodriguez) > BEng in Software Engineering - MEng student > http://www.student.dtu.dk/~u990873 > "Got fabes?" This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. CREDIT SUISSE GROUP and each of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of any such entity. From gcc-help-return-2938-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 12:36:08 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 9420 invoked by alias); 8 May 2000 12:36:08 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 9385 invoked from network); 8 May 2000 12:36:06 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 8 May 2000 12:36:06 -0000 Received: from zecarneiro.lsd.ic.unicamp.br (IDENT:oliva@zecarneiro.lsd.ic.unicamp.br [143.106.24.141]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id JAA00681; Mon, 8 May 2000 09:35:59 -0300 To: Pascal Bleser Cc: gcc-help@gcc.gnu.org Subject: Re: Shared libs References: <39169DA3.27114FB2@atos-group.com> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 08 May 2000 09:35:58 -0300 In-Reply-To: Pascal Bleser's message of "Mon, 08 May 2000 12:57:39 +0200" Message-ID: Lines: 17 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 8, 2000, Pascal Bleser wrote: > Alexandre Oliva wrote: >> On May 8, 2000, Vinu V Nair wrote: >> > Is it necessary that all shared libraries be executables? >> It depends on the platform. > Is it necessary on Linux ? > I don't think so... I don't think it's necessary, but it's common practice. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-2939-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 12:51:43 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 24660 invoked by alias); 8 May 2000 12:51:41 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 24619 invoked from network); 8 May 2000 12:51:27 -0000 Received: from ns.ikossvan.de (root@194.123.122.66) by sourceware.cygnus.com with SMTP; 8 May 2000 12:51:27 -0000 Received: from mail.ikossvan.de (limes.ikossvan.de [194.123.122.65]) by ns.ikossvan.de (8.9.3/8.9.3) with ESMTP id OAA19054 for ; Mon, 8 May 2000 14:50:35 +0200 Received: from [192.168.41.183] by mail.ikossvan.de (NTMail 4.20.0009/NU4601.00.2180fc9e) with ESMTP id uipdbaaa for ; Mon, 8 May 2000 14:50:46 +0200 Message-ID: <3916B7DF.A588EB93@atos-group.com> Date: Mon, 08 May 2000 14:49:35 +0200 From: Pascal Bleser Organization: ATOS GmbH X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: "Smith, Jack" CC: gcc Subject: Re: libstdc++ included?. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Smith, Jack" wrote: ... a lot of stuff... Well, you definately wanted to have it the hard way... You certainly bought or downloaded a Linux distribution, didn't you ? Why didn't you just install the packages for g++ and binutils ?? (GCC = GNU Compiler Collection) (binutils = ld (linker), gdb (debugger), ...) It takes about 5' to do so, and you're ready to go. If you also need a good development environment, you can check out KDevelop, Moonlite or... Emacs :-) Ok, TakeFive's SNiFF+ is one of the most powerful and it's totally free (and almost without limitations - at least none in size of projects or anything like that) for Linux (the "Penguin IDE" edition), even for commercial use (!), but you should read the manuals and get used to it a little (it's really very powerful). If you want to develop in C++ and eventually build GUIs (KDE or GNOME - but for GNOME, you'd have to download the brand-new KDevelop... and it's big :\ ), you really should have a look at KDevelop - it's great! :) (even for console C++ stuff) For example: SuSE Linux 6.4 ships with GCC 2.95.2 (the latest stable release of the GNU Compiler Collection with C, C++, Java, Objective C, ...), KDevelop and TakeFive's SNiFF+/Penguin IDE. It really doesn't take you more than 10' to install those packages and to get yourself a ass-kicking development box. BTW: - you really don't need to download and build the glibc yourself: if you didn't already have one installed, you couldn't run your Linux ;) - libstdc++ - only headers ? Well, the STL consists only of templates and classes with inline methods (because the methods are always very small and inlining definately makes them much faster). And also: it's really ok that you criticize certain things: that's what makes them get better, but please make *constructive* critics. No need to compare Linux with M$ all the time: it's something completely different, 'nuff said. Keep on working with Linux: the more time you spend on it, the more you'll learn... and the less you'll want to get back to windows (believe me). -- -o) / Pascal Bleser ATOS Payment Systems| /\\ \ C++/UNIX Development Aachen, Germany| _\_v \ | ---------------------------------------------------| /earth is 98% full... please delete anyone you can.: ---------------------------------------------------' From gcc-help-return-2940-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 13:38:52 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 1025 invoked by alias); 8 May 2000 13:38:51 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 945 invoked from network); 8 May 2000 13:38:48 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 8 May 2000 13:38:48 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id 1561C12105; Mon, 8 May 2000 07:39:06 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id 5F44D12104; Mon, 8 May 2000 07:39:06 -0600 (MDT) Date: Mon, 8 May 2000 07:39:06 -0600 (MDT) From: To: Pascal Bleser Cc: "Smith, Jack" , gcc Subject: Re: libstdc++ included?. In-Reply-To: <3916B7DF.A588EB93@atos-group.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII [snip] > - libstdc++ - only headers ? Well, the STL consists only of templates > and > classes with inline methods (because the methods are always very small > and inlining definately makes them much faster). > Actually, libstdc++, when built, contains static and shared libraries as well as headers. The library is only mostly templates, and some of these templates, like std::string, std::ostream, std::fstream, etc are commonly used, so there is a benefit to putting instantiations of these templates in a library. As for getting libstdc++, libstdc++-v2 is packaged with gcc 2.95.2's c++ front end. If you get the gcc-2.95.2.tar.gz tarball, you have libstdc++-v2 . If you get the gcc-core-2.95.2.tar.gz and gcc-g++-2.95.2.tar.gz tarballs (you do need both them, despite what I told another poster a few days ago), you also have libstdc++-v2 . sourceware.cygnus.com/libstdc++ is the home page for libstdc++-v3. libstdc++-v3 has many important bugfixes and improvements over libstdc++-v2, and it may be the standard c++ lib for the next version of gcc .... but it is still experimental right now. Note that libg++ is obsolete, and unecessary for almost all c++ programs. As for Jack Smith, it is unfortunate he had such a bad experience, but I do not understand how to help him. [snip] From gcc-help-return-2941-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 08 14:28:21 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 19028 invoked by alias); 8 May 2000 14:28:20 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 18970 invoked from network); 8 May 2000 14:28:19 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 8 May 2000 14:28:19 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id QAA27117; Mon, 8 May 2000 16:21:10 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id QAA01128; Mon, 8 May 2000 16:16:59 +0200 Date: Mon, 8 May 2000 16:16:59 +0200 Message-Id: <200005081416.QAA01128@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: jack.smith@csfb.com CC: gcc-help@gcc.gnu.org In-reply-to: (jack.smith@csfb.com) Subject: Re: libstdc++ included?. References: User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > I spent three days (in excess of 10 hours a day) working my way through > setting up my C++ development environment on Linux. ( and it's still not > quite the way I would like or expect it to be ) I won't comment on how you spent your time, and how you could have reduced that. Instead, I'll just try to correct the misunderstandings that you still may have. > Eventually I grok that gcc is in fact the C++ compiler. It just so happens > that it is also able to compile other languages as well. Rather than staying > with the idea that one builds small utilities to do specific tasks, we now > have a compiler which is also a linker, and compiles and links many > languages. While gcc is indeed a compiler for many languages, it is not a linker. Instead, it invokes the linker. Technically, each piece of the compiler supports a single language, only, so there is a single tool for compiling C, one for C++, etc. It just happens that gcc invokes the appropriate compiler (and assembler and linker), instead of requiring the user to do so. It also happens that the C++ compiler itself is not a "small utility", either. > Where on this page is it made clear what exactly is required to compile C++ > code. That's a question, right? As a matter of fact, so far nobody reported a problem with understanding that page. However, if you had looked at http://www.gnu.org/software/gcc/install/download.html (directly reachable from gcc.gnu.org, at "Downloading"), it is right there: # If you choose to download specific components, you must download the # core gcc distribution plus any language specific distributions you # wish to use. > Jeez, 8.7 Meg zipped up, I thought Microsoft were the masters of > bloat, their compiler and linker ( not all the gui, and other stuff, > just the compiler and linker ) weighs in at less than 4 meg, > unzipped. You may have noticed that you got the source code of the compiler. I won't guess what size the source code of Visual C++ has; the binary C++ compiler, on my system, has 2.7MB; assembler and linker add another 1MB. > Or, Am I again not understanding something, maybe I will read every readme > file regardless of it's location, hoping to find a snippet of addition > information. Had you read the download instructions, you had noticed # Each language has a tarball which includes the language front-end as # well as the language runtime (when appropriate). > Why are Cygnus the source for the standard c++ library, Cygnus is run by > Redhat, why isn't GNU (The Free Software Foundation) doing this ?!?!? The Free Software Foundation is not developing any software by itself; instead, it is the contributors that actually write the stuff. Since this library is not completed at all, it is not being distributed by the FSF. That will change in gcc 3. > but when I follow the link to here: http://www.gnu.org/software/gdb/gdb.html > , I can't find anything to download. In case you still did not find it, perhaps the link http://www.gnu.org/software/software.html#HowToGetSoftware had helped, which leads you to an ftp server near you. Since you found that the debugger is called "gdb", it would have been easy to locate its source on any of the FTP mirrors. > Oh, that's because it comes with the 'Core compiler distribution' . No, the debugger does not come with the compiler. GCC is a compiler, not a debugger. > GNU uses 'Core compiler' to mean this: > 'various GNU compilers, assemblers, linkers, debuggers, etc., plus their > support routines, definitions, and documentation.' No, we don't. We use "Core compiler" to mean: "compiler infrastructure for optimization and generation of assembler code for various targets, including support for only the C language". > It seems that there is a small group of people, in control of such issues, > who feel that since they had to spend a significant portion of their lives > figuring all these things out, that everyone else ought to have to do the > same. Your impression is incorrect. While there is a small group of people actually contributing to the compiler, this group has never rejected contributions to documentation, to my knowledge. > I am a proponent of sharing information, not hiding it, and so don't > quite understand why this group of people, who claim to be all about > 'openness' make so little effort to be 'open'. Openness mainly means that everybody is free to contribute, and free to use the contributions of others. So if you think there is something wrong with the Web pages, specific donations (of HTML, in this case) would be welcome. > It is indeed a sad state of affairs that there are a very large > number of experienced software developers willing to donate their > time and talent to the free/open software movement, who are > effectively prevented from doing so, in a manner very similar to the > way that Microsoft was found to have effectively prohibited > competition in the PC market. This is not the state of affairs. People very rarely have problems installing gcc for the first time. Most first-time users get it with their Linux distribution, and don't need to worry with downloading and installing it themselves. Normally, only experienced users have the desire to build the compiler themselves, and the documentation mainly addresses this group. As I said, if other documentation is contributed, it likely won't be rejected. > in this case the barrier to entry is a lack of clearly labelled, > simple, adequate, accurate documentation. That is not lacking. If you obtain a good Linux distribution, it will normally include clearly-labelled tools for software development. They are typically labelled "development", and installing them will give you a GCC installation out of the box. Furthermore, I think the GCC manual should get most users started. > I think it's great that all these people love to churn out free > software, but please everyone, write some documentation, otherwise I > won't know how to use it ! I'm not sure what you are trying to achieve with such a flame-bait letter. I question the claim that there is no "basic" documentation available for Linux. I believe there is a number of introductory books; some of those are included with Linux distributions. If you can't use online documentation (as your consistent failure to look in the "right" place indicates), perhaps you are better off with printed documentation? Regards, Martin From gcc-help-return-2942-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 01:17:55 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 12130 invoked by alias); 9 May 2000 01:17:53 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 12071 invoked from network); 9 May 2000 01:17:51 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 9 May 2000 01:17:51 -0000 Received: from ups.cisco.com (ups.cisco.com [171.69.18.21]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id VAA07144; Mon, 8 May 2000 21:17:44 -0400 Received: from debalasu-nt (dhcp-10-34-17-26.cisco.com [10.34.17.26]) by ups.cisco.com (8.8.8/2.6/Cisco List Logging/8.8.8) with ESMTP id SAA12578; Mon, 8 May 2000 18:17:12 -0700 (PDT) Message-Id: <4.2.0.58.20000508180836.00a5d5f0@ups.cisco.com> X-Sender: dmenon@ups.cisco.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Mon, 08 May 2000 18:16:51 -0700 To: bug-gcc@gnu.org, help-gcc@gnu.org From: Deepa Menon Subject: Switching from 16bit to 32 bit mode Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Hi , I have a piece of assembly code which starts up in 16bit mode and then is suppossed to go into 32bit mode. The GNU help says to use .code16 directive to indicate to the compiler that we are currently in 16bit mode and to then use .code32 when we are ready to switch to 32 bit mode. However the .code32 dose not appear to be working in the above usage. A whole lot of junk instructions are generated upon using the .code32 and the code crashes. Could someone please point me to the correct way of using it?? Any help will be highly appreciated. Thanks, Deepa ************************************************** Deepa Menon Software Engineer, Cisco Systems (408) 853-7723 ************************************************** From gcc-help-return-2943-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 04:50:07 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 30518 invoked by alias); 9 May 2000 04:50:07 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 30487 invoked from network); 9 May 2000 04:50:06 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 9 May 2000 04:50:06 -0000 Received: from sohm.stpp.soft.net ([203.129.230.82]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id AAA25490 for ; Tue, 9 May 2000 00:46:53 -0400 Received: from CITRIX1 ([192.10.10.6]) by sohm.stpp.soft.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id KSFG47YJ; Tue, 9 May 2000 09:56:52 +0530 Received: by CITRIX1 with Microsoft Mail id <01BFB99C.A8FB6E30@CITRIX1>; Tue, 9 May 2000 09:55:09 +0530 Message-ID: <01BFB99C.A8FB6E30@CITRIX1> From: Rakesh Nair To: "'help-gcc@gnu.org'" Subject: help on installation of gcc Date: Tue, 9 May 2000 09:55:08 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, While installing gcc on SunOS I encountered the following problem. For building the package a command 'make bootstrap' was specified in = the documentation.But the file bootstrap is not present in the basic = directory ie gcc-2.95.2.. How to get the bootstrap file? Pls help Rakesh.. From gcc-help-return-2944-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 10:00:45 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 17748 invoked by alias); 9 May 2000 10:00:43 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 17708 invoked from network); 9 May 2000 10:00:38 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 9 May 2000 10:00:38 -0000 Received: from sohm.stpp.soft.net ([203.129.230.82]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id GAA27935 for ; Tue, 9 May 2000 06:00:28 -0400 Received: from CITRIX1 ([192.10.10.6]) by sohm.stpp.soft.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id KSFG498S; Tue, 9 May 2000 15:32:33 +0530 Received: by CITRIX1 with Microsoft Mail id <01BFB9CB.90922620@CITRIX1>; Tue, 9 May 2000 15:30:54 +0530 Message-ID: <01BFB9CB.90922620@CITRIX1> From: Rakesh Nair To: "'help-gcc@gnu.org'" Subject: help on vi Date: Tue, 9 May 2000 15:30:53 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I have installed vi on my terminal My terminal type is ansi. But for moving my cursor I still have to use h ,,j ,k ,l keys instead = of my arrow keys. But I have noticed on certain other unix systems that arrow keys are = used for this purpose. Which file should I modify & how should I do it? Any immediate help will be highly appreciated... Thnks Rakesh From gcc-help-return-2945-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 10:11:35 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 20425 invoked by alias); 9 May 2000 10:11:33 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 20387 invoked from network); 9 May 2000 10:11:25 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 9 May 2000 10:11:25 -0000 Received: from kalman.iau.dtu.dk (root@kalman.iau.dtu.dk [192.38.66.22]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id GAA28147 for ; Tue, 9 May 2000 06:11:19 -0400 Received: from kalman.iau.dtu.dk (pc120.iau.dtu.dk [192.38.66.220]) by kalman.iau.dtu.dk (8.8.6 (PHNE_17135)/8.8.6) with ESMTP id MAA05881 for ; Tue, 9 May 2000 12:11:16 +0200 (METDST) Message-ID: <391800F0.54DED439@kalman.iau.dtu.dk> Date: Tue, 09 May 2000 14:13:36 +0200 From: Ivan Martinez Reply-To: ivan_m_r@email.com X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14-15mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: help-gcc@gnu.org Subject: help-gcc? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello all: I remember to have subscribed to gcc-help@gcc.gnu.org, but not to this list. When you subscribe to "gcc-help" in "www.gnu.org/software/gcc/lists.html" you subscribe to both?. If not, who can I unsubscribe from this one?. Thank you. -- Ivan Martinez (Rodriguez) BEng in Software Engineering - MEng student http://www.student.dtu.dk/~u990873 "Got fabes?" From gcc-help-return-2946-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 10:22:08 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 22984 invoked by alias); 9 May 2000 10:22:08 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 22954 invoked from network); 9 May 2000 10:22:07 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 9 May 2000 10:22:07 -0000 Received: from ns.ikossvan.de (root@ns.ikossvan.de [194.123.122.66]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id GAA28419 for ; Tue, 9 May 2000 06:22:03 -0400 Received: from mail.ikossvan.de (limes.ikossvan.de [194.123.122.65]) by ns.ikossvan.de (8.9.3/8.9.3) with ESMTP id MAA30379 for ; Tue, 9 May 2000 12:21:47 +0200 Received: from [192.168.41.183] by mail.ikossvan.de (NTMail 4.20.0009/NU4601.00.2180fc9e) with ESMTP id whrdbaaa for ; Tue, 9 May 2000 12:21:54 +0200 Message-ID: <3917E67B.B6CF1AA9@atos-group.com> Date: Tue, 09 May 2000 12:20:43 +0200 From: Pascal Bleser Organization: ATOS GmbH X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: Rakesh Nair CC: "'help-gcc@gnu.org'" Subject: Re: help on vi References: <01BFB9CB.90922620@CITRIX1> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Rakesh Nair wrote: ... > But for moving my cursor I still have to use h ,,j ,k ,l keys instead of my arrow keys. > But I have noticed on certain other unix systems that arrow keys are used for this purpose. Which file should I modify & how should I do it? > Any immediate help will be highly appreciated... In fact, it depends on *which* vi you have installed. Take vim or elvis, they rock ;) If you have Linux, they're certainly both shipped with your distribution. If not, download the sources and compile... http://freshmeat.net/search.php3?query=vim http://freshmeat.net/search.php3?query=elvis -- -o) / Pascal Bleser ATOS Payment Systems| /\\ \ C++/UNIX Development Aachen, Germany| _\_v \ | ---------------------------------------------------| /earth is 98% full... please delete anyone you can.: ---------------------------------------------------' From gcc-help-return-2947-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 10:26:05 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23706 invoked by alias); 9 May 2000 10:26:05 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23676 invoked from network); 9 May 2000 10:26:03 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 9 May 2000 10:26:03 -0000 Received: from dbritsch.dsl.xmission.com (dbritsch.dsl.xmission.com [166.70.156.242]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id GAA29272 for ; Tue, 9 May 2000 06:25:59 -0400 From: llewelly@dbritsch.dsl.xmission.com Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id CEF2412105; Tue, 9 May 2000 04:26:18 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id 2575912104; Tue, 9 May 2000 04:26:18 -0600 (MDT) Date: Tue, 9 May 2000 04:26:17 -0600 (MDT) To: ivan_m_r@email.com Cc: help-gcc@gnu.org Subject: Re: help-gcc? In-Reply-To: <391800F0.54DED439@kalman.iau.dtu.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 9 May 2000, Ivan Martinez wrote: > Hello all: > I remember to have subscribed to gcc-help@gcc.gnu.org, but not to this > list. When you subscribe to "gcc-help" in > "www.gnu.org/software/gcc/lists.html" you subscribe to both?. If not, > who can I unsubscribe from this one?. Thank you. > help-gcc == gcc-help They are the same list. Most of the gnu lists have 2, 3, 4, or 12 names. From gcc-help-return-2948-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 10:57:03 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 30215 invoked by alias); 9 May 2000 10:57:02 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 30177 invoked from network); 9 May 2000 10:56:59 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 9 May 2000 10:56:59 -0000 Received: from dbritsch.dsl.xmission.com (dbritsch.dsl.xmission.com [166.70.156.242]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id GAA01846 for ; Tue, 9 May 2000 06:56:55 -0400 From: llewelly@dbritsch.dsl.xmission.com Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id 7EA7612105; Tue, 9 May 2000 04:57:15 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id 0EE0812104; Tue, 9 May 2000 04:57:15 -0600 (MDT) Date: Tue, 9 May 2000 04:57:14 -0600 (MDT) To: Rakesh Nair Cc: "'help-gcc@gnu.org'" Subject: Re: help on vi In-Reply-To: <01BFB9CB.90922620@CITRIX1> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 9 May 2000, Rakesh Nair wrote: > Hi, > > > I have installed vi on my terminal > > My terminal type is ansi. > > But for moving my cursor I still have to use h ,,j ,k ,l keys instead of my arrow keys. > > But I have noticed on certain other unix systems that arrow keys are used for this purpose. Which file should I modify & how should I do it? > > Any immediate help will be highly appreciated... > This list is for help with gcc. This question is unrelated to gcc. It should have been sent to a vi help forum, like vim@vim.org, or the newsgroup comp.editors. (Many people on this list use emacs, kdevelop, ed, cat, or some other editor, and (like me) cannot answer vi questions.) I believe Pascal Bleser answered your question. [snip] From gcc-help-return-2949-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 11:14:05 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 412 invoked by alias); 9 May 2000 11:14:04 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 375 invoked from network); 9 May 2000 11:14:03 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 9 May 2000 11:14:03 -0000 Received: from smtp.mail.yahoo.com (smtp.mail.yahoo.com [128.11.68.32]) by mescaline.gnu.org (8.9.1a/8.9.1) with SMTP id HAA03259 for ; Tue, 9 May 2000 07:13:59 -0400 Received: from unknown (HELO ws2) (203.197.178.237) by smtp.mail.yahoo.com with SMTP; 9 May 2000 04:13:52 -0700 X-Apparently-From: Message-ID: <001101bfb9a8$61da6450$330100c8@ws2> From: "Mahadev Cholachgudda" To: "Rakesh Nair" Cc: Subject: Re: help on vi Date: Tue, 9 May 2000 16:48:47 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 hello, u have to set the environment variable TERM and have to export it to child shells. follow the below procedure. in ur .profile file append the following. TERM=vt100 export TERM save the file and logout. again login to the linux, open vi and try the arrow keys. regards mahadev -----Original Message----- From: Rakesh Nair To: 'help-gcc@gnu.org' Date: Tuesday, May 09, 2000 3:30 PM Subject: help on vi Hi, I have installed vi on my terminal My terminal type is ansi. But for moving my cursor I still have to use h ,,j ,k ,l keys instead of my arrow keys. But I have noticed on certain other unix systems that arrow keys are used for this purpose. Which file should I modify & how should I do it? Any immediate help will be highly appreciated... Thnks Rakesh __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From gcc-help-return-2950-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 11:15:04 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 773 invoked by alias); 9 May 2000 11:15:03 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 743 invoked from network); 9 May 2000 11:15:03 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 9 May 2000 11:15:03 -0000 Received: from dbritsch.dsl.xmission.com (dbritsch.dsl.xmission.com [166.70.156.242]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id HAA03281 for ; Tue, 9 May 2000 07:15:00 -0400 From: llewelly@dbritsch.dsl.xmission.com Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id 9799112105; Tue, 9 May 2000 05:15:20 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id 2824612104; Tue, 9 May 2000 05:15:20 -0600 (MDT) Date: Tue, 9 May 2000 05:15:20 -0600 (MDT) To: Rakesh Nair Cc: "'help-gcc@gnu.org'" Subject: Re: help on installation of gcc In-Reply-To: <01BFB99C.A8FB6E30@CITRIX1> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 9 May 2000, Rakesh Nair wrote: > Hi, > > While installing gcc on SunOS I encountered the following problem. > > For building the package a command 'make bootstrap' was specified in > the documentation.But the file bootstrap is not present in the basic > directory ie gcc-2.95.2.. > > How to get the bootstrap file? You do not need a file called 'bootstrap'. 'bootstrap' is a parameter that tells make what to do; that is, it tells make to bootstrap the compiler. [snip] From gcc-help-return-2951-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 12:16:14 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 8785 invoked by alias); 9 May 2000 12:16:13 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 8745 invoked from network); 9 May 2000 12:16:01 -0000 Received: from kermit.ss.pub.ro (141.85.252.99) by sourceware.cygnus.com with SMTP; 9 May 2000 12:16:01 -0000 Received: (qmail 20111 invoked from network); 9 May 2000 12:13:47 -0000 Received: from adita.cs.pub.ro (HELO adita) (141.85.37.56) by kermit.ss.pub.ro with SMTP; 9 May 2000 12:13:47 -0000 Message-ID: <006301bfb9b0$be09a8f0$3825558d@cs.pub.ro> From: "Senti" To: "gcc-help" Subject: profiling question Date: Tue, 9 May 2000 15:18:53 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0060_01BFB9C9.E31B5E90" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 x-mimeole: Produced By Microsoft MimeOLE V5.00.2919.6600 This is a multi-part message in MIME format. ------=_NextPart_000_0060_01BFB9C9.E31B5E90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello I'm building a gcc cross-comiler for an processor. What i wanted was to add some code for profiling. I have written the two macros related to basic block profiling : #define BLOCK_PROFILER(FILE, BLOCKNO) #define FUNCTION_BLOCK_PROFILER(FILE, BLOCK_OR_LABEL) but when i try compiling a program using -ax option gcc is saying : cc1: warning: '-ax' option (jump profiling) not supported What should i do for enabling -ax option. Should i write something else = too into gcc ? Thanks in advance, Adrian. ------=_NextPart_000_0060_01BFB9C9.E31B5E90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello
I'm building a gcc cross-comiler for an = processor.
What i wanted was to add some code for=20 profiling.
I have written the two macros related = to basic=20 block profiling :

#define BLOCK_PROFILER(FILE, BLOCKNO)

#define = FUNCTION_BLOCK_PROFILER(FILE,=20 BLOCK_OR_LABEL)

but when i try compiling a program = using -ax=20 option gcc is saying :

cc1: warning: '-ax' option (jump = profiling) not=20 supported

What should i do for enabling -ax = option.=20 Should i write something else too into gcc ?

Thanks in advance, = Adrian.

------=_NextPart_000_0060_01BFB9C9.E31B5E90-- From gcc-help-return-2952-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 14:51:23 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 21520 invoked by alias); 9 May 2000 14:51:23 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 21436 invoked from network); 9 May 2000 14:51:18 -0000 Received: from mc-qout4.whowhere.com (209.185.123.18) by sourceware.cygnus.com with SMTP; 9 May 2000 14:51:18 -0000 Received: from Unknown/Local ([?.?.?.?]) by my-deja.com; Tue May 9 07:50:39 2000 To: gcc-help@gcc.gnu.org Date: Tue, 09 May 2000 07:50:39 -0700 From: "George Adams" Message-ID: Mime-Version: 1.0 X-Sent-Mail: off Reply-To: learningapache@my-Deja.com X-Mailer: MailCity Service Subject: Installing gcc/g++: where did I go wrong? X-Sender-Ip: 199.72.184.69 Organization: My Deja Email (http://www.my-deja.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Transfer-Encoding: 7bit I THOUGHT I knew how to do this, and I thought the docs were pretty clear. But after several hours of utterly failing to solve this, I'm turning to those who can probably easily figure out where I went wrong. I'm trying to install gcc/g++ on a SunOS 5.6 box. I downloaded the full gcc-2.95.tar.gz distribution (12meg), unpacked it into /tmp/gcc- 2.95, and did the following: > cd /tmp > mkdir gccobj > cd gccobj > ../gcc-2.95/configure --prefix=/home/gawhite/gcc > make bootstrap > make install After many hours, the compilation and installation finished. I tested gcc on a "Hello world" C program - no problems there. But when I tried g++, I got this: > /home/gawhite/gcc/bin/g++ /tmp/test.cc ld: fatal: library -lstdc++: not found ld: fatal: File processing errors. No output written to a.out collect2: ld returned 1 exit status I'm not really much of a C/C++ programmer, but I seem to recall that this indicates g++ is looking for, and not finding, a file called "libstdc++.a" or "libstdc++.so". At any rate, the only "lib*" files I could find in /home/gawhite/gcc were: /home/gawhite/gcc/lib/gcc-lib/sparc-sun-solaris2.6/2.95/libgcc.a /home/gawhite/gcc/lib/libiberty.a /home/gawhite/gcc/include/g++-3/libio.h /home/gawhite/gcc/include/g++-3/libioP.h Now, I see that in /tmp/gcc-2.95, there ARE a number of "lib*" directories: /tmp/gcc-2.95/libchill/ /tmp/gcc-2.95/libf2c/ /tmp/gcc-2.95/libiberty/ /tmp/gcc-2.95/libio/ /tmp/gcc-2.95/libobjc/ /tmp/gcc-2.95/libstdc++/ but in /tmp/gccobj, there are only these: /tmp/gccobj/gcc /tmp/gccobj/libiberty /tmp/gccobj/libio so it seems that the libstdc++ (and maybe other) libraries I need are never being built and/or installed. I didn't THINK I had to specify which languages I wanted to use when I ran the "configure" command - the docs indicate that if I don't specify the "--enable_languages" flag, that "all languages available in the gcc sub-tree will be configured." So where did I go wrong? Thanks to anyone who can help! --== Sent via Deja.com http://www.deja.com/ ==-- Before you buy. From gcc-help-return-2953-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 16:41:06 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 20797 invoked by alias); 9 May 2000 16:41:06 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 20750 invoked from network); 9 May 2000 16:40:58 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 9 May 2000 16:40:58 -0000 Received: from zecarneiro.lsd.ic.unicamp.br (IDENT:oliva@zecarneiro.lsd.ic.unicamp.br [143.106.24.141]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id NAA11531; Tue, 9 May 2000 13:40:41 -0300 To: learningapache@my-Deja.com Cc: gcc-help@gcc.gnu.org Subject: Re: Installing gcc/g++: where did I go wrong? References: From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 09 May 2000 13:40:40 -0300 In-Reply-To: "George Adams"'s message of "Tue, 09 May 2000 07:50:39 -0700" Message-ID: Lines: 15 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 9, 2000, "George Adams" wrote: > After many hours, the compilation and installation finished. >From your description, it would seem to me that compilation didn't finish successfully, and it ended up installing just what it had built. Try `make bootstrap3' to make sure. If this fails, complaining that stage2/xgcc doesn't exist, try `make bootstrap2' or just `make bootstrap' again. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-2954-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 17:37:19 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 6559 invoked by alias); 9 May 2000 17:37:18 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 6529 invoked from network); 9 May 2000 17:37:17 -0000 Received: from mc-qout4.whowhere.com (209.185.123.18) by sourceware.cygnus.com with SMTP; 9 May 2000 17:37:17 -0000 Received: from Unknown/Local ([?.?.?.?]) by my-deja.com; Tue May 9 10:36:32 2000 To: gcc-help@gcc.gnu.org Date: Tue, 09 May 2000 10:36:32 -0700 From: "George Adams" Message-ID: Mime-Version: 1.0 X-Sent-Mail: off Reply-To: learningapache@my-Deja.com X-Mailer: MailCity Service Subject: Re: Installing gcc/g++: where did I go wrong? X-Sender-Ip: 199.72.184.69 Organization: My Deja Email (http://www.my-deja.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Transfer-Encoding: 7bit >From your description, it would seem to me that compilation didn't >finish successfully, and it ended up installing just what it had >built. Alexandre, I think you're right. This procedure seemed to do the trick: 1) Build gcc using SunOS' native cc. This builds gcc, but nothing else. 2) RE-build gcc using the gcc built in step 1. This builds gcc, g++, everything else, and the appropriate libraries. I don't know why the first step failed to build the full package, but at least I now seem to have a fully working package! Thanks again for the help. --== Sent via Deja.com http://www.deja.com/ ==-- Before you buy. From gcc-help-return-2955-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 09 22:41:34 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 819 invoked by alias); 9 May 2000 22:41:34 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 774 invoked from network); 9 May 2000 22:41:27 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 9 May 2000 22:41:27 -0000 Received: from maynard.mail.mindspring.net (maynard.mail.mindspring.net [207.69.200.243]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id SAA29551 for ; Tue, 9 May 2000 18:41:24 -0400 Received: from me.x.ix.netcom.com (user-33qtcn6.dialup.mindspring.com [199.174.178.230]) by maynard.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id SAA18506 for ; Tue, 9 May 2000 18:41:21 -0400 (EDT) Date: Tue, 9 May 2000 18:41:19 -0400 (EDT) Message-Id: <200005092241.SAA18506@maynard.mail.mindspring.net> To: help-gcc@gnu.org Subject: C Macro information and -g3 X-Mailer: Emacs 20.2 (smtpmail + M-x mail) From: "H. Nanosecond" Hello, I have gcc 2.8.1 and would like to know if the new version supports -g3. See below, thanks. I have a main.c that says #define XXX "123" #include int main() { puts(XXX); return 0; } but gcc -g3 main.c and gcc -g2 main.c give identical files. Same result with -ggdb2 compared with -ggdb3 The info file says: `-gLEVEL' `-ggdbLEVEL' `-gstabsLEVEL' `-gcoffLEVEL' `-gxcoffLEVEL' `-gdwarfLEVEL' `-gdwarf-2LEVEL' Request debugging information and also use LEVEL to specify how much information. The default level is 2. Level 1 produces minimal information, enough for making backtraces in parts of the program that you don't plan to debug. This includes descriptions of functions and external variables, but no information about local variables and no line numbers. Level 3 includes extra information, such as all the macro definitions present in the program. Some debuggers support macro expansion when you use `-g3'. From gcc-help-return-2956-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 04:57:51 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 11265 invoked by alias); 10 May 2000 04:57:50 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 11235 invoked from network); 10 May 2000 04:57:50 -0000 Received: from law-f222.hotmail.com (HELO hotmail.com) (209.185.130.160) by sourceware.cygnus.com with SMTP; 10 May 2000 04:57:50 -0000 Received: (qmail 34273 invoked by uid 0); 10 May 2000 04:57:22 -0000 Message-ID: <20000510045722.34272.qmail@hotmail.com> Received: from 63.248.124.232 by www.hotmail.com with HTTP; Tue, 09 May 2000 21:57:22 PDT X-Originating-IP: [63.248.124.232] From: "juan uribe" To: gcc-help@gcc.gnu.org Subject: compiling a gcc2.9.5 Date: Tue, 09 May 2000 21:57:22 PDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed I am going to compile from source 2.91.66 are there any issues I should look for ? I will using it on a compaq presario with the following specs...amd k6-2 3Dnow 400mhz processor running redhat linux 6.1 kernel version 2.2.12-20. ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From gcc-help-return-2957-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 05:07:06 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 13000 invoked by alias); 10 May 2000 05:07:06 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 12970 invoked from network); 10 May 2000 05:07:05 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 10 May 2000 05:07:05 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id 1966812105; Tue, 9 May 2000 23:07:24 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id 3957C12104; Tue, 9 May 2000 23:07:24 -0600 (MDT) Date: Tue, 9 May 2000 23:07:24 -0600 (MDT) From: To: juan uribe Cc: gcc-help@gcc.gnu.org Subject: Re: compiling a gcc2.9.5 In-Reply-To: <20000510045722.34272.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 9 May 2000, juan uribe wrote: > I am going to compile from source 2.91.66 are there any issues I should look > for ? I would suggest you use 2.95.2 instead, unless you need to link your code with c++ libs built with 2.91.66 . > > I will using it on a compaq presario with the following specs...amd k6-2 > 3Dnow 400mhz processor running redhat linux 6.1 kernel version 2.2.12-20. See http://gcc.gnu.org/install . I do not know of any caveats with this platform; I have been using gcc 2.95.2 on redhat 6.1 x86-linux for months. If you plan to do c++ development with 2.95.2, you will recompile the c++ libs you develop with. [snip] From gcc-help-return-2958-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 05:32:01 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 15581 invoked by alias); 10 May 2000 05:32:00 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 15545 invoked from network); 10 May 2000 05:31:59 -0000 Received: from law-f99.hotmail.com (HELO hotmail.com) (209.185.131.162) by sourceware.cygnus.com with SMTP; 10 May 2000 05:31:59 -0000 Received: (qmail 76260 invoked by uid 0); 10 May 2000 05:31:32 -0000 Message-ID: <20000510053132.76259.qmail@hotmail.com> Received: from 63.248.124.232 by www.hotmail.com with HTTP; Tue, 09 May 2000 22:31:32 PDT X-Originating-IP: [63.248.124.232] From: "juan uribe" To: gcc-help@gcc.gnu.org Subject: Re: compiling a gcc2.9.5 Date: Tue, 09 May 2000 22:31:32 PDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed >On Tue, 9 May 2000, juan uribe wrote: > > > I am going to compile from source 2.91.66 are there any issues I should >look > > for ? >I would suggest you use 2.95.2 instead, unless you need to link your code > with c++ libs built with 2.91.66 . doooooh!. I meant I will compile 2.95.2 using 2.91.66 but there should not be a problem, i hope ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From gcc-help-return-2959-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 05:47:57 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 16961 invoked by alias); 10 May 2000 05:47:57 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 16930 invoked from network); 10 May 2000 05:47:55 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 10 May 2000 05:47:55 -0000 Received: from sohm.stpp.soft.net ([203.129.230.82]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id BAA05351 for ; Wed, 10 May 2000 01:47:44 -0400 Received: from CITRIX1 ([192.10.10.6]) by sohm.stpp.soft.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id KSFGVB8L; Wed, 10 May 2000 11:20:01 +0530 Received: by CITRIX1 with Microsoft Mail id <01BFBA71.74F139A0@CITRIX1>; Wed, 10 May 2000 11:18:24 +0530 Message-ID: <01BFBA71.74F139A0@CITRIX1> From: Rakesh Nair To: "'help-gcc@gnu.org'" Subject: problem on inet_aton Date: Wed, 10 May 2000 11:18:07 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I work on sockets... I could not find any man pages for the function inet_aton . The declaration for this function is in the /arpa/inet.h file as extern.... The man pages refer to all other inet functions like inet_ntoa , inet_addr etc but no pages fro inet_aton.. Any help for this ... Bye Rakesh... From gcc-help-return-2960-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 06:22:41 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23391 invoked by alias); 10 May 2000 06:22:40 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23361 invoked from network); 10 May 2000 06:22:39 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 10 May 2000 06:22:39 -0000 Received: from cacau.lsd.ic.unicamp.br (IDENT:root@cacau.lsd.ic.unicamp.br [143.106.24.146]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id CAA05738 for ; Wed, 10 May 2000 02:22:34 -0400 Received: from zecarneiro.lsd.ic.unicamp.br (IDENT:oliva@zecarneiro.lsd.ic.unicamp.br [143.106.24.141]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id DAA19316; Wed, 10 May 2000 03:22:30 -0300 To: Rakesh Nair Cc: "'help-gcc@gnu.org'" Subject: Re: problem on inet_aton References: <01BFBA71.74F139A0@CITRIX1> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 10 May 2000 03:22:29 -0300 In-Reply-To: Rakesh Nair's message of "Wed, 10 May 2000 11:18:07 +0530" Message-ID: Lines: 14 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 10, 2000, Rakesh Nair wrote: > I could not find any man pages for the function inet_aton . You certainly won't get it from the GCC supporters. GCC doesn't include a C library, it just uses the one that comes with whatever system it's running on. So you should ask for help from the suppliers of the C library. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-2961-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 06:31:40 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 26484 invoked by alias); 10 May 2000 06:31:40 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 26439 invoked from network); 10 May 2000 06:31:39 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 10 May 2000 06:31:39 -0000 Received: from hotmail.com (law-f101.hotmail.com [209.185.131.164]) by mescaline.gnu.org (8.9.1a/8.9.1) with SMTP id CAA05831 for ; Wed, 10 May 2000 02:31:36 -0400 Received: (qmail 23322 invoked by uid 0); 10 May 2000 06:31:05 -0000 Message-ID: <20000510063105.23321.qmail@hotmail.com> Received: from 63.248.124.232 by www.hotmail.com with HTTP; Tue, 09 May 2000 23:31:05 PDT X-Originating-IP: [63.248.124.232] From: "juan uribe" To: help-gcc@gnu.org Subject: Re: compiling a gcc2.9.5 Date: Tue, 09 May 2000 23:31:05 PDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed >From: "juan uribe" >To: ja_uribe@hotmail.com >Subject: Re: compiling a gcc2.9.5 >Date: Tue, 09 May 2000 23:29:01 PDT > >I want to double check this with someone before I do anything. > >the following is qouted from the gcc.gnu.org/install page >"Second, when configuring a native system, either "cc" or "gcc" must be in >your path or you must set CC in your environment before running configure. >Otherwise the configuration scripts may fail. " >what would be my path and/or environment? > >"To configure GCC: > > > % mkdir objdir > % cd objdir > % srcdir/configure [target] [options] >target specification " >I think I understand this . objdir is the destination of any binaries I >compile, right. srcdir is where the source of gcc 2.95.2 to be compiled is. >under options i don't think I have gas or gld are they absolutely >neccessary. I am running linux kernel 2.2.12-20 on red hat How can I check >that to make sure? > > ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From gcc-help-return-2962-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 07:07:12 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 1214 invoked by alias); 10 May 2000 07:07:11 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 1140 invoked from network); 10 May 2000 07:07:06 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 10 May 2000 07:07:06 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id DE83D12105; Wed, 10 May 2000 01:07:21 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id C5E6912104; Wed, 10 May 2000 01:07:21 -0600 (MDT) Date: Wed, 10 May 2000 01:07:21 -0600 (MDT) From: To: juan uribe Cc: gcc-help@gcc.gnu.org Subject: Re: compiling a gcc2.9.5 In-Reply-To: <20000510053132.76259.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 9 May 2000, juan uribe wrote: > > > > > >On Tue, 9 May 2000, juan uribe wrote: > > > > > I am going to compile from source 2.91.66 are there any issues I should > >look > > > for ? > > >I would suggest you use 2.95.2 instead, unless you need to link your code > > with c++ libs built with 2.91.66 . > doooooh!. > I meant I will compile 2.95.2 using 2.91.66 but there should not be a > problem, i hope > Sorry about that. Compiling gcc-2.95.2 with 2.91.66 works fine. I have done it myself, several times. [snip] From gcc-help-return-2963-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 07:12:36 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 3058 invoked by alias); 10 May 2000 07:12:35 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 3010 invoked from network); 10 May 2000 07:12:33 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 10 May 2000 07:12:33 -0000 Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id DAA10188 for ; Wed, 10 May 2000 03:12:18 -0400 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id JAA22043; Wed, 10 May 2000 09:06:09 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id JAA01457; Wed, 10 May 2000 09:04:12 +0200 Date: Wed, 10 May 2000 09:04:12 +0200 Message-Id: <200005100704.JAA01457@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: aldomel@ix.netcom.com CC: help-gcc@gnu.org In-reply-to: <200005092241.SAA18506@maynard.mail.mindspring.net> (aldomel@ix.netcom.com) Subject: Re: C Macro information and -g3 References: <200005092241.SAA18506@maynard.mail.mindspring.net> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > I have gcc 2.8.1 and would like to know if the new version > supports -g3. See below, thanks. It does, as indicated in the documentation. > Level 3 includes extra information, such as all the macro > definitions present in the program. Some debuggers support macro > expansion when you use `-g3'. Not all debugging formats support this extra information. In particular, gdb debugging (i.e. stabs) does not support that. You could try to use -gdwarf, which does support macro recording. Regards, Martin From gcc-help-return-2964-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 08:08:18 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 13088 invoked by alias); 10 May 2000 08:08:17 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 13058 invoked from network); 10 May 2000 08:08:15 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 10 May 2000 08:08:15 -0000 Received: from mail.coss.nl (IDENT:root@mail.coss.nl [195.109.218.82]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id EAA14756 for ; Wed, 10 May 2000 04:08:10 -0400 Received: from coss.nl (pcjoke [89.1.32.62]) by mail.coss.nl (8.9.3/8.8.7) with ESMTP id KAA02180 for ; Wed, 10 May 2000 10:10:31 +0200 Message-ID: <3919187B.5D47BB8A@coss.nl> Date: Wed, 10 May 2000 10:06:20 +0200 From: Harm-Jan Zwinderman X-Mailer: Mozilla 4.61 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: help-gcc@gnu.org Subject: Re: problem on inet_aton References: <01BFBA71.74F139A0@CITRIX1> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit >From my man pages : unsigned long inet_addr(char *cp) int inet_aton(const char *cp, struct in_addr *val) The routine inet_addr interprets character strings representing numbers expressed in the Internet standard dot notation, returning numbers suitable for use as Internet addresses and Internet network numbers, respectively. The routine inet_addr is implemented in terms of inet_aton. The routine inet_aton allows for disambiguation between an address of all ones (such as a local broadcast address) and an error condition. inet_aton returns 1 if the address is valid, 0 otherwise. Hoper this helps Harm-Jan Zwinderman From gcc-help-return-2965-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 08:18:49 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 15051 invoked by alias); 10 May 2000 08:18:46 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 15020 invoked from network); 10 May 2000 08:18:44 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 10 May 2000 08:18:44 -0000 Received: from dbritsch.dsl.xmission.com (dbritsch.dsl.xmission.com [166.70.156.242]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id EAA15641 for ; Wed, 10 May 2000 04:18:37 -0400 From: llewelly@dbritsch.dsl.xmission.com Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id 6E17E12105; Wed, 10 May 2000 02:18:56 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id F2A0112104; Wed, 10 May 2000 02:18:55 -0600 (MDT) Date: Wed, 10 May 2000 02:18:55 -0600 (MDT) To: juan uribe Cc: help-gcc@gnu.org Subject: Re: compiling a gcc2.9.5 In-Reply-To: <20000510063105.23321.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 9 May 2000, juan uribe wrote: > > > > >From: "juan uribe" > >To: ja_uribe@hotmail.com > >Subject: Re: compiling a gcc2.9.5 > >Date: Tue, 09 May 2000 23:29:01 PDT > > > >I want to double check this with someone before I do anything. > > > >the following is qouted from the gcc.gnu.org/install page > >"Second, when configuring a native system, either "cc" or "gcc" must be in > >your path or you must set CC in your environment before running configure. > >Otherwise the configuration scripts may fail. " > >what would be my path and/or environment? > > > >"To configure GCC: > > > > > > % mkdir objdir > > % cd objdir > > % srcdir/configure [target] [options] > >target specification " > >I think I understand this . objdir is the destination of any binaries I > >compile, right. Correct. > srcdir is where the source of gcc 2.95.2 to be compiled is. Correct. > >under options i don't think I have gas or gld are they absolutely > >neccessary. gas and ld are necessary on linux. If I remember redhat installation correctly, you get gas, ld, and the rest of binutils when you chose to install egcs-1.1.2 (aka 2.91.66) . I believe configure will tell you if you do not have an assembler (like gas) or a linker (like ld) . > I am running linux kernel 2.2.12-20 on red hat How can I check > >that to make sure? > > I am not sure what you are asking here, but I will guess the answer is in uname -a [snip] From gcc-help-return-2966-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 12:52:16 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23874 invoked by alias); 10 May 2000 12:52:15 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23842 invoked from network); 10 May 2000 12:52:13 -0000 Received: from berg.bnf.fr (194.199.4.1) by sourceware.cygnus.com with SMTP; 10 May 2000 12:52:13 -0000 Received: by berg.bnf.fr; id OAA29344; Wed, 10 May 2000 14:37:38 +0200 (CEST) From: Message-Id: <200005101237.OAA29344@berg.bnf.fr> X-Lotus-FromDomain: BNF To: gcc-help@gcc.gnu.org Date: Wed, 10 May 2000 14:49:17 +0200 Subject: built gcc 2.95.2 to OS dynix 4.4.2 (Sequent) Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I try to build gcc 2.95.2 to OS dynix 4.4.2. I have a error of compilation collect2.c line 364 _sys_siglist undefined symbol. while a configure step, it detect that the system haven't this function. message of configure.log configure:2793: cc -c -g conftest.c 1>&5 "configure", line 2789: undefined symbol: sys_siglist "configure", line 2789: cannot dereference non-pointer type "configure", line 2789: warning: improper pointer/integer combination: op "=" configure: failed program was: can you help me. thank you. From gcc-help-return-2967-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 23:09:21 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 28474 invoked by alias); 10 May 2000 23:09:20 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 28411 invoked from network); 10 May 2000 23:09:17 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 10 May 2000 23:09:17 -0000 Received: from hotmail.com (law-f271.hotmail.com [209.185.130.187]) by mescaline.gnu.org (8.9.1a/8.9.1) with SMTP id TAA20378 for ; Wed, 10 May 2000 19:09:14 -0400 Received: (qmail 73662 invoked by uid 0); 10 May 2000 23:08:42 -0000 Message-ID: <20000510230842.73661.qmail@hotmail.com> Received: from 63.248.124.232 by www.hotmail.com with HTTP; Wed, 10 May 2000 16:08:42 PDT X-Originating-IP: [63.248.124.232] From: "juan uribe" To: help-gcc@gnu.org Subject: Re: compiling a gcc2.9.5 Date: Wed, 10 May 2000 16:08:42 PDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed today after doing make bootstrap-lean I recieved the following errors. Assembler messages: Error: Can't open /tmp/ccxgyxWd.s for reading make[2] ***[stor-layout.o] Error 1 make[2]Leaving directory '/foo' make[1]***[bootstrap-lean] Error 2 please keep in mind I compiled as root I checked my /tmp dir and did not find ccxgyxWd.s where should I get it? can I proceed with install? ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From gcc-help-return-2968-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 23:17:26 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 358 invoked by alias); 10 May 2000 23:17:26 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 326 invoked from network); 10 May 2000 23:17:24 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 10 May 2000 23:17:24 -0000 Received: from dbritsch.dsl.xmission.com (dbritsch.dsl.xmission.com [166.70.156.242]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id TAA22220 for ; Wed, 10 May 2000 19:17:21 -0400 From: llewelly@dbritsch.dsl.xmission.com Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id E624612105; Wed, 10 May 2000 17:17:40 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id DE80F12104; Wed, 10 May 2000 17:17:40 -0600 (MDT) Date: Wed, 10 May 2000 17:17:40 -0600 (MDT) To: juan uribe Cc: help-gcc@gnu.org Subject: Re: compiling a gcc2.9.5 In-Reply-To: <20000510230842.73661.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 10 May 2000, juan uribe wrote: > today after doing > > make bootstrap-lean > > > I recieved the following errors. > Assembler messages: > Error: Can't open /tmp/ccxgyxWd.s for reading > make[2] ***[stor-layout.o] Error 1 > make[2]Leaving directory '/foo' > make[1]***[bootstrap-lean] Error 2 > > please keep in mind I compiled as root > I checked my /tmp dir and did not find ccxgyxWd.s where should I get it? > can I proceed with install? This is usually a symptom of insufficient space. Use df(1) to check how much space you have. I seem to recall that about 250M of space is needed to bootstrap the full 2.95.2 distribution. 'make bootstrap-lean' will reduce this substantially (I do not recall by how much), as will using --enable-languages to specify only the langauges you will need. [snip] From gcc-help-return-2969-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 10 23:19:34 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 2156 invoked by alias); 10 May 2000 23:19:34 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 2125 invoked from network); 10 May 2000 23:19:33 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 10 May 2000 23:19:33 -0000 Received: from hotmail.com (law-f237.hotmail.com [209.185.130.202]) by mescaline.gnu.org (8.9.1a/8.9.1) with SMTP id TAA22289 for ; Wed, 10 May 2000 19:19:29 -0400 Received: (qmail 30630 invoked by uid 0); 10 May 2000 23:18:58 -0000 Message-ID: <20000510231858.30629.qmail@hotmail.com> Received: from 63.248.124.232 by www.hotmail.com with HTTP; Wed, 10 May 2000 16:18:53 PDT X-Originating-IP: [63.248.124.232] From: "juan uribe" To: ja_uribe@hotmail.com, help-gcc@gnu.org Subject: Re: compiling a gcc2.9.5 Date: Wed, 10 May 2000 16:18:53 PDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed my apologies I did not provide the following info version compiling with: 2.91.66 version compiled(attempted anyways): 2.95.2 system specs: linuxkernel 2.2.12-20 on 400mhz > >today after doing > >make bootstrap-lean > > >I recieved the following errors. >Assembler messages: >Error: Can't open /tmp/ccxgyxWd.s for reading >make[2] ***[stor-layout.o] Error 1 >make[2]Leaving directory '/foo' >make[1]***[bootstrap-lean] Error 2 > >please keep in mind I compiled as root >I checked my /tmp dir and did not find ccxgyxWd.s where should I get it? >can I proceed with install? >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From gcc-help-return-2970-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 11 16:56:06 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 18878 invoked by alias); 11 May 2000 16:56:05 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 18844 invoked from network); 11 May 2000 16:56:03 -0000 Received: from linus.dvart.com (207.201.42.130) by sourceware.cygnus.com with SMTP; 11 May 2000 16:56:03 -0000 Received: from dvart.com (foghorn.dvart.com [207.201.42.141]) by linus.dvart.com (8.9.3/8.9.3) with ESMTP id HAA20077 for ; Thu, 11 May 2000 07:16:21 -0700 Message-ID: <391AE663.2E71F440@dvart.com> Date: Thu, 11 May 2000 09:57:07 -0700 From: bruno schwander X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: GCC avr target port ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I am interested in getting GCC to cross compile for the atmel AVR mcu. It is listed as one of the targets in the docs but when I try to run configure, it complains avr is not a recognized target name. what do I need else ? anyone got gcc for avr to work ? thanks, bruno From gcc-help-return-2971-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 11 20:35:50 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 26770 invoked by alias); 11 May 2000 20:35:50 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 26692 invoked from network); 11 May 2000 20:35:46 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 11 May 2000 20:35:46 -0000 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id RAA13327; Thu, 11 May 2000 17:35:37 -0300 To: bruno schwander Cc: gcc-help@gcc.gnu.org Subject: Re: GCC avr target port ? References: <391AE663.2E71F440@dvart.com> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 11 May 2000 17:35:33 -0300 In-Reply-To: bruno schwander's message of "Thu, 11 May 2000 09:57:07 -0700" Message-ID: Lines: 13 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 11, 2000, bruno schwander wrote: > configure, it complains avr is not a recognized target name. Try avr-elf or something like that. Search the configure scripts for occurrences of avr- if this doesn't work. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-2972-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 12 06:22:20 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 31890 invoked by alias); 12 May 2000 06:22:20 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 31856 invoked from network); 12 May 2000 06:22:17 -0000 Received: from unknown (HELO picekl.sanitas.cz) (root@195.39.20.19) by sourceware.cygnus.com with SMTP; 12 May 2000 06:22:17 -0000 Received: from picek ([195.39.20.130]) by picekl.sanitas.cz (8.9.3/8.9.3) with SMTP id IAA15141 for ; Fri, 12 May 2000 08:23:18 +0200 Message-ID: <006501bfbbdb$10f84040$821427c3@picek> From: "Oldrich Kepka" To: Subject: Re: GCC avr target port ? Date: Fri, 12 May 2000 08:26:43 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.2106.4 >I am interested in getting GCC to cross compile for the atmel AVR mcu. It >is listed as one of the targets in the docs but when I try to run >configure, it complains avr is not a recognized target name. Look here http://medo.fov.uni-mb.si/mapp/uTools/index.html. Best regards Olda From gcc-help-return-2973-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 12 06:56:56 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 8489 invoked by alias); 12 May 2000 06:56:56 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 8458 invoked from network); 12 May 2000 06:56:54 -0000 Received: from gw-nl1.origin-it.com (@193.79.128.34) by sourceware.cygnus.com with SMTP; 12 May 2000 06:56:54 -0000 Received: from mail.nl.origin-it.com (localhost.origin-it.com [127.0.0.1]) by gw-nl1.origin-it.com with ESMTP id IAA10192 for ; Fri, 12 May 2000 08:56:48 +0200 (MEST) (envelope-from Marion.Weijers@nl.origin-it.com) Received: from mail.nl.origin-it.com(172.16.127.67) by gw-nl1.origin-it.com via mwrap (4.0a) id xma010190; Fri, 12 May 00 08:56:48 +0200 Received: from nlehx900.ehvovh.nl.origin-it.com (nlehx900.ehvovh.nl.origin-it.com [172.16.92.111]) by mail.nl.origin-it.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id IAA24304 for ; Fri, 12 May 2000 08:56:47 +0200 (MET DST) Received: by nlehx900.ehvovh.nl.origin-it.com with Internet Mail Service (5.5.2448.0) id ; Fri, 12 May 2000 08:56:47 +0200 Message-ID: From: "Weijers, Marion" To: "'gcc-help@gcc.gnu.org'" Subject: fortran Date: Fri, 12 May 2000 08:56:47 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Hi all, I'm facing a problem with the gcc-f77 compiler. The mather of the fact is that i don't anything about fortran. I'm working on a project that is using existing fortran-files (that first was used under irix) and i'm trying to get it working on Linux6.1. I have installed the fortrancompiler (for linux 6.1) en try to compile a file called sm_pem_plcoot. This file does not cause any problems compiling it on the irix with an older fortran version. But using the new version (1386-redhat-linux/egcs-2.91.66/lib2cg) i'm facing a problem that i can't fix. The fault-message I get is: DATA PLANA/'MERCURY ','VENUS ','EARTH ','MARS ','JUPITER ' ^ Type disagreement between expressions at (?) and (^). That's all. I have included the beginning of the code that is causing the problem. Can any-one tell me what is wrong with this code? Thanks, Marion SUBROUTINE PLCOOT CP THE ROUTINE CALLS 'COOT' AND SETS OTHER IMPORTANT CONSTANTS FOR CP INTERPLANETARY TRAJECTORIES INTO COMMON BLOCKS. THE CONSTANTS CP ARE THE SAME IN JPL'S EPHEMERIS DE118 AND DE200. C COM /PLATON/ AU = ASTRONOMICAL UNIT IN KM COM /PLATON/ SOLARP = SUN-PRESSURE-COEFF IN KG*KM**3/(M*SEC)**2 COM /PLATON/ EMRAT = EARTH/MOON MASS RATIO COM /PLATON/ EMRELA = MASS RATIO MOON/(MOON+EARTH) COM /PLXMUE/ XMUE(...) = GRAVITY POTENTIAL OF BODY IN KM**3/SEC**2 C NB: NOT THE SAME AS IN COMMON /CPOEMS/ FROM COOT. COM /PSEMAX/ RSIE(...) = SEMI-MAJOR AXIS OF ORBIT AROUND CENTRE COM /PRINFL/ RINFL(...) = SPHERE OF INFLUENCE RADIUS IN KM COM /CPEQUR/ PEQUR(...) = EQUATORIAL RADIUS OF BODY IN KM COM /CPFLAT/ PLFLAT(...) = FLATNESS OF BODY COM /PNAMES/ PLANAM(...) = NAME OF BODY IN FORMAT(A8) C C NUMBERING OF CELESTIAL BODIES = 1: MERCURY, 2: VENUS, C 3: EARTH, 4: MARS, 5: JUPITER, 6: SATURN, C 7: URANUS, 8: NEPTUNE, 9: PLUTO, 10: SUN, 11: MOON. C C CHARACTER*68 SCCS_INFO(2) C &/'@(#)/home/oadev/orblib/src/SCCS/s.plcoot.f ', C &'1.3 94/11/18 ORBLIB\n'/ C IMPLICIT REAL*8(A-H,O-Z) COMMON /CGEOME/ RE,FLAT,FLATSQ,CLIGHT COMMON /CDYNAE/ STD50,OMT50,OMQ50,OMROT,STD50R,OMT50R,OMQ50R COMMON /CBASIC/ PI,TWOPI,PIH,DEG,RAD COMMON /CPOEMS/ XMU,WMU,WMUIN,XMUM,XMUS COMMON /CSOLAR/ SOLPR,ECL,CECL,SECL,XLSUNA,XLSUNB,ECLECC,ECLOM COMMON /CORIOL/ PRACCY,PRACCZ COMMON /PLATON/ AU,SOLARP,EMRAT,EMRELA COMMON /PLXMUE/ XMUE(11) COMMON /PSEMAX/ RSIE(11) COMMON /PRINFL/ RINFL(11) COMMON /CPEQUR/ PEQUR(11) COMMON /CPFLAT/ PLFLAT(11) COMMON /PNAMES/ PLANAM(11) DIMENSION PLANA(11) C DATA PLANA /'MERCURY ','VENUS ','EARTH ','MARS ','JUPITER ' & ,'SATURN ','URANUS ','NEPTUNE ','PLUTO ' & ,'SUN ','MOON '/ DO 10 I = 1, 11 10 PLANAM(I)= PLANA(I) C From gcc-help-return-2974-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 12 07:16:31 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 14130 invoked by alias); 12 May 2000 07:16:30 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 14099 invoked from network); 12 May 2000 07:16:29 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 12 May 2000 07:16:29 -0000 Received: from ambra.omega.it (www.omega.it [193.207.81.27]) by mescaline.gnu.org (8.9.1a/8.9.1) with SMTP id DAA23225 for ; Fri, 12 May 2000 03:16:26 -0400 Received: (qmail 27263 invoked by uid 10004); 12 May 2000 09:12:56 +0200 Received: from lilac.omega.it (HELO omega.it) (193.207.124.39) by www.omega.it with SMTP; 12 May 2000 09:12:56 +0200 Message-ID: <391BAF44.393F1B22@omega.it> Date: Fri, 12 May 2000 09:14:12 +0200 From: Paolo Di Martino X-Mailer: Mozilla 4.7 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: help-gcc@gnu.org Subject: C++ Style comments Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I would like to know if it's possible to compile a source code containing c++ style comments with gcc 2.6.0 Thanks Paolo Di Martino Omega Generation S.r.l. Bologna - Italy From gcc-help-return-2975-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 12 09:34:20 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 20171 invoked by alias); 12 May 2000 09:34:20 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 20140 invoked from network); 12 May 2000 09:34:18 -0000 Received: from kalman.iau.dtu.dk (root@192.38.66.22) by sourceware.cygnus.com with SMTP; 12 May 2000 09:34:18 -0000 Received: from kalman.iau.dtu.dk (pc120.iau.dtu.dk [192.38.66.220]) by kalman.iau.dtu.dk (8.8.6 (PHNE_17135)/8.8.6) with ESMTP id LAA13980 for ; Fri, 12 May 2000 11:34:15 +0200 (METDST) Message-ID: <391BECC5.D543CE96@kalman.iau.dtu.dk> Date: Fri, 12 May 2000 13:36:37 +0200 From: Ivan Martinez Reply-To: ivan_m_r@email.com X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14-rtl2.2 i686) X-Accept-Language: en MIME-Version: 1.0 To: GCC mailing list Subject: Can't return stream Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello all, I have a function where I want to return an stream: iostream Class::ErrorsReport() const { iostream ErrorsReport; ... return ErrorsReport; } I tried with iostream, stream, strstream, ostrstream..., declaring the function const and non const, and I always get: .../g++-3/streambuf.h:128:'ios::ios(const ios&)' is private ...: within this context (Last one refers to return keyword line) Isn't it possible to return a copy of a stream?. -- Ivan Martinez (Rodriguez) BEng in Software Engineering - MEng student http://www.student.dtu.dk/~u990873 "Got fabes?" From gcc-help-return-2976-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 12 09:44:35 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23635 invoked by alias); 12 May 2000 09:44:34 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23563 invoked from network); 12 May 2000 09:44:31 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 12 May 2000 09:44:31 -0000 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id GAA19839; Fri, 12 May 2000 06:44:25 -0300 To: ivan_m_r@email.com Cc: GCC mailing list Subject: Re: Can't return stream References: <391BECC5.D543CE96@kalman.iau.dtu.dk> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 12 May 2000 06:44:24 -0300 In-Reply-To: Ivan Martinez's message of "Fri, 12 May 2000 13:36:37 +0200" Message-ID: Lines: 11 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 12, 2000, Ivan Martinez wrote: > Isn't it possible to return a copy of a stream?. Nope. Streams aren't required to be copy-constructible. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-2977-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 12 16:30:08 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 13395 invoked by alias); 12 May 2000 16:30:06 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 13364 invoked from network); 12 May 2000 16:30:04 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 12 May 2000 16:30:04 -0000 Received: from firewall.opmaxx.com (root@opmaxx.com [209.51.64.66]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id MAA18635 for ; Fri, 12 May 2000 12:29:55 -0400 Received: from fluence.com (jim@columbia.opmaxx.com [192.168.1.36]) by firewall.opmaxx.com (8.9.1/8.9.1) with ESMTP id JAA08287 for ; Fri, 12 May 2000 09:29:52 -0700 (PDT) Message-ID: <391C307F.AD665B7C@fluence.com> Date: Fri, 12 May 2000 09:25:35 -0700 From: Jim Abbate X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.0.29 i686) X-Accept-Language: en MIME-Version: 1.0 To: help-gcc@gnu.org Subject: Re: GCC 2.95.2 & Purify References: <391B0213.9FA1021@fluence.com> <20000511192802.F31910@ebb.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > Hi, I've been using gcc 2.7.2.1 on my Solaris 2.5.1 operating system for some time now with "purify" and I have had no problems. I downloaded and built gcc 2.95.2 on my Solaris 2.5.1 system. Now, when I try to compile my code with it and link it with "purify" I get warning messages (see below). Then when I try to run it, I get a core dump. I tried to debug it with "gdb" but I get generally strange behavior (like stepping through the code of a CASE statement incorrectly and incorrectly evaluating IF statements etc.). When I link I get the following: purify gcc sens_main.o sens_info.o sens_go.o taskPrimary.o taskModel.o gen_sensdata.o op_version.o GradTask.o -L../Hspice_Integration -lHspice -L../Spectre_Integration -lSpectre -L../Calculator -lOP_Calc -L../OpDb -lOP_Db -L../Opwriting -lOP_writing -L../OpUtils -lOP_utils -L../OpDb -lOP_Db -L../OpSimAccess -lOP_SimAccess-L../srm -lOP_srmFE -L../SimCommon -lSIM_common -L../pvm/lib/SUN4SOL2/usr/lib/libw.a -Bdynamic -ldl -lnsl -lintl -ll -lsocket -lm -lc -lpvm3 -o MyExe Purify 4.1 Solaris 2, Copyright (C) 1992-1997 Rational Software Corp. All rights reserved. Instrumenting: libgcc.a...................................................... Purify engine: While processing file /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/libgcc.a(tinfo2.o ): Warning: Found untested reloc type R_SPARC_WPLT30 at location 0xc (section 12), apparently pointing to offset 0x1c. Purify engine: Warning: Found untested reloc type R_SPARC_WPLT30 at location 0xc (section 14), apparently pointing to offset 0x1c. Purify engine: Warning: Found untested reloc type R_SPARC_WPLT30 at location 0xc (section 16), apparently pointing to offset 0x1c. Purify engine: Warning: Found untested reloc type R_SPARC_WPLT30 at location 0xc (section 18), apparently pointing to offset 0x1c. Purify engine: Warning: Found untested reloc type R_SPARC_WPLT30 at location 0xc (section 20), apparently pointing to offset 0x1c. Purify engine: Warning: Found untested reloc type R_SPARC_WPLT30 at location 0xc (section 22), apparently pointing to offset 0x1c. Purify engine: Warning: Found untested reloc type R_SPARC_WPLT30 at location 0xc (section 24), apparently pointing to offset 0x1c. Please advise!!! Thanks, Jim -- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | Jim Abbate | Phone: +1-503-672-8717 | | Senior Software Engineer | FAX: +1-503-672-8700 | | Fluence Technology, Inc. | mailto:jim@opmaxx.com | | (formerly Opmaxx Inc.) | mailto:jim@opmaxx.com | | 8700 SW Creekside Place | WWW: http://www.opmaxx.com | | Beaverton, OR 97008 USA | | | Mixed Signal Design and Test Automation | +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ From gcc-help-return-2978-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 12 16:54:33 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23677 invoked by alias); 12 May 2000 16:54:33 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23640 invoked from network); 12 May 2000 16:54:31 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 12 May 2000 16:54:31 -0000 Received: from isb.comsats.net.pk (comsats.net.pk [210.56.8.10]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id MAA19619 for ; Fri, 12 May 2000 12:54:23 -0400 Received: from isb ([210.56.10.227]) by isb.comsats.net.pk (8.9.3+Sun/8.9.1) with SMTP id VAA00258 for ; Fri, 12 May 2000 21:52:33 +0500 (PKT) Message-ID: <001101bfbc32$c589eac0$e30a38d2@isb.comsats.net.pk> From: "Zille Eizad" To: Subject: help me Date: Fri, 12 May 2000 21:54:42 +0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000E_01BFBC5C.ADA8D7C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3110.3 This is a multi-part message in MIME format. ------=_NextPart_000_000E_01BFBC5C.ADA8D7C0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable what i m trying to do is port gcc on power pc ppc405. i need to find out = how much of the source code of gcc is written in assembly. well thats = not a problem. but the problem is i need to find out which library = functions are defined in which files and what header files are required = for them? so i can eliminate any unwanted functions and make the library = slim. it will be nice to get some help in this regard. zille eizad ------=_NextPart_000_000E_01BFBC5C.ADA8D7C0 Content-Type: text/html; charset="iso-8859-7" Content-Transfer-Encoding: quoted-printable
what i m trying to do is port gcc on power pc ppc405. i need to = find out=20 how much of the source code of gcc is written in assembly. well thats = not a=20 problem. but the problem is i need to find out which library functions = are=20 defined in which files and what header files are required for them? so i = can=20 eliminate any unwanted functions and make the library slim. it will be = nice to=20 get some help in this regard.
 
zille eizad
------=_NextPart_000_000E_01BFBC5C.ADA8D7C0-- From gcc-help-return-2979-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 12 17:27:38 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 31252 invoked by alias); 12 May 2000 17:27:37 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 31222 invoked from network); 12 May 2000 17:27:37 -0000 Received: from linus.dvart.com (207.201.42.130) by sourceware.cygnus.com with SMTP; 12 May 2000 17:27:37 -0000 Received: from dvart.com (foghorn.dvart.com [207.201.42.141]) by linus.dvart.com (8.9.3/8.9.3) with ESMTP id HAA08194 for ; Fri, 12 May 2000 07:47:52 -0700 Message-ID: <391C3F45.FE3DB525@dvart.com> Date: Fri, 12 May 2000 10:28:37 -0700 From: bruno schwander X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: GCC avr target port ? References: <006501bfbbdb$10f84040$821427c3@picek> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I had a look at this, so does this mean that the avr port is not integrated with the current gcc release yet ? Oldrich Kepka wrote: > >I am interested in getting GCC to cross compile for the atmel AVR mcu. It > >is listed as one of the targets in the docs but when I try to run > >configure, it complains avr is not a recognized target name. > > Look here http://medo.fov.uni-mb.si/mapp/uTools/index.html. > > Best regards > Olda From gcc-help-return-2980-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 12 20:18:54 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 21428 invoked by alias); 12 May 2000 20:18:51 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 21355 invoked from network); 12 May 2000 20:18:48 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 12 May 2000 20:18:48 -0000 Received: from cacau.lsd.ic.unicamp.br (cacau.lsd.ic.unicamp.br [143.106.24.146]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id QAA01594 for ; Fri, 12 May 2000 16:15:14 -0400 Received: from saci.lsd.ic.unicamp.br (IDENT:root@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with ESMTP id RAA22758; Fri, 12 May 2000 17:13:47 -0300 Received: (from oliva@localhost) by saci.lsd.ic.unicamp.br (8.9.3/8.9.3) id RAA05158; Fri, 12 May 2000 17:13:45 -0300 X-Authentication-Warning: saci.lsd.ic.unicamp.br: oliva set sender to oliva@lsd.ic.unicamp.br using -f To: Jim Abbate Cc: help-gcc@gnu.org Subject: Re: GCC 2.95.2 & Purify References: <391B0213.9FA1021@fluence.com> <20000511192802.F31910@ebb.org> <391C307F.AD665B7C@fluence.com> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 12 May 2000 17:13:45 -0300 In-Reply-To: Jim Abbate's message of "Fri, 12 May 2000 09:25:35 -0700" Message-ID: Lines: 17 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 12, 2000, Jim Abbate wrote: > I downloaded and built gcc 2.95.2 on my > Solaris 2.5.1 system. Now, when I try > Purify 4.1 Solaris 2, Copyright (C) 1992-1997 Rational Software C= orp. It is very unlikely that this release of Purify supports GCC 2.95.2. I'm not sure Rational has already updated their product to support newer releases of GCC, but this old release you've got certainly isn't up to it. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-2981-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 12 20:18:55 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 21550 invoked by alias); 12 May 2000 20:18:55 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 21430 invoked from network); 12 May 2000 20:18:51 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 12 May 2000 20:18:51 -0000 Received: from cacau.lsd.ic.unicamp.br (cacau.lsd.ic.unicamp.br [143.106.24.146]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id QAA01631 for ; Fri, 12 May 2000 16:18:26 -0400 Received: from saci.lsd.ic.unicamp.br (IDENT:root@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with ESMTP id RAA22762; Fri, 12 May 2000 17:14:41 -0300 Received: (from oliva@localhost) by saci.lsd.ic.unicamp.br (8.9.3/8.9.3) id RAA05162; Fri, 12 May 2000 17:14:41 -0300 X-Authentication-Warning: saci.lsd.ic.unicamp.br: oliva set sender to oliva@lsd.ic.unicamp.br using -f To: "Zille Eizad" Cc: Subject: Re: help me References: <001101bfbc32$c589eac0$e30a38d2@isb.comsats.net.pk> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 12 May 2000 17:14:40 -0300 In-Reply-To: "Zille Eizad"'s message of "Fri, 12 May 2000 21:54:42 +0500" Message-ID: Lines: 12 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 12, 2000, "Zille Eizad" wrote: > the problem is i need to find out which library functions are > defined in which files and what header files are required for them? GCC is a compiler, it doesn't contain a C library. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-2982-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 12 22:35:42 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 20109 invoked by alias); 12 May 2000 22:35:41 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 20078 invoked from network); 12 May 2000 22:35:39 -0000 Received: from linus.dvart.com (207.201.42.130) by sourceware.cygnus.com with SMTP; 12 May 2000 22:35:39 -0000 Received: from dvart.com (foghorn.dvart.com [207.201.42.141]) by linus.dvart.com (8.9.3/8.9.3) with ESMTP id MAA11545 for ; Fri, 12 May 2000 12:55:55 -0700 Message-ID: <391C8778.352E6B3A@dvart.com> Date: Fri, 12 May 2000 15:36:40 -0700 From: bruno schwander X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: "gcc-help@gcc.gnu.org" Subject: Re: GCC avr target port ? References: <006501bfbbdb$10f84040$821427c3@picek> <391C3F45.FE3DB525@dvart.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Does anybody know where I can find doc on how several targets are supported, i.e if I build gcc for additional targets, I understand that different binaries are built and the gcc driver actually calls the appropriate one, what about libs and include files ? is there default paths that are automatically included depending on the target ? Thanks for enlightening me, I am still wary of building additional targets gcc that could interfer with my current settings bruno From gcc-help-return-2983-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 12 22:49:53 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 26904 invoked by alias); 12 May 2000 22:49:53 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 26873 invoked from network); 12 May 2000 22:49:52 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 12 May 2000 22:49:52 -0000 Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id SAA15648 for ; Fri, 12 May 2000 18:49:50 -0400 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id AAA24369; Sat, 13 May 2000 00:43:10 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id AAA01311; Sat, 13 May 2000 00:42:30 +0200 Date: Sat, 13 May 2000 00:42:30 +0200 Message-Id: <200005122242.AAA01311@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: dimartino@omega.it CC: help-gcc@gnu.org In-reply-to: <391BAF44.393F1B22@omega.it> (message from Paolo Di Martino on Fri, 12 May 2000 09:14:12 +0200) Subject: Re: C++ Style comments References: <391BAF44.393F1B22@omega.it> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > I would like to know if it's possible to compile a source code > containing c++ style comments with gcc 2.6.0 For 2.6.0, I believe it depends on whether you are compiling C or C++ code. For 2.95, it does not matter. Regards, Martin From gcc-help-return-2984-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sat May 13 07:15:04 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 31994 invoked by alias); 13 May 2000 07:15:04 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 31964 invoked from network); 13 May 2000 07:15:02 -0000 Received: from ibridge.iohk.com (root@202.21.128.82) by sourceware.cygnus.com with SMTP; 13 May 2000 07:15:02 -0000 Received: from igate.iohk.com (IDENT:root@igate.iohk.com [202.21.128.81]) by ibridge.iohk.com (8.9.3/8.9.3) with ESMTP id PAA27102; Sat, 13 May 2000 15:14:58 +0800 (HKT) Received: from win98c1 (pm3p188.iohk.com [202.21.128.188]) by igate.iohk.com (8.9.3/8.9.3) with SMTP id PAA19916; Sat, 13 May 2000 15:14:56 +0800 (HKT) Message-ID: <014a01bfbcab$6e9a51e0$220620c0@win98c1.task.com.hk> Reply-To: "Alex Chan" From: "Alex Chan" To: Cc: Subject: OB3.2.1 on NCR MP-RAS using gcc 2.95.2 Date: Sat, 13 May 2000 15:18:24 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0147_01BFBCEE.7B663F40" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 This is a multi-part message in MIME format. ------=_NextPart_000_0147_01BFBCEE.7B663F40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Just FYI, the following piece of information may seem 'out-dated' since = everybody else should be enthusiastic about OB4.x right now. = Neverthless, just want to share my information. I 'accidentally' compiled successfully gcc 2.95.2 on NCR MP-RAS UNIX Rel = 3.02 SCDE 3.03, then luckily again, compiled successfully OB 3.2.1 on = NCR with the following subtle changes: 1. Implement myself the strncasecmp and strcasecmp functions, which are = missing (so do stricmp/strincmp) on NCR 2. Change a little bit the signal handler definition (sa_handler)=20 3. Do not include arpa/inet.h 4. And worst of all, find that memory address allocated by NCR standard = C library is 4-byte aligned, not 8-byte aligned. As a result, I have to = share the same code fragement as the #ifdef WIN32 for OBBuffer inside = Basic.h After struggling with point 4, runtest passes smoothly without any = problem. Cheers Alex ------=_NextPart_000_0147_01BFBCEE.7B663F40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
Just FYI, the following piece of = information may=20 seem 'out-dated' since everybody else should be enthusiastic about OB4.x = right=20 now. Neverthless, just want to share my information.
 
I 'accidentally' compiled = successfully gcc=20 2.95.2 on NCR MP-RAS UNIX Rel 3.02 SCDE 3.03,  then luckily again, = compiled=20 successfully OB 3.2.1 on NCR with the following subtle = changes:
 
1. Implement myself the strncasecmp = and=20 strcasecmp functions, which are missing (so do stricmp/strincmp) on=20 NCR
2. Change a little bit the signal = handler=20 definition (sa_handler)
3. Do not include = arpa/inet.h
4. And worst of all, find that memory address = allocated by NCR=20 standard C library is 4-byte aligned, not 8-byte aligned. As a result, I = have to=20 share the same code fragement as the #ifdef WIN32 for OBBuffer inside=20 Basic.h
 
After struggling with point 4, runtest passes = smoothly without=20 any problem.
 
Cheers
 
Alex
------=_NextPart_000_0147_01BFBCEE.7B663F40-- From gcc-help-return-2985-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sat May 13 14:35:40 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 6530 invoked by alias); 13 May 2000 14:35:39 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 6498 invoked from network); 13 May 2000 14:35:37 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 13 May 2000 14:35:37 -0000 Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id KAA15666 for ; Sat, 13 May 2000 10:35:31 -0400 Received: from ix.netcom.com (ali-ca79-119.ix.netcom.com [209.110.239.247]) by smtp10.atl.mindspring.net (8.9.3/8.8.5) with ESMTP id KAA27234 for ; Sat, 13 May 2000 10:35:28 -0400 (EDT) Message-ID: <391D67EA.F2FFCA5D@ix.netcom.com> Date: Sat, 13 May 2000 07:34:18 -0700 From: Henry Abrecht X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: help-gcc@gnu.org Subject: gcc compiler, version egcs 1.1.1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I have what I believe is version 2.8.1 of your c compiler--or is it > egcs-1.1.1? I got that number from the man notes on gcc. My platform is Caldera OpenLinux 2.2. My problem: I'm trying to declare and call math > functions--specifically sin(x), cos(x), sqrt(x), pow(x, y). > When I call them and include math.h (or is it tgmath.h?) I get the > message: "function undefined." When I declare them (ex: double > sqrt(double)) I get the same message. > > My question: What's the correct prototype format for these functions? > (or more generally, how are they declared and called?) If it helps, I'm > using a book called "A Book on C," by Al Kelley and Ira Pohl. On his Web > site Pohl indicates that libraries used by c compilers might have changed > since he wrote his book. He recommends that users contact the compiler maker for the correct function prototypes. (Pohl's book is based on GCC 2.7.) Thanks, Henry Abrecht From gcc-help-return-2986-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sat May 13 17:01:33 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 30197 invoked by alias); 13 May 2000 17:01:33 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 30167 invoked from network); 13 May 2000 17:01:30 -0000 Received: from unknown (HELO picekl.sanitas.cz) (root@195.39.20.19) by sourceware.cygnus.com with SMTP; 13 May 2000 17:01:30 -0000 Received: from picek ([195.39.20.130]) by picekl.sanitas.cz (8.9.3/8.9.3) with SMTP id TAA25763 for ; Sat, 13 May 2000 19:03:05 +0200 Message-ID: <008401bfbcfd$897112e0$821427c3@picek> From: "Oldrich Kepka" To: Subject: Re: GCC avr target port ? Date: Sat, 13 May 2000 19:04:22 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 >Does anybody know where I can find doc on how several targets are supported, i.e >if I build gcc for additional targets, I understand that different binaries are >built and the gcc driver actually calls the appropriate one, what about libs and >include files ? is there default paths that are automatically included depending >on the target ? When you build gcc for avr, its name is avr-gcc, as well binutils have different names avr-as, avr-ld, avr-objdump, ... There are special library avr-libc for avr. Olda From gcc-help-return-2987-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sat May 13 20:43:27 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23716 invoked by alias); 13 May 2000 20:43:26 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23686 invoked from network); 13 May 2000 20:43:24 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 13 May 2000 20:43:24 -0000 Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id QAA27060 for ; Sat, 13 May 2000 16:43:20 -0400 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id WAA04134; Sat, 13 May 2000 22:40:39 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id WAA04511; Sat, 13 May 2000 22:39:47 +0200 Date: Sat, 13 May 2000 22:39:47 +0200 Message-Id: <200005132039.WAA04511@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: jalright@ix.netcom.com CC: help-gcc@gnu.org In-reply-to: <391D67EA.F2FFCA5D@ix.netcom.com> (message from Henry Abrecht on Sat, 13 May 2000 07:34:18 -0700) Subject: Re: gcc compiler, version egcs 1.1.1 References: <391D67EA.F2FFCA5D@ix.netcom.com> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > My problem: I'm trying to declare and call math > functions--specifically sin(x), cos(x), sqrt(x), pow(x, y). When I > call them and include math.h (or is it tgmath.h?) I get the message: > "function undefined." When I declare them (ex: double sqrt(double)) > I get the same message. I doubt that the message you get literally reads "function undefined". It is very important that you quote error message literally as they appear on the terminal. > My question: What's the correct prototype format for these > functions? (or more generally, how are they declared and called?) You should never declare the functions yourself; instead, use the appropriate header file. For sin/cos/sqrt/pow, the header file is indeed math.h, so there is no need to declare the functions further. I believe your problem is not that the functions where not declared, but that no implementation was found, i.e. that the error message read undefined reference to `sin' In that case, you should tell the compiler to link with the math library, i.e. you need to add -lm. Regards, Martin From gcc-help-return-2988-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sun May 14 20:09:25 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 31588 invoked by alias); 14 May 2000 20:09:25 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 31556 invoked from network); 14 May 2000 20:09:23 -0000 Received: from mailserver1.hrz.tu-darmstadt.de (root@130.83.126.41) by sourceware.cygnus.com with SMTP; 14 May 2000 20:09:23 -0000 Received: from Chaos (internet@ppp122.stud.tu-darmstadt.de [130.83.177.122]) by mailserver1.hrz.tu-darmstadt.de (8.9.1a/8.9.1) with SMTP id WAA26911 for ; Sun, 14 May 2000 22:09:14 +0200 (MET DST) From: "I.E." To: gcc-help@gcc.gnu.org Subject: a beginner Date: Sun, 14 May 2000 21:58:10 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00051422112300.00691@Chaos> Content-Transfer-Encoding: 8bit Hi I've just started to learn C/C++ on Linux with GCC. Now I'm locking for a mailinglist to ask those annoying beginnersquestions. After locking through the archiv (not understanding most of it) I'm not shure if this is the right place. So before I start bugging you could someone just say Yes, start asking or No, go to .... Thanks I.E. From gcc-help-return-2989-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 15 10:21:21 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 13157 invoked by alias); 15 May 2000 10:21:21 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 13123 invoked from network); 15 May 2000 10:21:19 -0000 Received: from berg.bnf.fr (194.199.4.1) by sourceware.cygnus.com with SMTP; 15 May 2000 10:21:19 -0000 Received: by berg.bnf.fr; id MAA25178; Mon, 15 May 2000 12:06:54 +0200 (CEST) From: Message-Id: <200005151006.MAA25178@berg.bnf.fr> X-Lotus-FromDomain: BNF To: gcc-help@gcc.gnu.org Date: Mon, 15 May 2000 12:19:17 +0200 Subject: Installation gcc 2.95.2 to dynix 4.4.2 Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I try to install Gcc 2.95.2 to sequent (dynix 4.4.2). I've add a compilation option "NO_SYS_SIGLIST" to compile. At the end of stage2, I'can compile builtinbuf.cc, and a compilation error appears: The error message is: /usr/local/newgnu/src/gcc-2.95.2/gcc/xgcc -B/usr/local/newgnu/src/gcc-2.95.2/g cc/ -B/usr/local/newgnu/i386-sequent-sysv4/bin/ -c -g -O2 -fno-implicit-template s -I. -I. -nostdinc++ builtinbuf.cc -o pic/builtinbuf.o /usr/local/newgnu/src/gcc-2.95.2/gcc/xgcc -B/usr/local/newgnu/src/gcc-2.95.2/gcc / -B/usr/local/newgnu/i386-sequent-sysv4/bin/ -c -g -O2 -fno-implicit-templates -I. -I. -nostdinc++ builtinbuf.cc In file included from builtinbuf.h:32, from builtinbuf.cc:29: streambuf.h: In method `void ios::clear(int = 0)': streambuf.h:212: `class ios' has no member named `_throw_failure' streambuf.h: In method `void ios::set(int)': streambuf.h:214: `class ios' has no member named `_throw_failure' streambuf.h: In method `void ios::setstate(int)': streambuf.h:216: `class ios' has no member named `_throw_failure' streambuf.h: In method `ios::operator void *() const': streambuf.h:222: `class ios' has no member named `fail' streambuf.h: In method `int ios::operator !() const': streambuf.h:223: `class ios' has no member named `fail' streambuf.h: In method `void ios::exceptions(int)': streambuf.h:227: `class ios' has no member named `_throw_failure' streambuf.h: In method `class streambuf * ios::rdbuf(streambuf *)': streambuf.h:231: `class ios' has no member named `clear' make[2]: *** [builtinbuf.o] Error 1 make[2]: Leaving directory `/usr/local/newgnu/src/gcc-2.95.2/i386-sequent-sysv4/ libio' make[1]: *** [all-target-libio] Error 2 make[1]: Leaving directory `/usr/local/newgnu/src/gcc-2.95.2' can you,help me Best Regards From gcc-help-return-2990-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 15 13:03:17 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 17277 invoked by alias); 15 May 2000 13:03:17 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 17247 invoked from network); 15 May 2000 13:03:15 -0000 Received: from ursa.calvin.edu (153.106.4.1) by sourceware.cygnus.com with SMTP; 15 May 2000 13:03:15 -0000 Received: from witness (resnet170-157.calvin.edu [153.106.170.157]) by ursa.calvin.edu (8.10.1/8.10.1) with SMTP id e4FD3DR01669 for ; Mon, 15 May 2000 09:03:13 -0400 (EDT) Received: by localhost with Microsoft MAPI; Mon, 15 May 2000 09:02:15 -0400 Message-ID: <01BFBE4C.43C2E020.bmeyer67@calvin.edu> From: Witness Reply-To: "bm_Witness@yahoo.com" To: "'gcc-help@gcc.gnu.org'" Subject: Porting GCC/G++ Date: Mon, 15 May 2000 09:02:14 -0400 X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am working on a project to create an operating system. We would like to have GCC/G++ on it from the start and use it to do development. However, I can't find any documentation on what I need to support the compiler. All the Porting docs I come across are related to porting between processor architectures. Could someone please point me to some good material? Thanks ---------------------------------------------------------------------------- --------------------------------- Benjamen R. Meyer Witness bm_witness@yahoo.com bmeyer67@calvin.edu ---------------------------------------------------------------------------- --------------------------------- At Calvin College: Witness' Web: http://10.1.2.157 HomeWeb: http://10.1.2.157:85 Downloads: http://10.1.2.157:81 Publications: http://10.1.2.157:83 ---------------------------------------------------------------------------- --------------------------------- The OS Project: Remaking Windows Do you want to help? On the Internet: http://members.xoom.com/MaximumOS/ From gcc-help-return-2991-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 15 16:15:56 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 21555 invoked by alias); 15 May 2000 16:15:55 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 21342 invoked from network); 15 May 2000 16:15:47 -0000 Received: from cs.utexas.edu (root@128.83.139.9) by sourceware.cygnus.com with SMTP; 15 May 2000 16:15:47 -0000 Received: from tommygoff.cs.utexas.edu (michmike@tommygoff.cs.utexas.edu [128.83.144.162]) by cs.utexas.edu (8.9.3/8.9.3) with ESMTP id LAA15194; Mon, 15 May 2000 11:15:35 -0500 (CDT) Received: (from michmike@localhost) by tommygoff.cs.utexas.edu (8.9.3/8.9.3) id LAA09070; Mon, 15 May 2000 11:15:26 -0500 Date: Mon, 15 May 2000 11:15:26 -0500 (CDT) From: Michael Michael To: gcc@gcc.gnu.org, gcc-help@gcc.gnu.org Subject: HELP!!! Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi: I am looking to find out what specific optimizations -O2 and -O3 do..both low-level and machine-independent ones and the online docs are not very clear. I need those for some performance testing I need to do. If anyone knows the answers I would be really oblidged. Thanks a lot in advance! --Mike From gcc-help-return-2992-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 15 16:42:33 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 5899 invoked by alias); 15 May 2000 16:42:32 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 5863 invoked from network); 15 May 2000 16:42:29 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 15 May 2000 16:42:29 -0000 Received: from thalia.fm.intel.com (thalia.fm.intel.com [132.233.247.11]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id MAA01442 for ; Mon, 15 May 2000 12:42:16 -0400 Received: from SMTP (fmsmsxvs01-1.fm.intel.com [132.233.42.201]) by thalia.fm.intel.com (8.9.1a+p1/8.9.1/d: relay.m4,v 1.28 2000/05/06 00:07:11 dmccart Exp $) with SMTP id QAA25566 for ; Mon, 15 May 2000 16:43:03 GMT Received: from fmsmsx27.FM.INTEL.COM ([132.233.48.27]) by 132.233.48.201 (Norton AntiVirus for Internet Email Gateways 1.0) ; Mon, 15 May 2000 16:42:14 0000 (GMT) Received: by fmsmsx27.fm.intel.com with Internet Mail Service (5.5.2448.0) id ; Mon, 15 May 2000 09:42:12 -0700 Message-ID: <5D2136DF3DD5D311AE89009027C67FB00D6AA7@fmsmsx96.fm.intel.com> From: "Afzal, Naeem M" To: "'help-gcc@gnu.org'" Subject: Re: compilation errors on 2.95.2 and BSDi 4.0.1 Date: Mon, 15 May 2000 09:42:02 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" I am not able to compile gcc 2.95.2 for BSDi 4.0.1 with binutil2.9 I get following errors: ..... cd f; make "AR_FLAGS_FOR_TARGET=rc" "AR_FOR_TARGET=ar" "BISON=bison" "BISONFL AGS=" "CFLAGS=-O2" "CLIB=" "GCC_FOR_TARGET=/usr/home/naeem/gcc-2.95.2/gcc/xgc c -B/usr/home/naeem/gcc-2.95.2/gcc/ -B/usr/ix/x86toolchain/gcc-2.95.2/i386-pc-bs di4.0.1/bin/ -I/usr/ix/x86toolchain/gcc-2.95.2/i386-pc-bsdi4.0.1/include" "LDFL AGS=" "LEX=lex" "LEXFLAGS=" "LN=ln" "LN_S=ln -s" "MAKEINFO=/usr/home/naeem/ gcc-2.95.2/texinfo/makeinfo/makeinfo " "MAKEINFOFLAGS=" "RANLIB_FOR_TARGET=ran lib" "RANLIB_TEST_FOR_TARGET=[ -f ranlib ] || ( [ "i386-pc-bsdi4.0.1" = "i386- pc-bsdi4.0.1" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" "SHELL=/bin/sh" "STAGE_PREFIX=" "exeext=" "build_exeext=" "objext=.o" "exec_prefix=/usr/ix /x86toolchain/gcc-2.95.2" "prefix=/usr/ix/x86toolchain/gcc-2.95.2" "local_pref ix=/usr/local" "gxx_include_dir=/usr/ix/x86toolchain/gcc-2.95.2/lib/gcc-lib/i38 6-pc-bsdi4.0.1/2.95.2/../../../..`echo /usr/ix/x86toolchain/gcc-2.95.2 | sed -e 's|^/usr/ix/x86toolchain/gcc-2.95.2||' -e 's|/[^/]*|/..|g'`/include/g++-3" "too ldir=/usr/ix/x86toolchain/gcc-2.95.2/i386-pc-bsdi4.0.1" "gcc_tooldir=/usr/ix/x8 6toolchain/gcc-2.95.2/lib/gcc-lib/i386-pc-bsdi4.0.1/2.95.2/../../../../i386- pc-b sdi4.0.1" "bindir=/usr/ix/x86toolchain/gcc-2.95.2/bin" "libsubdir=/usr/ix/x86t oolchain/gcc-2.95.2/lib/gcc-lib/i386-pc-bsdi4.0.1/2.95.2" "datadir=/usr/ix/x86t oolchain/gcc-2.95.2/share" "distdir=../tmp/\$(subdir)" "localedir=/usr/ix/x86t oolchain/gcc-2.95.2/share/locale" "CC=gcc" HOST_CC="`case 'gcc' in stage*) echo 'gcc' | sed -e 's|stage|../stage|g';; *) echo 'gcc';; esac`" HOST_CFLAGS=" -DI N_GCC -O2 -DHAVE_CONFIG_H" HOST_CPPFLAGS=" " ../f771 gcc -DIN_GCC -O2 -DHAVE_CONFIG_H -o fini fini.o proj-h.o fini.o: In function `main': /usr/home/naeem/gcc-2.95.2/gcc/f/fini.c:318: undefined reference to `__eprintf' fini.o: In function `testname': /usr/home/naeem/gcc-2.95.2/gcc/f/fini.c:638: undefined reference to `__eprintf' /usr/home/naeem/gcc-2.95.2/gcc/f/fini.c:639: undefined reference to `__eprintf' fini.o: In function `testnames': /usr/home/naeem/gcc-2.95.2/gcc/f/fini.c:712: undefined reference to `__eprintf' /usr/home/naeem/gcc-2.95.2/gcc/f/fini.c:713: undefined reference to `__eprintf' *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. I am not able to compile gcc 2.95.2 for BSDi 4.0.1 withi binutil2.9 I get following errors: ..... cd f; make "AR_FLAGS_FOR_TARGET=rc" "AR_FOR_TARGET=ar" "BISON=bison" "BISONFL AGS=" "CFLAGS=-O2" "CLIB=" "GCC_FOR_TARGET=/usr/home/naeem/gcc-2.95.2/gcc/xgc c -B/usr/home/naeem/gcc-2.95.2/gcc/ -B/usr/ix/x86toolchain/gcc-2.95.2/i386-pc-bs di4.0.1/bin/ -I/usr/ix/x86toolchain/gcc-2.95.2/i386-pc-bsdi4.0.1/include" "LDFL AGS=" "LEX=lex" "LEXFLAGS=" "LN=ln" "LN_S=ln -s" "MAKEINFO=/usr/home/naeem/ gcc-2.95.2/texinfo/makeinfo/makeinfo " "MAKEINFOFLAGS=" "RANLIB_FOR_TARGET=ran lib" "RANLIB_TEST_FOR_TARGET=[ -f ranlib ] || ( [ "i386-pc-bsdi4.0.1" = "i386- pc-bsdi4.0.1" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" "SHELL=/bin/sh" "STAGE_PREFIX=" "exeext=" "build_exeext=" "objext=.o" "exec_prefix=/usr/ix /x86toolchain/gcc-2.95.2" "prefix=/usr/ix/x86toolchain/gcc-2.95.2" "local_pref ix=/usr/local" "gxx_include_dir=/usr/ix/x86toolchain/gcc-2.95.2/lib/gcc-lib/i38 6-pc-bsdi4.0.1/2.95.2/../../../..`echo /usr/ix/x86toolchain/gcc-2.95.2 | sed -e 's|^/usr/ix/x86toolchain/gcc-2.95.2||' -e 's|/[^/]*|/..|g'`/include/g++-3" "too ldir=/usr/ix/x86toolchain/gcc-2.95.2/i386-pc-bsdi4.0.1" "gcc_tooldir=/usr/ix/x8 6toolchain/gcc-2.95.2/lib/gcc-lib/i386-pc-bsdi4.0.1/2.95.2/../../../../i386- pc-b sdi4.0.1" "bindir=/usr/ix/x86toolchain/gcc-2.95.2/bin" "libsubdir=/usr/ix/x86t oolchain/gcc-2.95.2/lib/gcc-lib/i386-pc-bsdi4.0.1/2.95.2" "datadir=/usr/ix/x86t oolchain/gcc-2.95.2/share" "distdir=../tmp/\$(subdir)" "localedir=/usr/ix/x86t oolchain/gcc-2.95.2/share/locale" "CC=gcc" HOST_CC="`case 'gcc' in stage*) echo 'gcc' | sed -e 's|stage|../stage|g';; *) echo 'gcc';; esac`" HOST_CFLAGS=" -DI N_GCC -O2 -DHAVE_CONFIG_H" HOST_CPPFLAGS=" " ../f771 gcc -DIN_GCC -O2 -DHAVE_CONFIG_H -o fini fini.o proj-h.o fini.o: In function `main': /usr/home/naeem/gcc-2.95.2/gcc/f/fini.c:318: undefined reference to `__eprintf' fini.o: In function `testname': /usr/home/naeem/gcc-2.95.2/gcc/f/fini.c:638: undefined reference to `__eprintf' /usr/home/naeem/gcc-2.95.2/gcc/f/fini.c:639: undefined reference to `__eprintf' fini.o: In function `testnames': /usr/home/naeem/gcc-2.95.2/gcc/f/fini.c:712: undefined reference to `__eprintf' /usr/home/naeem/gcc-2.95.2/gcc/f/fini.c:713: undefined reference to `__eprintf' *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. -------------------------- And if you defind __printf and then compile it again then the compilatoin fails at: ....... for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdi sf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit _ct ors _pure; do echo ${name}; /usr/home/naeem/gcc-2.95.2/gcc/xgcc -B/usr/home/n aeem/gcc-2.95.2/gcc/ -B/usr/ix/x86toolchain/gcc-2.95.2/i386-pc-bsdi4.0.1/bin/ -I /usr/ix/x86toolchain/gcc-2.95.2/i386-pc-bsdi4.0.1/include -O2 -DIN_GCC -O2 -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I./config -I./ ../include -c -DL${name} ./libgcc2.c -o ${name}.o; if [ $? -eq 0 ] ; then tru e; else exit 1; fi; ar rc tmplibgcc2.a ${name}.o; rm -f ${name}.o; done _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf /var/tmp/ccIUuZCz.s: Assembler messages: /var/tmp/ccIUuZCz.s:121: Error: Alignment not a power of 2 *** Error code 1 Stop. *** Error code 1 Stop. ANy help would be appreciated on this issue. thanks naeem From gcc-help-return-2993-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 15 18:27:10 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 1876 invoked by alias); 15 May 2000 18:27:10 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 1816 invoked from network); 15 May 2000 18:26:36 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 15 May 2000 18:26:36 -0000 Received: from zecarneiro.lsd.ic.unicamp.br (IDENT:oliva@zecarneiro.lsd.ic.unicamp.br [143.106.24.141]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id PAA12161; Mon, 15 May 2000 15:26:06 -0300 To: "I.E." Cc: gcc-help@gcc.gnu.org Subject: Re: a beginner References: <00051422112300.00691@Chaos> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 15 May 2000 15:26:04 -0300 In-Reply-To: "I.E."'s message of "Sun, 14 May 2000 21:58:10 +0200" Message-ID: Lines: 14 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 14, 2000, "I.E." wrote: > Now I'm locking for a mailinglist to ask those annoying beginnersques= tions. If the questions are about the C or C++ languages or libraries, this is *not* the right place; instead, try newsgroups such as comp.lang.c and comp.lang.c++. If the questions are about issues particular to GCC usage, this is the mailing list you should be writing to. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-2994-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 16 09:35:57 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 13106 invoked by alias); 16 May 2000 09:35:57 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 13071 invoked from network); 16 May 2000 09:35:51 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 16 May 2000 09:35:51 -0000 Received: from 21cn.com ([202.104.32.246]) by mescaline.gnu.org (8.9.1a/8.9.1) with SMTP id FAA18704 for ; Tue, 16 May 2000 05:35:33 -0400 Message-Id: <200005160935.FAA18704@mescaline.gnu.org> Received: from research([202.103.139.45]) by 21cn.com(JetMail 2.3.2.6) with SMTP id /aimcque/jmail.rcv/9/jm039217423; Tue, 16 May 2000 09:26:45 -0000 Date: Tue, 16 May 2000 17:34:15 +0800 From: maths To: gcc-help Subject: gdb with multiple files X-mailer: FoxMail 3.0 beta 1 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit hello everybody main() in main.c, functions in fun.c, functions declare in fun.h cc with -g switch open # cc -g -c -o main.o main.c # cc -g -c -o fun.o fun.c # cc -g -o foo main.o fun.o # gdb foo in gbd session type list can only get the codes in main.c, how can i find the codes in fun.c? and so i can insert a break point or something. many thanks! ************************************************************** zhang xiaolei Department of mathematics GuangZhou Normal University mailto: maths@21cn.com ************************************************************** From gcc-help-return-2995-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 16 13:04:43 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 32052 invoked by alias); 16 May 2000 13:04:42 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 32020 invoked from network); 16 May 2000 13:04:39 -0000 Received: from kermit.ss.pub.ro (141.85.252.99) by sourceware.cygnus.com with SMTP; 16 May 2000 13:04:39 -0000 Received: (qmail 26446 invoked from network); 16 May 2000 13:02:12 -0000 Received: from adita.cs.pub.ro (HELO adita) (141.85.37.56) by kermit.ss.pub.ro with SMTP; 16 May 2000 13:02:12 -0000 Message-ID: <006a01bfbf37$b5e910c0$3825558d@cs.pub.ro> From: "Senti" To: "gcc-help" Subject: linking question Date: Tue, 16 May 2000 16:07:38 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0067_01BFBF50.DAEB5D10" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 This is a multi-part message in MIME format. ------=_NextPart_000_0067_01BFBF50.DAEB5D10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I have a question related to default linking. If I introduce a new command line option (say -ping) how can I say to = gcc to link a library (say ping.o) whenever he encounters -ping in the command line of = compiler ? Thanks in advance , Adrian ------=_NextPart_000_0067_01BFBF50.DAEB5D10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I have a question related to default linking.
If I introduce a new command line option (say -ping) how can I say = to gcc=20 to link a library
(say ping.o) whenever he encounters -ping in the command line of = compiler=20 ?
 
Thanks in advance , Adrian
 
------=_NextPart_000_0067_01BFBF50.DAEB5D10-- From gcc-help-return-2996-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 17 06:04:31 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 1016 invoked by alias); 17 May 2000 06:04:31 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 984 invoked from network); 17 May 2000 06:04:29 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 17 May 2000 06:04:29 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id IAA19866; Wed, 17 May 2000 08:01:04 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id HAA01188; Wed, 17 May 2000 07:52:27 +0200 Date: Wed, 17 May 2000 07:52:27 +0200 Message-Id: <200005170552.HAA01188@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: senti1@k.ro CC: gcc-help@gcc.gnu.org In-reply-to: <006a01bfbf37$b5e910c0$3825558d@cs.pub.ro> (senti1@k.ro) Subject: Re: linking question References: <006a01bfbf37$b5e910c0$3825558d@cs.pub.ro> > I have a question related to default linking. If I introduce a new > command line option (say -ping) how can I say to gcc to link a > library (say ping.o) whenever he encounters -ping in the command > line of compiler ? You can do that in the specs file. For example, see the processing of the -p option on alpha/vms.h Regards, Martin From gcc-help-return-2997-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 17 06:23:51 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 4512 invoked by alias); 17 May 2000 06:23:51 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 4473 invoked from network); 17 May 2000 06:23:51 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 17 May 2000 06:23:51 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id IAA21453; Wed, 17 May 2000 08:21:08 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id IAA01420; Wed, 17 May 2000 08:19:37 +0200 Date: Wed, 17 May 2000 08:19:37 +0200 Message-Id: <200005170619.IAA01420@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: bm_Witness@yahoo.com CC: gcc-help@gcc.gnu.org In-reply-to: <01BFBE4C.43C2E020.bmeyer67@calvin.edu> (message from Witness on Mon, 15 May 2000 09:02:14 -0400) Subject: Re: Porting GCC/G++ References: <01BFBE4C.43C2E020.bmeyer67@calvin.edu> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > I am working on a project to create an operating system. We would > like to have GCC/G++ on it from the start and use it to do > development. However, I can't find any documentation on what I need > to support the compiler. All the Porting docs I come across are > related to porting between processor architectures. Could someone > please point me to some good material? I don't think there is any material on this topic, other than the chapter "Portability", and the installation instructions (install.texi). If you have specific questions, feel free to ask them on this list. Regards, Martin From gcc-help-return-2998-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 17 06:27:30 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 5276 invoked by alias); 17 May 2000 06:27:30 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 5192 invoked from network); 17 May 2000 06:27:29 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 17 May 2000 06:27:29 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id IAA21456; Wed, 17 May 2000 08:21:09 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id IAA01425; Wed, 17 May 2000 08:20:48 +0200 Date: Wed, 17 May 2000 08:20:48 +0200 Message-Id: <200005170620.IAA01425@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: michmike@cs.utexas.edu CC: gcc@gcc.gnu.org, gcc-help@gcc.gnu.org In-reply-to: (message from Michael Michael on Mon, 15 May 2000 11:15:26 -0500 (CDT)) Subject: Re: HELP!!! References: User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > I am looking to find out what specific optimizations -O2 > and -O3 do..both low-level and machine-independent ones and the > online docs are not very clear. I need those for some performance > testing I need to do. If anyone knows the answers I would be really > oblidged. Just have a look at the section "Optimize Options" of the gcc manual. Regards, Martin From gcc-help-return-2999-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 17 06:34:37 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 7279 invoked by alias); 17 May 2000 06:34:37 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 7208 invoked from network); 17 May 2000 06:34:35 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 17 May 2000 06:34:35 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id IAA22183; Wed, 17 May 2000 08:31:10 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id IAA01481; Wed, 17 May 2000 08:26:02 +0200 Date: Wed, 17 May 2000 08:26:02 +0200 Message-Id: <200005170626.IAA01481@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: prall@r5.mnd.fh-wiesbaden.de CC: gcc-help@gcc.gnu.org In-reply-to: <00051422112300.00691@Chaos> (prall@r5.mnd.fh-wiesbaden.de) Subject: Re: a beginner References: <00051422112300.00691@Chaos> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > I've just started to learn C/C++ on Linux with GCC. Now I'm locking > for a mailinglist to ask those annoying beginnersquestions. > > After locking through the archiv (not understanding most of it) I'm not shure > if this is the right place. No, it isn't. Instead, you should use the language newsgroups, e.g. comp.lang.c, comp.lang.c++, comp.lang.c++.moderated, de.comp.???.c++. Regards, Martin From gcc-help-return-3000-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 17 08:12:03 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 26451 invoked by alias); 17 May 2000 08:12:02 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 26411 invoked from network); 17 May 2000 08:11:58 -0000 Received: from sasi.com (164.164.56.2) by sourceware.cygnus.com with SMTP; 17 May 2000 08:11:58 -0000 Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id NAA26136 for ; Wed, 17 May 2000 13:40:27 +0530 (IST) Received: from pcb68.sasi.com ([10.0.0.68]) by sasi.com; Wed, 17 May 2000 13:40:26 +0000 (IST) Received: from localhost (vinu@localhost) by pcb68.sasi.com (8.9.1/8.9.1) with ESMTP id NAA02842 for ; Wed, 17 May 2000 13:40:28 +0530 Date: Wed, 17 May 2000 13:40:27 +0530 (IST) From: Vinu V Nair To: gcc-help@gcc.gnu.org Subject: -pic Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Any problem if we use object files compiled using -pic option to make static libs using 'ar'? rgds vinu Vinu V. Nair Software Engineer Silicon Automation Systems Limited 5281461/5281229-2213 From gcc-help-return-3001-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 17 09:01:41 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 6933 invoked by alias); 17 May 2000 09:01:40 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 6848 invoked from network); 17 May 2000 09:01:37 -0000 Received: from mises.lufmech.rwth-aachen.de (134.130.177.107) by sourceware.cygnus.com with SMTP; 17 May 2000 09:01:37 -0000 Received: (from markus@localhost) by mises.lufmech.RWTH-Aachen.DE (8.8.6 (PHNE_17135)/8.8.6) id LAA17277; Wed, 17 May 2000 11:01:48 +0200 (MESZ) Date: Wed, 17 May 2000 11:01:48 +0200 (MESZ) Message-Id: <200005170901.LAA17277@mises.lufmech.RWTH-Aachen.DE> From: Markus Werle To: gcc-help@gcc.gnu.org Subject: no download possible for egcs-20000508.tar.gz I visited 5 or 6 mirror sites in germany and the original site: See the dir-list: CHECKSUMS. . . . . . . . . . . . May 8 23:47 1k egcs-20000508.tar.gz . . . . . . May 8 23:47 0k [...] 0 kB is *not* a very big size isn't it? At least the cheapest download I ever had ... Updating, say downloading the diff file from original site failed, too. I give up, please check Your ftp server log files. Thanksalot, Markus From gcc-help-return-3002-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 17 14:30:23 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 12800 invoked by alias); 17 May 2000 14:30:23 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 12769 invoked from network); 17 May 2000 14:30:21 -0000 Received: from mail.bookham.co.uk (HELO mimesweeper.bookham.com) (195.166.17.164) by sourceware.cygnus.com with SMTP; 17 May 2000 14:30:21 -0000 Received: from alpha.bookham.com (unverified) by mimesweeper.bookham.com (Content Technologies SMTPRS 4.1.5) with ESMTP id for ; Wed, 17 May 2000 15:29:38 +0100 Received: by ALPHA with Internet Mail Service (5.5.2650.21) id ; Wed, 17 May 2000 15:30:12 +0100 Message-ID: <86F477BCF025D411912F00508BACC30A2B8E63@ALPHA> From: Stuart Fuller To: "'gcc-help@gcc.gnu.org'" Subject: My first mail to the list =) Date: Wed, 17 May 2000 15:30:02 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" (I hope this is the right group for gdb aswell!!) Hi, I'm new to egcs and gdb and I have a problem. I'm using an SGI Octane runng Irix 6.5.5 I have installed egcs and gdb from tardists off of the SGI freeware page. I have a small test program (crash.c) which will crash when executed: #include "stdio.h" void main() { int array[50], i; for( i = 0; i < 100; i++ ) array[i] = i; } I compile this using 'egcs -o crash crash.c" When I run it it crashes (!!!!) which is okay, however when I do 'gdb crash' followed by a 'run' I get the message: (gdb) run Starting program: /usr/people/stuart/workbench/crash Program received signal SIGSEGV, Segmentation fault. 0x10001118 in __start () at /xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M3/csu/crt1text.s:179 179 /xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M3/csu/crt1text.s: No such file or directory. Current language: auto; currently asm Does anyone know what the hell crt1text is? I have tried changin the crash program to not crash and running that through gdb and it's fine. Help!! Stuart Fuller ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= Any questions about Bookham's E-Mail service should be directed to postmaster@bookham.com. From gcc-help-return-3003-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 17 15:08:47 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 27484 invoked by alias); 17 May 2000 15:08:46 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 27393 invoked from network); 17 May 2000 15:08:41 -0000 Received: from dbritsch.dsl.xmission.com (166.70.156.242) by sourceware.cygnus.com with SMTP; 17 May 2000 15:08:41 -0000 Received: by dbritsch.dsl.xmission.com (Postfix, from userid 502) id B91DA12105; Wed, 17 May 2000 09:09:01 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by dbritsch.dsl.xmission.com (Postfix) with ESMTP id 9ED5D12104; Wed, 17 May 2000 09:09:01 -0600 (MDT) Date: Wed, 17 May 2000 09:09:01 -0600 (MDT) From: To: Stuart Fuller Cc: "'gcc-help@gcc.gnu.org'" Subject: Re: My first mail to the list =) In-Reply-To: <86F477BCF025D411912F00508BACC30A2B8E63@ALPHA> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 17 May 2000, Stuart Fuller wrote: > > (I hope this is the right group for gdb aswell!!) bug-gdb@gnu.org is the gdb mailing list > > Hi, I'm new to egcs and gdb and I have a problem. > I'm using an SGI Octane runng Irix 6.5.5 > I have installed egcs and gdb from tardists off of > the SGI freeware page. > I have a small test program (crash.c) which will crash when > executed: > > #include "stdio.h" > > void main() > { > > int array[50], i; > > for( i = 0; i < 100; i++ ) > array[i] = i; > } > > I compile this using 'egcs -o crash crash.c" When you are planning to debug a program, you should compile with -g, which tells the compiler to include debugging symbols, which the debugger requires. > When I run it it crashes (!!!!) which is okay, > however when I do 'gdb crash' > followed by a 'run' > I get the message: > (gdb) run > Starting program: /usr/people/stuart/workbench/crash > > Program received signal SIGSEGV, Segmentation fault. > 0x10001118 in __start () > at /xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M3/csu/crt1text.s:179 > 179 /xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M3/csu/crt1text.s: No > such file or directory. > Current language: auto; currently asm I believe gdb is failing to find the source file(s) for your program becuase the executable was not compiled with -g . > > Does anyone know what the hell crt1text is? > I have tried changin the crash program to not crash and running that > through gdb and it's fine. > > Help!! > > Stuart Fuller > > > > ======================================================================= > This e-mail is intended for the person it is addressed to only. The [rest of awful confidentiality noticed snipped] Please do not include confidentiality notices when sending to public mailing lists. From gcc-help-return-3004-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 17 18:40:08 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 29684 invoked by alias); 17 May 2000 18:40:07 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 29646 invoked from network); 17 May 2000 18:40:02 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 17 May 2000 18:40:02 -0000 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id PAA28762; Wed, 17 May 2000 15:39:44 -0300 To: Vinu V Nair Cc: gcc-help@gcc.gnu.org Subject: Re: -pic References: From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 17 May 2000 15:39:44 -0300 In-Reply-To: Vinu V Nair's message of "Wed, 17 May 2000 13:40:27 +0530 (IST)" Message-ID: Lines: 13 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 17, 2000, Vinu V Nair wrote: > Any problem if we use object files compiled using -pic option to make > static libs using 'ar'? Nope. But this has nothing to do with GCC. It's a system-dependent linker and run-time loader issue. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3005-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 17 18:41:34 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 30126 invoked by alias); 17 May 2000 18:41:34 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 30077 invoked from network); 17 May 2000 18:41:10 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 17 May 2000 18:41:10 -0000 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id PAA28775; Wed, 17 May 2000 15:41:00 -0300 To: Markus Werle Cc: gcc-help@gcc.gnu.org Subject: Re: no download possible for egcs-20000508.tar.gz References: <200005170901.LAA17277@mises.lufmech.RWTH-Aachen.DE> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 17 May 2000 15:40:59 -0300 In-Reply-To: Markus Werle's message of "Wed, 17 May 2000 11:01:48 +0200 (MESZ)" Message-ID: Lines: 22 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 17, 2000, Markus Werle wr= ote: > I visited 5 or 6 mirror sites in germany and the original site: > See the dir-list: > CHECKSUMS. . . . . . . . . . . . May 8 23:47 1k > egcs-20000508.tar.gz . . . . . . May 8 23:47 0k > [...] > 0 kB is *not* a very big size isn't it? Yep. It's amazing what these recent compressors can do :-) :-) It seems that the ftp server has run out of disk space during the snapshot creating process. This may also be the reason why there was no snapshot this week, so far. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3006-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 18 00:29:11 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 16543 invoked by alias); 18 May 2000 00:29:10 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 16475 invoked from network); 18 May 2000 00:29:08 -0000 Received: from unknown (HELO 21cn.com) (202.104.32.245) by sourceware.cygnus.com with SMTP; 18 May 2000 00:29:08 -0000 Received: from research([202.105.40.247]) by 21cn.com(JetMail 2.3.2.6) with SMTP id /aimcque/jmail.rcv/4/jm163923745e; Thu, 18 May 2000 00:28:02 -0000 Date: Thu, 18 May 2000 8:34:38 +0800 From: maths To: gcc-help@gcc.gnu.org Subject: gdb with multiple files X-mailer: FoxMail 3.0 beta 1 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit hello everybody main() in main.c, functions in fun.c, functions declare in fun.h cc with -g switch open # cc -g -c -o main.o main.c # cc -g -c -o fun.o fun.c # cc -g -o foo main.o fun.o # gdb foo in gbd session type list can only get the codes in main.c, how can i find the codes in fun.c? and so i can insert a break point or something. many thanks! ************************************************************** zhang xiaolei Department of mathematics GuangZhou Normal University mailto: maths@21cn.com ************************************************************** From gcc-help-return-3007-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 18 03:04:18 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 30343 invoked by alias); 18 May 2000 03:04:18 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 30307 invoked from network); 18 May 2000 03:04:15 -0000 Received: from mgicax.ca.mgisoft.com (205.229.95.4) by sourceware.cygnus.com with SMTP; 18 May 2000 03:04:15 -0000 Received: from ca.mgisoft.com (h022.ca.mgisoft.com [205.229.95.22]) by mgicax.ca.mgisoft.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id JZC1VWC9; Wed, 17 May 2000 20:04:49 -0700 Message-ID: <39235DAC.490C369C@ca.mgisoft.com> Date: Wed, 17 May 2000 20:04:12 -0700 From: Dave Klint X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: inline asm References: <958618370.14679.ezmlm@gcc.gnu.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Is there any effort currently underway to expand the functionality of the inline assembly in gnu c? For example, the ability to do asm{ movl %eax,%eax movl foo,%ecx }; would be wonderful (get rid of annoying "\n\t"s). Also, simple things like the ability to resolve memory locations would help alot, for example: struct foo{ int a,b; } foo; main(){ foo.a=1; asm( "movl " foo.a ",%eax\n\t" ); } This would only make things about 3 billion times easier. I know you can do this with the funky asm syntax, but then you don't have complete control over which registers you can use, and I don't like that. If these features aren't currently in egcs, I would be glad to add them if someone could point me to the correct location in the source code. Thanks, Dave Klint From gcc-help-return-3008-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 18 07:47:10 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 17842 invoked by alias); 18 May 2000 07:47:10 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 17790 invoked from network); 18 May 2000 07:47:07 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 18 May 2000 07:47:07 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id JAA20210; Thu, 18 May 2000 09:41:52 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id JAA01284; Thu, 18 May 2000 09:40:29 +0200 Date: Thu, 18 May 2000 09:40:29 +0200 Message-Id: <200005180740.JAA01284@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: davek@ca.mgisoft.com CC: gcc-help@gcc.gnu.org In-reply-to: <39235DAC.490C369C@ca.mgisoft.com> (message from Dave Klint on Wed, 17 May 2000 20:04:12 -0700) Subject: Re: inline asm References: <958618370.14679.ezmlm@gcc.gnu.org> <39235DAC.490C369C@ca.mgisoft.com> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > Is there any effort currently underway to expand the functionality > of the inline assembly in gnu c? In general, no. We are quite happy with it. > For example, the ability to do > asm{ > movl %eax,%eax > movl foo,%ecx > }; > would be wonderful (get rid of annoying "\n\t"s). What's wrong with int main() { asm(" movl %eax,%eax movl foo,%ecx "); } Multiline strings are non-standard, but you are asking for an extension, anyway. > Also, simple things > like the ability to resolve memory locations would help alot, for > example: > > struct foo{ > int a,b; > } foo; > main(){ > foo.a=1; > asm( "movl " foo.a ",%eax\n\t" ); > } > > This would only make things about 3 billion times easier. How about struct foo{ int a,b; } foo; main(){ foo.b=1; asm( "movl %0,%%eax": : "m"(foo.b)); } This compiles to #APP movl foo+4,%eax #NO_APP > you can do this with the funky asm syntax, but then you don't have > complete control over which registers you can use, and I don't like > that. You don't use any registers here; this is a memory reference. > If these features aren't currently in egcs, I would be glad to add > them if someone could point me to the correct location in the source > code. While contributions are highly appreciated, they also require that the contributor becomes familiar with the compiler on her own. Much of the work of enhancing gcc is to find the right way to implement the enhancement (i.e. in a way that is maintainable, works on all targets, etc.). So, whoever would tell you how to do something is often then at about 50% of doing it herself. Regards, Martin From gcc-help-return-3009-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 18 08:17:18 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 24329 invoked by alias); 18 May 2000 08:17:18 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 24297 invoked from network); 18 May 2000 08:17:13 -0000 Received: from unknown (HELO picekl.sanitas.cz) (root@195.39.20.19) by sourceware.cygnus.com with SMTP; 18 May 2000 08:17:13 -0000 Received: from picek ([195.39.20.130]) by picekl.sanitas.cz (8.9.3/8.9.3) with SMTP id KAA27954 for ; Thu, 18 May 2000 10:17:01 +0200 Message-ID: <002101bfc0a2$236acce0$821427c3@picek> From: "Oldrich Kepka" To: "gcc-help@gcc.gnu.org" Subject: inline assembler Date: Thu, 18 May 2000 10:21:57 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Hi. Do anybody know about some good document about inline assembler in gcc. Thanks Oldøich Kepka skola@sanitas.cz http://www.sanitas.cz/~kepka From gcc-help-return-3010-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 18 08:30:29 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 25533 invoked by alias); 18 May 2000 08:30:29 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 25498 invoked from network); 18 May 2000 08:30:24 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 18 May 2000 08:30:24 -0000 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id FAA32717; Thu, 18 May 2000 05:30:20 -0300 To: "Oldrich Kepka" Cc: "gcc-help@gcc.gnu.org" Subject: Re: inline assembler References: <002101bfc0a2$236acce0$821427c3@picek> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 18 May 2000 05:30:19 -0300 In-Reply-To: "Oldrich Kepka"'s message of "Thu, 18 May 2000 10:21:57 +0200" Message-ID: Lines: 11 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 18, 2000, "Oldrich Kepka" wrote: > Do anybody know about some good document about inline assembler in gc= c. How about the GCC manual, for a start? --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3011-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 18 14:59:28 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 30038 invoked by alias); 18 May 2000 14:59:27 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 29996 invoked from network); 18 May 2000 14:59:26 -0000 Received: from unknown (HELO telesoft.com) (209.141.247.244) by sourceware.cygnus.com with SMTP; 18 May 2000 14:59:26 -0000 Received: from telesoft.com (standard3.telesoft.com [207.204.153.193]) by telesoft.com (8.10.0/8.9.3) with ESMTP id e4IEwO312551; Thu, 18 May 2000 07:58:24 -0700 Message-ID: <39240482.5CACE6F9@telesoft.com> Date: Thu, 18 May 2000 07:56:02 -0700 From: Scott Dudley Organization: Telesoft Corp. X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: "gcc@gcc.gnu.org" , "gcc-help@gcc.gnu.org" Subject: gcc-2.95.2 Linux-> AIX Cross Compiler Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm attempting to build a gcc-2.95.2 cross-compiler. host=i686-pc-linux-gnu, target=powerpc-ibm-aix4.3.2.0 I downloaded and built binutils-2.9.1 first. To do so, I ran the following commands: ../binutils-2.9.1/configure --target=powerpc-ibm-aix4.3.2.0 make make install I then built gcc-2.95.2 as follows: ../gcc-2.95.2/configure --enable-languages=c --enable-haifa --with-headers=/usr/local/powerpc-ibm-aix4.3.2.0/include --with-libs=/usr/local/powerpc-ibm-aix4.3.2.0/lib --target=powerpc-ibm-aix4.3.2.0 make make install Everything compiled, linked, and installed in /usr/local/powerpc-ibm-aix4.3.2.0. I copied over all headers and minimum required libraries from an AIX box (first step). When I try to compile, I discovered that the binutils don't recognize the .a file format of the AIX libraries. These are the exact same steps that I used a week ago to successfully create a SPARC/Solaris cross-compiler and it works great! What am I missing? Many thanks. -- Microsoft gives you Windows but Unix gives you the whole house! From gcc-help-return-3012-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 18 15:05:03 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 488 invoked by alias); 18 May 2000 15:05:03 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 426 invoked from network); 18 May 2000 15:05:02 -0000 Received: from igw8.watson.ibm.com (198.81.209.20) by sourceware.cygnus.com with SMTP; 18 May 2000 15:05:02 -0000 Received: from mailhub.watson.ibm.com (mailhub.watson.ibm.com [9.2.250.97]) by igw8.watson.ibm.com (8.9.3/8.9.3/05-14-1999) with ESMTP id LAA14094; Thu, 18 May 2000 11:04:59 -0400 Received: from mal-ach.watson.ibm.com (mal-ach.watson.ibm.com [9.2.223.70]) by mailhub.watson.ibm.com (8.8.7/Feb-20-98) with ESMTP id LAA12954; Thu, 18 May 2000 11:04:58 -0400 Received: from watson.ibm.com (localhost [127.0.0.1]) by mal-ach.watson.ibm.com (AIX4.3/8.9.3/8.9.3/01-10-2000) with ESMTP id LAA28228; Thu, 18 May 2000 11:04:58 -0400 Message-Id: <200005181504.LAA28228@mal-ach.watson.ibm.com> To: Scott Dudley cc: "gcc@gcc.gnu.org" , "gcc-help@gcc.gnu.org" Subject: Re: gcc-2.95.2 Linux-> AIX Cross Compiler In-Reply-To: Message from Scott Dudley of "Thu, 18 May 2000 07:56:02 PDT." <39240482.5CACE6F9@telesoft.com> Date: Thu, 18 May 2000 11:04:58 -0400 From: David Edelsohn None of the released versions of binutils understand AIX 4.3. The current snapshots of the GNU assembler understands AIX 4.3, but I do not believe that GNU linker support is complete. Cygnus currently is working to provide this support. David From gcc-help-return-3013-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 19 08:01:49 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 3599 invoked by alias); 19 May 2000 08:01:46 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 3569 invoked from network); 19 May 2000 08:01:43 -0000 Received: from rodin.krdl.org.sg (HELO krdl.org.sg) (root@192.122.139.27) by egcs.cygnus.com with SMTP; 19 May 2000 08:01:43 -0000 Received: from mailhost.krdl.org.sg (mailhost [192.122.134.30]) by krdl.org.sg (8.9.3/8.9.3) with ESMTP id QAA08929 for ; Fri, 19 May 2000 16:09:32 +0800 Received: from krdl.org.sg (singaren49 [192.122.135.198]) by mailhost.krdl.org.sg (8.9.3/8.9.3) with ESMTP id QAA12694 for ; Fri, 19 May 2000 16:00:45 +0800 (SGT) Message-ID: <3924F3E8.7D103071@krdl.org.sg> Date: Fri, 19 May 2000 15:57:28 +0800 From: zhu qun ying Organization: KRDL X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: cross-build for strongarm, failed on pthread.h Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit While trying to build the cross compiler for strongarm, i have the folowing error (I am building the CVS version on 19 May 2000): /home/qyzhu/gcc/src/build/gcc/xgcc -B/home/qyzhu/gcc/src/build/gcc/ -B/usr/local/arm/arm-linux/bin/ -I/usr/local/arm/arm-linux/include -O2 -DCROSS_COMPILE -DIN_GCC -g -O2 -isystem ./include -fomit-frame-pointer -fPIC -g0 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I../../src/gcc -I../../src/gcc/config -I../../src/gcc/../include -fexceptions -DL_eh -c ../../src/gcc/libgcc2.c -o libgcc/./_eh.o In file included from gthr-default.h:1, from ../../src/gcc/gthr.h:98, from ../../src/gcc/libgcc2.c:2984: ../../src/gcc/gthr-posix.h:37:20: pthread.h: No such file or directory make[2]: *** [libgcc/./_eh.o] Error 1 The configurion passed to the "configure" script is: ../src/configure --target=arm-linux --prefix=/usr/local/arm --with-cpu=strongarm1100 --enable-new-gxx-abi --enable-libstdcxx-v3 --disable-threads From gcc-help-return-3014-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 19 14:57:33 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 7394 invoked by alias); 19 May 2000 14:57:33 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 7350 invoked from network); 19 May 2000 14:57:32 -0000 Received: from intrepid.intrepid.com (root@192.195.190.1) by egcs.cygnus.com with SMTP; 19 May 2000 14:57:32 -0000 Received: from presto.Intrepid.Com (presto [192.195.190.8]) by intrepid.intrepid.com (8.9.3/8.9.3) with ESMTP id IAA20477; Fri, 19 May 2000 08:00:50 -0700 Received: by presto.Intrepid.Com (8.7.5/3.2.083191-Intrepid Technology) id OAA10094; Fri, 19 May 2000 14:57:31 GMT From: gary@Intrepid.Com (Gary Funck) Message-Id: <10005190757.ZM10092@presto.intrepid.com> Date: Fri, 19 May 2000 07:57:31 -0700 In-Reply-To: Alexandre Oliva "Re: inline assembler" (May 18, 5:30am) References: <002101bfc0a2$236acce0$821427c3@picek> X-Mailer: Z-Mail (3.2.3 08feb96 MediaMail) To: Alexandre Oliva , "Oldrich Kepka" Subject: Re: inline assembler Cc: "gcc-help@gcc.gnu.org" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 18, 5:30am, Alexandre Oliva wrote: > Subject: Re: inline assembler > On May 18, 2000, "Oldrich Kepka" wrote: > > > Do anybody know about some good document about inline assembler in gcc. > > How about the GCC manual, for a start? On Linux, or any system where "info" is installed. Try "info gcc", to access the GCC manual, then select "C extensions", and "Extended Asm." for details. From gcc-help-return-3015-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sat May 20 23:40:23 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 7061 invoked by alias); 20 May 2000 23:40:22 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 7031 invoked from network); 20 May 2000 23:40:20 -0000 Received: from mescaline.gnu.org (we-refuse-to-spy-on-our-users@158.121.106.21) by egcs.cygnus.com with SMTP; 20 May 2000 23:40:20 -0000 Received: from web1702.mail.yahoo.com (web1702.mail.yahoo.com [128.11.23.213]) by mescaline.gnu.org (8.9.1a/8.9.1) with SMTP id TAA21983 for ; Sat, 20 May 2000 19:40:16 -0400 Message-ID: <20000520234014.11696.qmail@web1702.mail.yahoo.com> Received: from [209.239.199.85] by web1702.mail.yahoo.com; Sat, 20 May 2000 16:40:14 PDT Date: Sat, 20 May 2000 16:40:14 -0700 (PDT) From: D Lam Subject: Help in Running Free GCC Compiler from Internet To: help-gcc@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hello: I downloaded the files required to install the GCC compiler from a Web site (http://agnes.dida.physik.uni-essen.de/~janjaap/mingw32/download.html). I followed the instructions and installed the zipped files in a directory in my C drive (C:\Mingw32). I next unzipped the files. Next, at the C prompt in MSDOS, I typed "gcc -v". It then gave me a response that signifies that the compiler is running correctly (as indicated in the instructions). I am not sure how I can compile a sample program (say, sample.c) at the MS DOS prompt which I store in the root directory of C (C:\). I tried typing the following at the c drive prompt in MS DOS: C:\>gcc sample.c C:\>gcc c:\sample.c The message that I get back is: GCC.EXE: No such file or directory GCC.EXE: No input files I am not sure what I am doing wrong. Thank you in advance for your help. -Dick Lam __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ From gcc-help-return-3016-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 22 18:14:22 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 29150 invoked by alias); 22 May 2000 18:14:22 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 29118 invoked from network); 22 May 2000 18:14:20 -0000 Received: from mescaline.gnu.org (we-refuse-to-spy-on-our-users@158.121.106.21) by egcs.cygnus.com with SMTP; 22 May 2000 18:14:20 -0000 Received: from mgate.auspex.com (mgate.auspex.com [144.48.60.181]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id OAA31341 for ; Mon, 22 May 2000 14:14:12 -0400 Received: (from smap@localhost) by mgate.auspex.com (8.8.8/8.8.8) id LAA06079 for ; Mon, 22 May 2000 11:13:34 -0700 (PDT) X-Authentication-Warning: mgate.auspex.com: smap set sender to using -f Received: from mailhub.corp.auspex.com(144.48.60.8) by mgate.corp.auspex.com via smap (V2.0) id xma006065; Mon, 22 May 00 11:13:10 -0700 Received: from sarmant (host-62-201.auspex.com [144.48.62.201] (may be forged)) by mailhub.corp.auspex.com (8.8.8/8.8.8) with SMTP id LAA16618 for ; Mon, 22 May 2000 11:13:10 -0700 (PDT) Message-Id: <3.0.5.32.20000522111325.00bcd7f0@mailhub.corp.auspex.com> X-Sender: omar@mailhub.corp.auspex.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Mon, 22 May 2000 11:13:25 -0700 To: help-gcc@gnu.org From: Omar Gadir Subject: Pentuim lll Compilers Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hi, We have been using GNU compiler provided by Cygnus for free. Recently, after Cygnus became part of Red Hat, we tried to get a copy of the compiler from Cygnus. They quoted a very expensive price and they stressed that the price includes source code support. An ordinary user does not need source code support. They insisted that paying for the source code support is the only way to get Pentuim lll compiler. How can I get Pentuim lll GNU cross compiler (running on Solaris) without paying thousands of dollars for it. Thanks Omar > I have been trying to find a GNU cross compiler, to run under solaris and > generate code for Intel processors. I believe that you can build a cross compiler simply by telling GCC to build that way when you run ./configure. > Is it true that the only place to find a compiler which supports Pentuim > lll is Red Hat. Red Hat prices (previously Cygnjs) is prohibitively > expensive. They make a customer pay for the source code support. An > ordinary user does not care about this. This sounds very odd to me, as I am under the impression that Cygnus' work on GCC is contributed back to the core of GCC. However, I would suggest that you send these questions to the GCC users' mailing list: help-gcc@gnu.org. This is gated to the news group, gnu.gcc.help. You can subscribe to the mailing list by sending the word "subscribe" to the address help-gcc-request@gnu.org. They will know for sure. From gcc-help-return-3017-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 22 21:38:42 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 605 invoked by alias); 22 May 2000 21:38:41 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 541 invoked from network); 22 May 2000 21:38:39 -0000 Received: from mail.ee.gatech.edu (130.207.230.10) by egcs.cygnus.com with SMTP; 22 May 2000 21:38:39 -0000 Received: from shark.eecom.gatech.edu (shark.eecom.gatech.edu [130.207.231.121]) by mail.ee.gatech.edu (8.9.3/8.9.3) with ESMTP id RAA18493; Mon, 22 May 2000 17:31:27 -0400 (EDT) Received: (from pant@localhost) by shark.eecom.gatech.edu (8.8.4/8.8.4) id RAA01963; Mon, 22 May 2000 17:31:27 -0400 (EDT) X-Authentication-Warning: shark.eecom.gatech.edu: pant set sender to pant@ee.gatech.edu using -f To: gcc@gcc.gnu.org, gcc-help@gcc.gnu.org Subject: Looking for advice on manipulating asm code From: Pankaj Pant Date: 22 May 2000 17:31:26 -0400 Message-ID: Lines: 38 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Bryce Canyon) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi, I am not sure if this is the right place to ask this question, but I couldn't find any other forum. How difficult is it to manipulate the target asm code such that all instructions that need similar execution units are grouped together (taking care of dependencies, of course). Eg. Mul ... Add ... Mul ... would be reordered as: Mul ... Mul ... Add ... if the last two instructions can be interchanged. I tried looking at the gcc code, but I couldn't determine how easy it would be to modify gcc itself. I am looking for suggestions on whether I should delve into gcc, or write a post-processor which directly works on the asm. Thanks for any tips. I'm not subscribed to these lists. I'll check the archives in a few days, but I'd appreciate it if any responses could also be mailed to me at pant@ee.gatech.edu. - Pankaj. PS: the code is targeted at the SimpleScalar architecture, for which a compiler (derived from gcc), simulator and other tools can be found at: http://www.cs.wisc.edu/~mscalar/simplescalar.html From gcc-help-return-3018-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 22 22:35:43 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 22861 invoked by alias); 22 May 2000 22:35:42 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 22815 invoked from network); 22 May 2000 22:35:40 -0000 Received: from unknown-1-11.wrs.com (HELO mail.wrs.com) (147.11.1.11) by egcs.cygnus.com with SMTP; 22 May 2000 22:35:40 -0000 Received: from kankakee.wrs.com (kankakee [147.11.37.13]) by mail.wrs.com (8.9.3/8.9.1) with ESMTP id PAA04798; Mon, 22 May 2000 15:34:59 -0700 (PDT) From: Mike Stump Received: (from mrs@localhost) by kankakee.wrs.com (8.9.1/8.9.0) id PAA19350; Mon, 22 May 2000 15:35:24 -0700 (PDT) Date: Mon, 22 May 2000 15:35:24 -0700 (PDT) Message-Id: <200005222235.PAA19350@kankakee.wrs.com> To: gcc-help@gcc.gnu.org, gcc@gcc.gnu.org, pant@ece.gatech.edu Subject: Re: Looking for advice on manipulating asm code > To: gcc@gcc.gnu.org, gcc-help@gcc.gnu.org > From: Pankaj Pant > Date: 22 May 2000 17:31:26 -0400 > How difficult is it to manipulate the target asm code Target asm code isn't manipulated. rtl is manipulated. gcc does this type of operation. Generally speaking, gcc already has all the relevant information to do these types of transformations, if you provide a complete port. > I tried looking at the gcc code, but I couldn't determine how easy it would > be to modify gcc itself. I am looking for suggestions on whether I should > delve into gcc Yes. See the manual on how-why-where. In your case, find all uses of the term function_unit. grep function_unit *.texi (for example). Then, figure out how to apply that information to complete your port. See other ports for examples of how it is used. > or write a post-processor which directly works on the asm. No, this is wrong. From gcc-help-return-3019-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 22 23:21:11 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 3804 invoked by alias); 22 May 2000 23:21:10 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 3715 invoked from network); 22 May 2000 23:21:07 -0000 Received: from mescaline.gnu.org (158.121.106.21) by egcs.cygnus.com with SMTP; 22 May 2000 23:21:07 -0000 Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id TAA03242 for ; Mon, 22 May 2000 19:21:00 -0400 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id BAA08647; Tue, 23 May 2000 01:15:10 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id BAA01073; Tue, 23 May 2000 01:13:12 +0200 Date: Tue, 23 May 2000 01:13:12 +0200 Message-Id: <200005222313.BAA01073@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: omar@corp.auspex.com CC: help-gcc@gnu.org In-reply-to: <3.0.5.32.20000522111325.00bcd7f0@mailhub.corp.auspex.com> (message from Omar Gadir on Mon, 22 May 2000 11:13:25 -0700) Subject: Re: Pentuim lll Compilers References: <3.0.5.32.20000522111325.00bcd7f0@mailhub.corp.auspex.com> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > How can I get Pentuim lll GNU cross compiler (running on Solaris) > without paying thousands of dollars for it. You can get the source code of gcc from gcc.gnu.org, and you can then build the cross-compiler yourself, all without paying anything to Cygnus. Please understand that this list will only provide limited help should you run into problems; support is one of the reasons you may want to pay the money, anyway. Regards, Martin From gcc-help-return-3020-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 23 06:55:37 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 3209 invoked by alias); 23 May 2000 06:55:37 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 3178 invoked from network); 23 May 2000 06:55:36 -0000 Received: from eol.mt.luth.se (root@130.240.1.16) by sourceware.cygnus.com with SMTP; 23 May 2000 06:55:36 -0000 Received: from mt.luth.se (avari6.mt.luth.se [130.240.21.55]) by eol.mt.luth.se (8.10.1/8.10.1) with ESMTP id e4N6tXS07115; Tue, 23 May 2000 08:55:33 +0200 (MET DST) Message-ID: <392A2B91.1FDC4802@mt.luth.se> Date: Tue, 23 May 2000 08:56:17 +0200 From: Hans Weber X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: gcc_debian_linux_code_on_freebsd Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Dear Sirs I have a rather odd problem with gcc. (version 2.95.1) My question is How can I get faster code from freebsd gcc compiler? Code compiled on a Debian linux machine (installed feb 2000) with gcc (2.95) is 20 % faster on my freebsd machine compared to if I compile on my freebsd machines gcc (2.95.1) and then run it on my freebsd machine. I have linux compat enabled. I would like to get at least equally fast code from gcc freebsd as I get from gcc on debian code run on freebsd. The program is a molecular dynamics program doing lots of floats. The times are typically (test runs): compiled and run on freebsd 36 seconds compiled on debian and run on freebsd 30 seconds Compile is done with on both debian and freebsd. gcc -O -o langevin langevin.c -lm I have checked out the gcc compiler options on http://gcc.gnu.org/benchresults/aov.html and tried several combinations of them on my gcc freebsd but I never get below 34.5 seconds. Not near the debian-gcc code performance on freebsd. I have tried some tricks with setenv and a variable with lots of characters this can result in (I got this from tip from a friend) compiled and run on freebsd becoming 34.5 seconds and these are the includes in my program. # include # include # include # include I have just added smp and taken out i386 and i486 from build fysik3 102> cat motd FreeBSD 4.0-RELEASE (SMPKERNEL) #1: Tue May 9 13:24:58 CEST 2000 I downloaded the FreeBSD in the beginning of May. Best regards Hans Weber Department of Physics Luleå University of Technology Sweden. From gcc-help-return-3021-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 23 10:03:07 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 22142 invoked by alias); 23 May 2000 10:03:07 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 22106 invoked from network); 23 May 2000 10:03:03 -0000 Received: from mescaline.gnu.org (we-refuse-to-spy-on-our-users@158.121.106.21) by sourceware.cygnus.com with SMTP; 23 May 2000 10:03:03 -0000 Received: from operamail.com (OperaMail.com [199.29.68.79]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id GAA12935 for ; Tue, 23 May 2000 06:02:59 -0400 X-WM-Posted-At: operamail.com; Tue, 23 May 00 06:05:13 -0400 X-WebMail-UserID: hs.gill Date: Tue, 23 May 2000 06:05:13 -0400 From: Harvinder Singh Gill To: help-gcc@gnu.org X-EXP32-SerialNo: 00000001 Subject: compile time error in gnat-ada95 Message-ID: <393473F9@operamail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: InterChange (Hydra) SMTP v3.61.01 Dear sir, I have started to learn Ada95 language. I have the GNAT Ada95 complier version 3.11 p. I have the executable self installing file for Windows 95/NT. I installed it in D: partition of the hard disk because there was less space in c: drive. The autoexec.bat file has the path updated to include d:\gnat\bin. The compiler was installed without any error messages and problems. PROBLEM: The ADAGIDE.exe file though functioning is not compliling even the simplest hello world example. INPUT FILE: -- Print a simple message to demonstrate a trivial Ada program. with Ada.Text_IO; use Ada.Text_IO; -- use clause - automatically search Ada.Text_IO. procedure Hello2 is begin Put_Line("Hello, world!"); -- Note: No longer has Ada.Text_IO" in front. end Hello2; COMPILE RESULT: Compiling ... \cca 929941.s No such file or directory gnat1.exe: Completed. *** MY OBSERVATION: each attempt to compile the program gives the same result except that the numbers in \cca #####.s are always different, though always 5 digits long. BUILD RESULT: GNATMAKE 3.11p (981118) copyright 1995-1998 Free Software Foundation, Inc. "hello2.ali" being checked... ->"hello2.ali" missing gcc -c -Id:\gnat\lovelace\ -gnatwu -gnatx2 -gnato -g -I- d:\gnat\lovelace\hello2.adb \cca 70541.s: No such file or directory gnat1.exe: gnatmake: "d:\gnat\lovelace\hello2.adb" compilation error Completed *** MY CONCLUSION: I thought that the compiler was not able to find the RTL. So to check this I removed the Ada.Text_IO references from the hello2.adb file. But this yielded the same errors on compliation. So I copied the file to d:\gnat\examples and compiled again but got the same results. Then I tried manual compilation after reading the Gnat User's Guide. The reults of manual compilation are as under : step 1: gcc -c hello2.adb result : gnat1.exe \cca73149.s No such file or directory step 2: gnat1 hello2.adb result : the compiler makes "hello2.ali" and "hello2.s" files. step 3: gcc -c hello2.adb result : gnat1.exe \cca73149.s No such file or directory step 4: gcc -c hello2.s result : "hello2.o" file is produced. step 5: gnatbind hello2.ali result : no file generated and no error messages generated. step 6: gnatlink hello2.ali result: cpp.exe: Usage: d:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\cpp.exe [switches] input output I do not have any knowledge of the switches to be used with cpp.exe. I am new to GNAT compiler and the gcc compiler. I have tried to read the documentation but could not find info to resolve this problem. Kindly help me out and give suggestions to produce the exe files. Also I believe something is wrong with either my environment or the adagide file since it is not compiling the input files. Kindly advice. The autoexec.bat file of my system is given below ______________________________________________________________________________ ____________ @C:\PROGRA~1\GRISOFT\AVG6\bootup.exe C:\PROGRA~1\QUICKH~1\QHSTRUP.EXE @echo off prompt $p$g path=C:\WINDOWS;C:\WINDOWS\COMMAND;c:\dos;c:\winrar;d:\unzip;d:\lha;C:\PROGRA~ 1\GRISOFT\AVG6 set path=C:\jdk1.2.1\bin;%path% set TMP=C:\WINDOWS\TEMP rem - By Windows Setup - C:\WINDOWS\COMMAND\MSCDEX.EXE /D:MSCD001 /V /M:8 doskey SET PATH=D:\GNAT\BIN;C:\PROGRA~1\MTS;%PATH% ______________________________________________________________________________ ___________ System configuration is: pentium-II 233 Mhz 128 mb ram windows-95 Thinking that there might be some problem with the gnat-3.11p version while downloading, i downloaded the newer gnat-3.12p also. However, the same problem continues. kindly advice. i am desperate to try out ada programming. thank you for your time Harvinder Singh Gill From gcc-help-return-3022-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 23 13:15:20 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 3983 invoked by alias); 23 May 2000 13:15:20 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 3943 invoked from network); 23 May 2000 13:15:17 -0000 Received: from mescaline.gnu.org (we-refuse-to-spy-on-our-users@158.121.106.21) by sourceware.cygnus.com with SMTP; 23 May 2000 13:15:17 -0000 Received: from server030.fwb.saic.com ([204.49.39.2]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id JAA21398 for ; Tue, 23 May 2000 09:15:13 -0400 Received: from Cohen ([204.49.39.27]) by server030.fwb.saic.com (8.8.8/8.8.8) with SMTP id HAA02313; Tue, 23 May 2000 07:13:05 -0500 Message-ID: <002d01bfc4b8$b0343020$1b2731cc@FWB.SAIC.Com> Reply-To: "Larry Cohen" From: "Larry Cohen" To: Cc: Subject: Request for status on fix for limitations with g77 -fdebug_kludge option Date: Tue, 23 May 2000 08:12:49 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2615.200 To Whom It May Concern; I have recently downloaded and installed gcc-2.95.2 and gdb-5.0 packages for the purposes of compiling and running FORTRAN-77 programs. The gcc package documentation states that gdb is currently incapable of printing out the values of variables that are part of COMMON BLOCK storage and that rudimentary COMMON BLOCK variable information could be retrieved within gdb by invoking the -fdebug-kludge option during the g77 compile process. Also, the documentation states that this limitation in printing out the explicit value of a COMMON BLOCK variable will be fixed in some future release of gcc and gdb. Would you please send me any information about when these future gcc and gdb releases (that print out the value of a COMMON BLOCK variable) will occur. Larry Cohen Senior Analyst Science Applications International Corporation 2018-A Lewis Turner Blvd. Ft. Walton Beach, FL 32547 Tel.: (850) 863 - 3124 Fax: (850) 862 -0720 e-mail: cohenl@saic.com From gcc-help-return-3023-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 23 18:08:09 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 24443 invoked by alias); 23 May 2000 18:08:08 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 24370 invoked from network); 23 May 2000 18:08:05 -0000 Received: from pop.gmx.net (HELO mail03.rzmi.gmx.net) (194.221.183.20) by sourceware.cygnus.com with SMTP; 23 May 2000 18:08:05 -0000 Received: (qmail 25421 invoked by uid 0); 23 May 2000 18:07:36 -0000 Received: from a1as03-p49.stg.tli.de (HELO gmx.de) (195.252.186.49) by mail03.rzmi.gmx.net with SMTP; 23 May 2000 18:07:36 -0000 Message-ID: <392AC8A6.52889E3A@gmx.de> Date: Tue, 23 May 2000 20:06:30 +0200 From: bronkoBill X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.13 i686) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: searching docu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hi all, i'm new to this list, and also new to c/c++, so i dont know if this is the right place for my question. if i type "info gpc" there appears really cool information about gpc. not only about special gpc-features, but also about commands and lots of other thinks. now, if i type "info g++", there only appears the syntax and command-line options of g++. is there a way to get such cool information like with gpc. thanks alot for the answers. bronkoBill From gcc-help-return-3024-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 23 19:28:24 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 19526 invoked by alias); 23 May 2000 19:28:24 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 19484 invoked from network); 23 May 2000 19:28:22 -0000 Received: from mescaline.gnu.org (we-refuse-to-spy-on-our-users@158.121.106.21) by sourceware.cygnus.com with SMTP; 23 May 2000 19:28:22 -0000 Received: from grande.dcc.unicamp.br (grande.dcc.unicamp.br [143.106.7.8]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id PAA17376 for ; Tue, 23 May 2000 15:28:08 -0400 Received: from amazonas.dcc.unicamp.br (amazonas.dcc.unicamp.br [143.106.7.11]) by grande.dcc.unicamp.br (8.9.3/8.9.3) with ESMTP id QAA06842; Tue, 23 May 2000 16:27:41 -0300 (EST) Received: from tamanduatei.dcc.unicamp.br (tamanduatei.dcc.unicamp.br [143.106.23.208]) by amazonas.dcc.unicamp.br (8.8.5/8.8.5) with SMTP id QAA02919; Tue, 23 May 2000 16:27:35 -0300 (EST) To: Harvinder Singh Gill Cc: help-gcc@gnu.org Subject: Re: compile time error in gnat-ada95 References: <393473F9@operamail.com> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 23 May 2000 16:27:37 -0300 In-Reply-To: Harvinder Singh Gill's message of "Tue, 23 May 2000 06:05:13 -0400" Message-ID: Lines: 13 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 23, 2000, Harvinder Singh Gill wrote: > I have started to learn Ada95 language. I have the GNAT Ada95 > complier version 3.11 p. I have the executable self installing file > for Windows 95/NT. You may have better luck at some GNAT-specific mailing list. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3025-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 23 19:28:32 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 19656 invoked by alias); 23 May 2000 19:28:32 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 19226 invoked from network); 23 May 2000 19:27:47 -0000 Received: from grande.dcc.unicamp.br (143.106.7.8) by sourceware.cygnus.com with SMTP; 23 May 2000 19:27:47 -0000 Received: from amazonas.dcc.unicamp.br (amazonas.dcc.unicamp.br [143.106.7.11]) by grande.dcc.unicamp.br (8.9.3/8.9.3) with ESMTP id QAA06816; Tue, 23 May 2000 16:26:46 -0300 (EST) Received: from tamanduatei.dcc.unicamp.br (tamanduatei.dcc.unicamp.br [143.106.23.208]) by amazonas.dcc.unicamp.br (8.8.5/8.8.5) with SMTP id QAA02857; Tue, 23 May 2000 16:26:37 -0300 (EST) To: Hans Weber Cc: gcc-help@gcc.gnu.org Subject: Re: gcc_debian_linux_code_on_freebsd References: <392A2B91.1FDC4802@mt.luth.se> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 23 May 2000 16:26:39 -0300 In-Reply-To: Hans Weber's message of "Tue, 23 May 2000 08:56:17 +0200" Message-ID: Lines: 16 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 23, 2000, Hans Weber wrote: > I have a rather odd problem with gcc. (version 2.95.1) > My question is How can I get faster code from freebsd gcc compiler? 1) upgrade both to GCC 2.95.2 and try again 2) see if they're configured to optimize for the same CPU variant (e.g., i586 or i686) --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3026-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 23 19:29:46 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 20233 invoked by alias); 23 May 2000 19:29:46 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 20190 invoked from network); 23 May 2000 19:29:44 -0000 Received: from mescaline.gnu.org (we-refuse-to-spy-on-our-users@158.121.106.21) by sourceware.cygnus.com with SMTP; 23 May 2000 19:29:44 -0000 Received: from grande.dcc.unicamp.br (grande.dcc.unicamp.br [143.106.7.8]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id PAA17408 for ; Tue, 23 May 2000 15:29:23 -0400 Received: from amazonas.dcc.unicamp.br (amazonas.dcc.unicamp.br [143.106.7.11]) by grande.dcc.unicamp.br (8.9.3/8.9.3) with ESMTP id QAA06876; Tue, 23 May 2000 16:29:00 -0300 (EST) Received: from tamanduatei.dcc.unicamp.br (tamanduatei.dcc.unicamp.br [143.106.23.208]) by amazonas.dcc.unicamp.br (8.8.5/8.8.5) with SMTP id QAA02978; Tue, 23 May 2000 16:28:57 -0300 (EST) To: "Larry Cohen" Cc: , Subject: Re: Request for status on fix for limitations with g77 -fdebug_kludge option References: <002d01bfc4b8$b0343020$1b2731cc@FWB.SAIC.Com> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 23 May 2000 16:29:00 -0300 In-Reply-To: "Larry Cohen"'s message of "Tue, 23 May 2000 08:12:49 -0500" Message-ID: Lines: 13 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 23, 2000, "Larry Cohen" wrote: > Would you please send me any information about when these future > gcc and gdb releases (that print out the value of a COMMON BLOCK > variable) will occur. When someone contributes this feature. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3027-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 23 19:31:25 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 21179 invoked by alias); 23 May 2000 19:31:25 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 21077 invoked from network); 23 May 2000 19:31:14 -0000 Received: from grande.dcc.unicamp.br (143.106.7.8) by sourceware.cygnus.com with SMTP; 23 May 2000 19:31:14 -0000 Received: from amazonas.dcc.unicamp.br (amazonas.dcc.unicamp.br [143.106.7.11]) by grande.dcc.unicamp.br (8.9.3/8.9.3) with ESMTP id QAA06916; Tue, 23 May 2000 16:30:14 -0300 (EST) Received: from tamanduatei.dcc.unicamp.br (tamanduatei.dcc.unicamp.br [143.106.23.208]) by amazonas.dcc.unicamp.br (8.8.5/8.8.5) with SMTP id QAA03077; Tue, 23 May 2000 16:30:12 -0300 (EST) To: bronkoBill Cc: gcc-help@gcc.gnu.org Subject: Re: searching docu References: <392AC8A6.52889E3A@gmx.de> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 23 May 2000 16:30:13 -0300 In-Reply-To: bronkoBill's message of "Tue, 23 May 2000 20:06:30 +0200" Message-ID: Lines: 16 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 23, 2000, bronkoBill wrote: > if i type "info gpc" there appears really cool information about gpc. > now, if i type "info g++", there only appears the syntax and > command-line options of g++. You're getting the g++ man-page. You'll get g++ documentation with `info gcc', since g++ is fully integrated into gcc, and there's no separate manual. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3028-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 23 19:39:08 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 24918 invoked by alias); 23 May 2000 19:39:08 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 24881 invoked from network); 23 May 2000 19:39:06 -0000 Received: from unknown (HELO upchuck.cygnus.com) (root@208.224.120.150) by sourceware.cygnus.com with SMTP; 23 May 2000 19:39:06 -0000 Received: from upchuck (law@localhost [127.0.0.1]) by upchuck.cygnus.com (8.8.7/8.8.7) with ESMTP id NAA07895; Tue, 23 May 2000 13:39:01 -0600 X-Mailer: exmh version 2.0.2 To: Alexandre Oliva cc: Hans Weber , gcc-help@gcc.gnu.org Subject: Re: gcc_debian_linux_code_on_freebsd Reply-To: law@cygnus.com In-reply-to: Your message of 23 May 2000 16:26:39 -0300. Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Tue, 23 May 2000 13:39:01 -0600 Message-ID: <7892.959110741@upchuck> From: Jeffrey A Law In message you write: > On May 23, 2000, Hans Weber wrote: > = > > I have a rather odd problem with gcc. (version 2.95.1) > = > > My question is How can I get faster code from freebsd gcc compiler?= > = > 1) upgrade both to GCC 2.95.2 and try again > = > 2) see if they're configured to optimize for the same CPU variant > (e.g., i586 or i686) He could also be getting different stack alignments which could have a significant impact on the speed of the code if he's doing floating point.= jeff From gcc-help-return-3029-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 24 01:58:26 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 18368 invoked by alias); 24 May 2000 01:58:26 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 18336 invoked from network); 24 May 2000 01:58:24 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 24 May 2000 01:58:24 -0000 Received: from andrew1.lnk.telstra.net (andrew1.lnk.telstra.net [139.130.51.121]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id VAA23291 for ; Tue, 23 May 2000 21:58:16 -0400 Received: (from uucp@localhost) by andrew1.lnk.telstra.net (8.9.3/8.9.3) id LAA07123; Wed, 24 May 2000 11:57:20 +1000 (EST) (envelope-from ac131313@cygnus.com) Received: from localhost.cygnus.com(127.0.0.1), claiming to be "cygnus.com" via SMTP by localhost.cygnus.com, id smtpdxD7121; Wed May 24 11:57:14 2000 Message-ID: <392B36FA.67079BC8@cygnus.com> Date: Wed, 24 May 2000 11:57:14 +1000 From: Andrew Cagney Organization: Cygnus Solutions X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 3.4-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Larry Cohen CC: help-gcc@gnu.org, gdb@sourceware.cygnus.com Subject: Re: Request for status on fix for limitations with g77 -fdebug_kludge option References: <002d01bfc4b8$b0343020$1b2731cc@FWB.SAIC.Com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Larry Cohen wrote: > > To Whom It May Concern; > > I have recently downloaded and installed gcc-2.95.2 and gdb-5.0 packages > for the purposes of compiling and running FORTRAN-77 programs. The gcc > package documentation states that gdb is currently incapable of printing > out the values of variables that are part of COMMON BLOCK storage and > that rudimentary COMMON BLOCK variable information could be retrieved > within gdb by invoking the -fdebug-kludge option during the g77 compile > process. Also, the documentation states that this limitation in > printing out the explicit value of a COMMON BLOCK variable will be fixed > in some future release of gcc and gdb. Would you please send me any > information about when these future gcc and gdb releases (that print out > the value of a COMMON BLOCK variable) will occur. FYI, At present there is no active Fortran GDB maintainer and effectivly zero activity on GDB's support for fortran :-( Definitly an oportunity in the making for anyone interested. Andrew From gcc-help-return-3030-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 24 06:08:25 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 21717 invoked by alias); 24 May 2000 06:08:25 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 21678 invoked from network); 24 May 2000 06:08:24 -0000 Received: from mgicax.ca.mgisoft.com (205.229.95.4) by sourceware.cygnus.com with SMTP; 24 May 2000 06:08:24 -0000 Received: from ca.mgisoft.com (h022.ca.mgisoft.com [205.229.95.22]) by mgicax.ca.mgisoft.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L370D4G9; Tue, 23 May 2000 23:09:12 -0700 Message-ID: <392B71BD.172C5CC7@ca.mgisoft.com> Date: Tue, 23 May 2000 23:07:57 -0700 From: Dave Klint X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: inline labels Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit When compiling using the -O3, gcc will decide that some functions can be inlined and expands them. This is all well and good, but when there's an asm() statement in the function with a label in it, it causes the label to be defined more than once. Is there any way around this without reworking the assembly? -dave From gcc-help-return-3031-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 24 06:19:32 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23812 invoked by alias); 24 May 2000 06:19:32 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23781 invoked from network); 24 May 2000 06:19:30 -0000 Received: from grande.dcc.unicamp.br (143.106.7.8) by sourceware.cygnus.com with SMTP; 24 May 2000 06:19:30 -0000 Received: from amazonas.dcc.unicamp.br (amazonas.dcc.unicamp.br [143.106.7.11]) by grande.dcc.unicamp.br (8.9.3/8.9.3) with ESMTP id DAA23475; Wed, 24 May 2000 03:19:22 -0300 (EST) Received: from tamanduatei.dcc.unicamp.br (tamanduatei.dcc.unicamp.br [143.106.23.208]) by amazonas.dcc.unicamp.br (8.8.5/8.8.5) with SMTP id DAA07284; Wed, 24 May 2000 03:19:20 -0300 (EST) To: Dave Klint Cc: gcc-help@gcc.gnu.org Subject: Re: inline labels References: <392B71BD.172C5CC7@ca.mgisoft.com> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 24 May 2000 03:19:21 -0300 In-Reply-To: Dave Klint's message of "Tue, 23 May 2000 23:07:57 -0700" Message-ID: Lines: 17 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 24, 2000, Dave Klint wrote: > When compiling using the -O3, gcc will decide that some functions > can be inlined and expands them. This is all well and good, but > when there's an asm() statement in the function with a label in > it, it causes the label to be defined more than once. Is there > any way around this without reworking the assembly? The GCC manual talks about local labels in assembly statements. You may also look for `%=3D'; it's described in the section about output templates; I'm not sure it can be used in asm statements, though. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3032-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 24 21:29:11 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 28895 invoked by alias); 24 May 2000 21:29:10 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 28865 invoked from network); 24 May 2000 21:29:08 -0000 Received: from galileo.luminousnetworks.com (63.204.7.10) by sourceware.cygnus.com with SMTP; 24 May 2000 21:29:08 -0000 Received: by GALILEO with Internet Mail Service (5.5.2448.0) id ; Wed, 24 May 2000 14:22:33 -0700 Message-ID: <090825D1E60BD311B8390090276D5C492CA0FE@GALILEO> From: Zia Babar To: "'gcc-help@gcc.gnu.org'" Subject: gcc warnings Date: Wed, 24 May 2000 14:22:33 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BFC5C6.2CDAF2EA" This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFC5C6.2CDAF2EA Content-Type: text/plain; charset="iso-8859-1" Hi, I need some resource on the warnings and errors that gcc generates and I wonder if there is some literature available listing all the warnings and their probable causes. Actually I've been asked to debug some C project files and since I'm a newbie to C therefore most of the warnings generated by gcc during compilation escape me. Thanks in advance. Zia ------_=_NextPart_001_01BFC5C6.2CDAF2EA Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable gcc warnings

Hi,

I need some resource on the warnings = and errors that gcc generates and I wonder if there is some literature = available listing all the warnings and their probable causes. Actually = I've been asked to debug some C project files and since I'm a newbie to = C therefore most of the warnings generated by gcc during compilation = escape me.

Thanks in advance.

Zia

------_=_NextPart_001_01BFC5C6.2CDAF2EA-- From gcc-help-return-3033-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 25 01:01:19 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 9986 invoked by alias); 25 May 2000 01:01:18 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 9956 invoked from network); 25 May 2000 01:01:17 -0000 Received: from mgicax.ca.mgisoft.com (205.229.95.4) by sourceware.cygnus.com with SMTP; 25 May 2000 01:01:17 -0000 Received: from ca.mgisoft.com (h022.ca.mgisoft.com [205.229.95.22]) by mgicax.ca.mgisoft.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id L370D4T9; Wed, 24 May 2000 18:02:09 -0700 Message-ID: <392C7B3F.5CE46D5C@ca.mgisoft.com> Date: Wed, 24 May 2000 18:00:47 -0700 From: Dave Klint Reply-To: gcc-help@gcc.gnu.org X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: inline labels References: <392B71BD.172C5CC7@ca.mgisoft.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > > When compiling using the -O3, gcc will decide that some functions > > can be inlined and expands them. This is all well and good, but > > when there's an asm() statement in the function with a label in > > it, it causes the label to be defined more than once. Is there > > any way around this without reworking the assembly? > > The GCC manual talks about local labels in assembly statements. You > may also look for `%='; it's described in the section about output > templates; I'm not sure it can be used in asm statements, though. Just thought I'd post the answer to my own question, there are a lot of other '%' things then I thought. I checked the gnu docs at gnu.org (http://gcc.gnu.org/onlinedocs/gcc_16.html#SEC179) and found out everything that I ever wanted to know about templates. I checked the docs before asking the question, but I guess I just didn't check well enough. The '%=' does give you a unique number that you can use in the inline assembly labels. For example asm("movl foo,%eax .Lfoo%=: incl %eax jc .Lfoo%=" ); works just fine, and things don't get clobbered when you let gcc optimize. Gcc rocks, that all I gotta say. -dave From gcc-help-return-3034-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 25 06:07:27 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 10820 invoked by alias); 25 May 2000 06:07:26 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 10789 invoked from network); 25 May 2000 06:07:24 -0000 Received: from server3.fmg.de (HELO mail.fmg.de) (root@141.187.33.25) by sourceware.cygnus.com with SMTP; 25 May 2000 06:07:24 -0000 Received: from nts002.fmg.de (fmggw.fmg.de [141.187.1.60]) by mail.fmg.de (8.10.0/8.10.0) with ESMTP id e4P67Lf13921 for ; Thu, 25 May 2000 08:07:21 +0200 Received: from fmg.de (halle.asic.fmg.de [141.187.99.1]) by nts002.fmg.de with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id LHMKYFHM; Thu, 25 May 2000 08:08:32 +0200 Received: from fujitsu-fme.com by fmg.de (8.8.8+Sun/SMI-SVR4) id IAA20238; Thu, 25 May 2000 08:07:19 +0200 (MET DST) Message-ID: <392CC317.2D1F1EB2@fujitsu-fme.com> Date: Thu, 25 May 2000 08:07:19 +0200 From: Davor Novosel Organization: Fujitsu Microelectronics Europe GmbH X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: "'gcc-help@gcc.gnu.org'" Subject: Building arm cross-compiler for solaris-2.6 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I'm trying to build a gcc cross-compiler for the arm processor architecture on a solaris-2.6 host. After running the configure script, I wanted to build the compiler, but after executing 'make' I got the following error message: make all-recursive Making all in intl Making all in lib Making all in makeinfo make: Fatal error: Don't know how to make target `../lib/system.h' Current working directory /usr/appl/davor/src/gcc-obj/texinfo/makeinfo *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /usr/appl/davor/src/gcc-obj/texinfo *** Error code 1 make: Fatal error: Command failed for target `all-recursive-am' Current working directory /usr/appl/davor/src/gcc-obj/texinfo *** Error code 1 make: Fatal error: Command failed for target `all-texinfo' What am I making wrong? I also tried 'make LANGUAGES=c' but it didn't help. Does anybody know whether there is a precompiled binary available of the arm cross-compiler for solaris-2.6? Thank you very much in advance for any comments. Davor From gcc-help-return-3035-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Thu May 25 06:48:29 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 18992 invoked by alias); 25 May 2000 06:48:29 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 18961 invoked from network); 25 May 2000 06:48:27 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 25 May 2000 06:48:27 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id IAA19062; Thu, 25 May 2000 08:41:36 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id IAA01194; Thu, 25 May 2000 08:38:23 +0200 Date: Thu, 25 May 2000 08:38:23 +0200 Message-Id: <200005250638.IAA01194@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: zbabar@luminousnetworks.com CC: gcc-help@gcc.gnu.org In-reply-to: <090825D1E60BD311B8390090276D5C492CA0FE@GALILEO> (message from Zia Babar on Wed, 24 May 2000 14:22:33 -0700) Subject: Re: gcc warnings References: <090825D1E60BD311B8390090276D5C492CA0FE@GALILEO> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > I need some resource on the warnings and errors that gcc generates and I > wonder if there is some literature available listing all the warnings and > their probable causes. Actually I've been asked to debug some C project > files and since I'm a newbie to C therefore most of the warnings generated > by gcc during compilation escape me. Please have a look at the section "Warning Options" in the gcc manual. Regards, Martin From gcc-help-return-3036-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 26 01:26:04 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 18603 invoked by alias); 26 May 2000 01:26:04 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 18573 invoked from network); 26 May 2000 01:26:02 -0000 Received: from grande.dcc.unicamp.br (143.106.7.8) by sourceware.cygnus.com with SMTP; 26 May 2000 01:26:02 -0000 Received: from amazonas.dcc.unicamp.br (amazonas.dcc.unicamp.br [143.106.7.11]) by grande.dcc.unicamp.br (8.9.3/8.9.3) with ESMTP id WAA09720; Thu, 25 May 2000 22:25:45 -0300 (EST) Received: from tamanduatei.dcc.unicamp.br (tamanduatei.dcc.unicamp.br [143.106.23.208]) by amazonas.dcc.unicamp.br (8.8.5/8.8.5) with SMTP id WAA10226; Thu, 25 May 2000 22:25:38 -0300 (EST) To: Davor Novosel Cc: "'gcc-help@gcc.gnu.org'" Subject: Re: Building arm cross-compiler for solaris-2.6 References: <392CC317.2D1F1EB2@fujitsu-fme.com> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 25 May 2000 22:25:40 -0300 In-Reply-To: Davor Novosel's message of "Thu, 25 May 2000 08:07:19 +0200" Message-ID: Lines: 12 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 25, 2000, Davor Novosel wrote: > make: Fatal error: Don't know how to make target `../lib/system.h' You need a POSIX-compliant make, such as GNU make. Solaris make won't do it. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3037-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 26 15:34:25 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 16982 invoked by alias); 26 May 2000 15:34:24 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 16950 invoked from network); 26 May 2000 15:34:24 -0000 Received: from cnxtsmtp2.conexant.com (198.62.9.253) by sourceware.cygnus.com with SMTP; 26 May 2000 15:34:24 -0000 Received: from nblnsmtp1.nb.conexant.com (npbsmtp1.nb.conexant.com [157.152.161.153]) by cnxtsmtp2.conexant.com (8.9.3/8.9.3) with ESMTP id IAA20307; Fri, 26 May 2000 08:33:57 -0700 (PDT) Received: from dogbert.westboro.conexant.com ([157.152.32.22]) by nblnsmtp1.nb.conexant.com (Lotus Domino Release 5.0.3) with ESMTP id 2000052608340878:969 ; Fri, 26 May 2000 08:34:08 -0700 Received: (from presberg@localhost) by dogbert.westboro.conexant.com (8.9.3/8.9.3) id LAA29562; Fri, 26 May 2000 11:34:15 -0400 (EDT) Date: Fri, 26 May 2000 11:34:15 -0400 (EDT) Message-Id: <200005261534.LAA29562@dogbert.westboro.conexant.com> X-Authentication-Warning: dogbert.westboro.conexant.com: presberg set sender to David.Presberg@conexant.com using -f From: David Presberg To: gcc-help@gcc.gnu.org Subject: Why have the prior 2 "gcc Digest" emails *not* been digests? Reply-to: David.Presberg@conexant.com CC: David.Presberg@conexant.com, Gerald Pfeifer X-MIMETrack: Itemize by SMTP Server on NPBSMTP1/Server/Conexant(Release 5.0.3 |March 21, 2000) at 05/26/2000 08:34:09 AM, Serialize by Router on NPBSMTP1/Server/Conexant(Release 5.0.3 |March 21, 2000) at 05/26/2000 08:34:10 AM, Serialize complete at 05/26/2000 08:34:10 AM MIME-Version: 1.0 The most recent two "gcc@gcc.gnu.org" email postings (Digest ... Issue 675 and 676) came to me as concatenations of all the messages in the digest. I have been subscribed (only) to the digest-form of that list. I prefer the digest format with internal header details and MIME "multipart/digest" designation. Is this a temporary glitch or a permanent change? If the latter, where was it discussed? -- Pres - David L. Presberg, Software Engineer/Tools - Conexant Systems/Maker Inc., 8 Technology Drive - Westborough, MA 01581-1756, USA Phone: (508) 621-0680 - David.Presberg@conexant.com Nickname: Pres Fax: (508) 621-0605 - *** NOTE THAT ADDRESS, PHONES, AND EMAIL CHANGED, MARCH 2000 *** DETAILS: Note the headers from "gcc Digest 26 May 2000 10:52:18 -0000 Issue 676" as it arrived this morning. (I've omitted only the "Received:"-header lines.): Message-ID: <959338338.25965.ezmlm@gcc.gnu.org> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on NPBSMTP1/Server/Conexant(Release 5.0.3 |March 21, 2000) at 05/26/2000 03:53:41 AM, MIME-CD by Notes Server on NPBSMTP1/Server/Conexant(Release 5.0.3 |March 21, 2000) at 05/26/2000 03:53:43 AM, MIME-CD complete at 05/26/2000 03:53:44 AM, Serialize by Router on NPBSMTP1/Server/Conexant(Release 5.0.3 |March 21, 2000) at 05/26/2000 03:53:45 AM Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by dogbert.westboro.conexant.com id GAA27812 Content-Type: text/plain; charset=iso-8859-1 From: gcc-owner@gcc.gnu.org To: gcc@gcc.gnu.org Subject: gcc Digest 26 May 2000 10:52:18 -0000 Issue 676 Date: Fri, 26 May 2000 10:52:18 +0000 Compare the above with for instance"gcc Digest 23 May 2000 04:16:31 -0000 Issue 673" (properly a digest) which arrived Tuesday morning: Precedence: bulk List-Unsubscribe: List-Archive: List-Post: List-Help: Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Message-ID: <959055391.2912.ezmlm@gcc.gnu.org> Delivered-To: responder for gcc-digest@gcc.gnu.org MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on NPBSMTP1/Server/Conexant(Release 5.0.3 |March 21, 2000) at 05/22/2000 09:18:11 PM, Serialize by Router on NPBSMTP1/Server/Conexant(Release 5.0.3 |March 21, 2000) at 05/22/2000 09:18:14 PM, Serialize complete at 05/22/2000 09:18:14 PM Content-Type: multipart/digest; boundary=pcjabjnaalncgapjlogj From: gcc-digest-help@gcc.gnu.org Sender: gcc-owner@gcc.gnu.org To: gcc@gcc.gnu.org Subject: gcc Digest 23 May 2000 04:16:31 -0000 Issue 673 Date: 23 May 2000 04:16:31 -0000 I also note that the latest form loses the "List-Unsubscribe:" header that is featured on http://gcc.gnu.org/lists.html for the benefit of the community. [END] From gcc-help-return-3038-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Fri May 26 16:34:25 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 29295 invoked by alias); 26 May 2000 16:34:24 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 29220 invoked from network); 26 May 2000 16:34:18 -0000 Received: from vexpert.dbai.tuwien.ac.at (128.130.111.12) by sourceware.cygnus.com with SMTP; 26 May 2000 16:34:18 -0000 Received: from [128.130.111.10] (nunki [128.130.111.10]) by vexpert.dbai.tuwien.ac.at (8.9.3/8.9.3) with ESMTP id SAA24774; Fri, 26 May 2000 18:34:05 +0200 (MET DST) Date: Fri, 26 May 2000 18:34:04 +0200 (MET DST) From: Gerald Pfeifer To: David Presberg cc: gcc-help@gcc.gnu.org Subject: Re: Why have the prior 2 "gcc Digest" emails *not* been digests? In-Reply-To: <200005261534.LAA29562@dogbert.westboro.conexant.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 26 May 2000, David Presberg wrote: > I prefer the digest format with internal header details and > MIME "multipart/digest" designation. Is this a temporary glitch or a > permanent change? If the latter, where was it discussed? I don't know that any such change was intentional and/or discussed and will forward your feedback to those in charge of the mailing lists. Gerald -- Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/ From gcc-help-return-3039-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sun May 28 02:42:53 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 30824 invoked by alias); 28 May 2000 02:42:53 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 30793 invoked from network); 28 May 2000 02:42:52 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 28 May 2000 02:42:52 -0000 Received: from trex.centroin.com.br (trex.centroin.com.br [200.225.63.128]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id WAA28669 for ; Sat, 27 May 2000 22:42:47 -0400 Received: from master (du50b.nit.centroin.com.br [200.225.56.50]) by trex.centroin.com.br (8.10.1/8.10.1) with SMTP id e4S2gdu26114 for help-gcc@prep.ai.mit.edu; Sat, 27 May 2000 23:42:39 -0300 (EST) Message-Id: <200005280242.e4S2gdu26114@trex.centroin.com.br> Date: Sat, 27 May 2000 23:44:52 -0300 From: "Susan" Subject: Susan To: help-gcc@gnu.org X-Mailer: Mindcast Mailer Pro 2.5 (Build 19990225) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/html; charset=iso-8859-1 Earn 200 thousand dollars

I found this in the web,
Does this interest you?

Earn 200 thousand dollars !

www.emailbanking.com

From gcc-help-return-3040-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sun May 28 07:05:29 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23080 invoked by alias); 28 May 2000 07:05:29 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23017 invoked from network); 28 May 2000 07:05:26 -0000 Received: from firma.thezone.net (HELO mail.nf.net) (192.75.13.101) by sourceware.cygnus.com with SMTP; 28 May 2000 07:05:26 -0000 Received: from thezone.net (IDENT:root@n103h066.thezone.net [198.165.103.66]) by mail.nf.net (8.9.3/8.9.3) with ESMTP id EAA31708 for ; Sun, 28 May 2000 04:35:24 -0230 (NDT) Message-ID: <3930C4B6.D27ADFF7@thezone.net> Date: Sun, 28 May 2000 04:33:18 -0230 From: Hendrix Organization: n/a X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12-20 i586) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: GCC-Help Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From gcc-help-return-3041-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sun May 28 07:06:01 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23744 invoked by alias); 28 May 2000 07:06:00 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23691 invoked from network); 28 May 2000 07:06:00 -0000 Received: from firma.thezone.net (HELO mail.nf.net) (192.75.13.101) by sourceware.cygnus.com with SMTP; 28 May 2000 07:06:00 -0000 Received: from thezone.net (IDENT:root@n103h066.thezone.net [198.165.103.66]) by mail.nf.net (8.9.3/8.9.3) with ESMTP id EAA22803 for ; Sun, 28 May 2000 04:35:57 -0230 (NDT) Message-ID: <3930C4D9.FF57F1C9@thezone.net> Date: Sun, 28 May 2000 04:33:53 -0230 From: Hendrix Organization: n/a X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12-20 i586) X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: gcc-help Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From gcc-help-return-3042-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sun May 28 07:11:56 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 25866 invoked by alias); 28 May 2000 07:11:55 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 25732 invoked from network); 28 May 2000 07:11:40 -0000 Received: from firma.thezone.net (HELO mail.nf.net) (192.75.13.101) by sourceware.cygnus.com with SMTP; 28 May 2000 07:11:40 -0000 Received: from thezone.net (IDENT:root@n103h066.thezone.net [198.165.103.66]) by mail.nf.net (8.9.3/8.9.3) with ESMTP id EAA00050; Sun, 28 May 2000 04:41:28 -0230 (NDT) Message-ID: <3930C623.E359BB87@thezone.net> Date: Sun, 28 May 2000 04:39:23 -0230 From: Hendrix Organization: n/a X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12-20 i586) X-Accept-Language: en MIME-Version: 1.0 To: gcc@gcc.gnu.org, gcc-help@gcc.gnu.org Subject: gcc/gcc-help Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From gcc-help-return-3043-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sun May 28 14:33:30 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 4735 invoked by alias); 28 May 2000 14:33:29 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 4659 invoked from network); 28 May 2000 14:33:26 -0000 Received: from firma.thezone.net (HELO mail.nf.net) (192.75.13.101) by sourceware.cygnus.com with SMTP; 28 May 2000 14:33:26 -0000 Received: from thezone.net (IDENT:root@n104h113.thezone.net [198.165.104.113]) by mail.nf.net (8.9.3/8.9.3) with ESMTP id MAA11459; Sun, 28 May 2000 12:03:23 -0230 (NDT) Message-ID: <39312DB5.14D3C108@thezone.net> Date: Sun, 28 May 2000 12:01:18 -0230 From: Hendrix Organization: n/a X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12-20 i586) X-Accept-Language: en MIME-Version: 1.0 To: gcc@gcc.gnu.org, gcc-help@gcc.gnu.org Subject: How do I link libraries with g++... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi guys... I'm trying to use the Mesa (OpenGL) with g++ to develop graphics applications, but I have no idea how to link the Mesa and Glut libraries to my program (test.c}.... I've downloaded sample code utilizing header files and libraries from both Mesa and Glut, but I can't compile the sample code... I'm thinking I need to link the libraries into the source file, but I have no idea how to do this with g++... Any help will be greatly appreciated... Thanks... Sincerely, Trevor... P.S. I have already successfully installed Mesa from source, and Glut from RPM... From gcc-help-return-3044-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sun May 28 15:17:26 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 15443 invoked by alias); 28 May 2000 15:17:26 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 15413 invoked from network); 28 May 2000 15:17:25 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 28 May 2000 15:17:25 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id RAA15876; Sun, 28 May 2000 17:12:53 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id RAA11003; Sun, 28 May 2000 17:13:33 +0200 Date: Sun, 28 May 2000 17:13:33 +0200 Message-Id: <200005281513.RAA11003@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: tgjp@thezone.net CC: gcc-help@gcc.gnu.org In-reply-to: <39312DB5.14D3C108@thezone.net> (message from Hendrix on Sun, 28 May 2000 12:01:18 -0230) Subject: Re: How do I link libraries with g++... References: <39312DB5.14D3C108@thezone.net> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > I'm trying to use the Mesa (OpenGL) with g++ to develop graphics > applications, but I have no idea how to link the Mesa and Glut libraries > to my program (test.c}.... I've downloaded sample code utilizing header > files and libraries from both Mesa and Glut, but I can't compile the > sample code... I'm thinking I need to link the libraries into the > source file, but I have no idea how to do this with g++... Any help > will be greatly appreciated... Thanks... Please have a look at the gcc(1) manual page, or the section "Invoking GCC" of the GCC manual; it explains all options of gcc in detail. Take particular notice of the -l option. If you still have problems, please report exactly what you did (in terms of typing commands at the Unix shell), what the output of the system was, and what you think should have happened instead. Regards, Martin From gcc-help-return-3045-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sun May 28 15:29:05 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 19112 invoked by alias); 28 May 2000 15:29:05 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 18939 invoked from network); 28 May 2000 15:28:59 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 28 May 2000 15:28:59 -0000 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id LAA24806; Sun, 28 May 2000 11:36:29 -0300 To: Hendrix Cc: gcc@gcc.gnu.org, gcc-help@gcc.gnu.org Subject: Re: How do I link libraries with g++... References: <39312DB5.14D3C108@thezone.net> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 28 May 2000 11:36:28 -0300 In-Reply-To: Hendrix's message of "Sun, 28 May 2000 12:01:18 -0230" Message-ID: Lines: 13 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 28, 2000, Hendrix wrote: > I'm trying to use the Mesa (OpenGL) with g++ to develop graphics > applications, but I have no idea how to link the Mesa and Glut librar= ies > to my program (test.c}.... It's no different from gcc: -lname. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3046-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sun May 28 15:45:38 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 21681 invoked by alias); 28 May 2000 15:45:38 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 21637 invoked from network); 28 May 2000 15:45:36 -0000 Received: from www.gmx.net (HELO www5.gmx.net) (194.221.183.45) by sourceware.cygnus.com with SMTP; 28 May 2000 15:45:36 -0000 Received: (qmail 9164 invoked by uid 0); 28 May 2000 15:45:05 -0000 Date: Sun, 28 May 2000 17:45:04 +0200 (MEST) From: wert ewrtert <0833@gmx.net> To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Subject: segmentation fault X-Authenticated-Sender: #0005009276@gmx.net X-Authenticated-IP: [62.104.217.81] Message-ID: <8981.959528704@www5.gmx.net> X-Mailer: WWW-Mail 1.5 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi all! i've just installed glibc-2.1.3 and gcc-2.95.2. gcc works, but compiling: #include int main(){ cout << "geht nich!" << endl; return 0; } with g++ produces seg fault when it is run. what is wrong here? Please help Thanks in Advance! -- Sent through GMX FreeMail - http://www.gmx.net From gcc-help-return-3047-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Sun May 28 21:52:48 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 497 invoked by alias); 28 May 2000 21:52:47 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 452 invoked from network); 28 May 2000 21:52:41 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 28 May 2000 21:52:41 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id XAA14901; Sun, 28 May 2000 23:48:26 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id XAA17552; Sun, 28 May 2000 23:47:05 +0200 Date: Sun, 28 May 2000 23:47:05 +0200 Message-Id: <200005282147.XAA17552@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: 0833@gmx.net CC: gcc-help@gcc.gnu.org In-reply-to: <8981.959528704@www5.gmx.net> (message from wert ewrtert on Sun, 28 May 2000 17:45:04 +0200 (MEST)) Subject: Re: segmentation fault References: <8981.959528704@www5.gmx.net> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > i've just installed glibc-2.1.3 and gcc-2.95.2. gcc works, but compiling: [...] > what is wrong here? Most likely, you made an error in the installation procedure. Since you did not give an indication what procedure you've used, and on what operating system, it is hard to tell what you did wrong. There is also a chance that you found an incompatibility between C libraries; in this case, you'd need to reinstall gcc. In any case, I strongly recommend to use prebuilt binaries. Regards, Martin From gcc-help-return-3048-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 00:39:37 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 24052 invoked by alias); 29 May 2000 00:39:36 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 24022 invoked from network); 29 May 2000 00:39:35 -0000 Received: from smtp3.libero.it (193.70.192.53) by sourceware.cygnus.com with SMTP; 29 May 2000 00:39:35 -0000 Received: from armageddon.allanon.org (151.20.20.109) by smtp3.libero.it; 29 May 2000 02:39:07 +0200 Received: by armageddon.allanon.org (Postfix, from userid 0) id 57E7A5FB6; Mon, 29 May 2000 19:05:26 +0200 (CEST) Date: Mon, 29 May 2000 19:05:26 +0200 From: Gigi Sullivan To: gcc-help@gcc.gnu.org Subject: Knowing the number of variable arguments. Message-ID: <20000529190525.B262@armageddon.libero.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i Aiee :) Hello! I'm not sure this is the right mailing list and I search a little bit the archive, but didn't find the right answer ... so please forgive me :) Let consider this simple function prototype: int func(char, int, ...); Well, I know that using va_start/va_arg and va_end I can scan all the variable arguments list, but what if I'd like to know the *number* of the variable arguments? I'm saying so, since the argument type (in my .c file) isn't int, but it's a union (or it could be a struct too - but right now a union) and as man said, when there are no other argument in the list, va_arg returns random errors. This is bad, since I cannot know *when* the list is terminated (and I cannot do like the example showed to me, i.e. using pointer + while and switch etc etc). I tried to search about some __buitin_*, but I didn't find anything to suite my needs. Well, I indeed solved the problem, but it's strictly non-portable since I played with the saved frame pointer (to know the caller frame address) and with the address of the first argument in `func' (even if no asm code were used, tho. Still not-portable, I guess due to different calling convention. The CPU is an Intel x86). So I was wondering if someone could point me out a solution like some magic macro, such as GIMME_ARGS_NUMBER :) Thx for all. bye bye -- gg sullivan P.S. I apologize for my bad english. -- Lorenzo Cavallaro `Gigi Sullivan' Until I loved, life had no beauty; I did not know I lived until I had loved. (Theodor Korner) From gcc-help-return-3049-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 01:18:43 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 30955 invoked by alias); 29 May 2000 01:18:42 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 30925 invoked from network); 29 May 2000 01:18:39 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 29 May 2000 01:18:39 -0000 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id WAA26323; Sun, 28 May 2000 22:18:37 -0300 To: Gigi Sullivan Cc: gcc-help@gcc.gnu.org Subject: Re: Knowing the number of variable arguments. References: <20000529190525.B262@armageddon.libero.it> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 28 May 2000 22:18:36 -0300 In-Reply-To: Gigi Sullivan's message of "Mon, 29 May 2000 19:05:26 +0200" Message-ID: Lines: 19 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 29, 2000, Gigi Sullivan wrote: > Well, I know that using va_start/va_arg and va_end I can > scan all the variable arguments list, but what if I'd like > to know the *number* of the variable arguments? There's no portable way. That's why functions with variable number of arguments require at least one argument: so that you can pass in some clue about the other arguments. > This is bad, since I cannot know *when* the list is terminated How about requiring a NULL terminator, as in exec()? --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3050-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 01:27:09 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 32527 invoked by alias); 29 May 2000 01:27:09 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 32497 invoked from network); 29 May 2000 01:27:09 -0000 Received: from smtp3.libero.it (193.70.192.53) by sourceware.cygnus.com with SMTP; 29 May 2000 01:27:09 -0000 Received: from armageddon.allanon.org (151.20.20.109) by smtp3.libero.it; 29 May 2000 03:26:41 +0200 Received: by armageddon.allanon.org (Postfix, from userid 0) id C9B9B5FB6; Mon, 29 May 2000 19:52:59 +0200 (CEST) Date: Mon, 29 May 2000 19:52:59 +0200 From: Gigi Sullivan To: Alexandre Oliva Cc: gcc-help@gcc.gnu.org Subject: Re: Knowing the number of variable arguments. Message-ID: <20000529195259.C262@armageddon.libero.it> References: <20000529190525.B262@armageddon.libero.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: ; from Alexandre Oliva on Sun, May 28, 2000 at 10:18:36PM -0300 Aiee :) Hello! > On May 29, 2000, Gigi Sullivan wrote: > > > Well, I know that using va_start/va_arg and va_end I can > > scan all the variable arguments list, but what if I'd like > > to know the *number* of the variable arguments? > > There's no portable way. That's why functions with variable number of > arguments require at least one argument: so that you can pass in some > clue about the other arguments. Yes, I see. > > > This is bad, since I cannot know *when* the list is terminated > > How about requiring a NULL terminator, as in exec()? Well, I would avoid using this solution (It's boring for what I'm doing to put *mandatory* a NULL at the end). Nevertheless to say (well, as you know ;)) that this could be non-portable too (Am I right?) : Not all pass parameters on the stack (that could grows towards lower/upper address). What do you advice to me? (maybe the former solution is better than the latter one). Anyway THX :)) bye bye -- gg sullivan P.S. Could be this an addendum to the current gcc? (addendum to stdarg.h I mean) This is not portable, but it's possible to do as stdarg.h does: #ifdef :) -- Lorenzo Cavallaro `Gigi Sullivan' Until I loved, life had no beauty; I did not know I lived until I had loved. (Theodor Korner) From gcc-help-return-3051-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 04:54:30 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 7793 invoked by alias); 29 May 2000 04:54:29 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 7761 invoked from network); 29 May 2000 04:54:24 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 29 May 2000 04:54:24 -0000 Received: from mta3.263.net ([202.96.44.48]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id AAA08783 for ; Mon, 29 May 2000 00:54:03 -0400 From: wangyin101@263.net Received: by mta3.263.net (Postfix, from userid 60001) id 2E9711CA23A7C; Mon, 29 May 2000 13:02:42 +0800 (CST) MIME-Version: 1.0 Message-Id: <3931F9F1.14678@mta6> Date: Mon, 29 May 2000 13:02:41 +0800 (CST) To: help-gcc@gnu.org Subject: docs needed X-Priority: 3 Hi, where can I find general organization of GCC? I'm learning to write compilers and I need some good written one to study. Whick compiler should I choose. And where can I get it? _____________________________________________ һ·ÉÏÓÐÄ㣬¿àÒ»µãÒ²Ô¸Ò⣡ --ΪÄãϲ°®ÓëÖ§³ÖµÄ263Ê×¶¼ÔÚÏߣ¨http://www.263.net£©Í¶Ò»Æ±£¡ ÎÒҪͶƱ£¡£¨http://fsurvey.cnnic.net.cn/survey/index.html£© From gcc-help-return-3052-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 06:57:52 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23205 invoked by alias); 29 May 2000 06:57:51 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23174 invoked from network); 29 May 2000 06:57:50 -0000 Received: from ukslms52.cai.com (130.119.248.69) by sourceware.cygnus.com with SMTP; 29 May 2000 06:57:50 -0000 Received: by ukslms52.cai.com with Internet Mail Service (5.5.2650.21) id ; Mon, 29 May 2000 07:57:02 +0100 Message-ID: <770292EEED98D311A2D7009027DE04A201CDBF29@ukslms01.cai.com> From: "Penias, Nissim" To: "'gcc-help@gcc.gnu.org'" Subject: Getting an error message from gcc libstdc++.a on Solaris 2.5.1 . Date: Mon, 29 May 2000 07:58:09 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-8" Hello , I need some help to correctly compile gcc on solaris 2.5.1 sparc . I read all the installation notes that came with the product and what i did is built the native gcc compiler on a solaris sparc2.5.1 machine . I must mension the way that i built in order for you to know : 1) I opened the tar/gz file . 2) I created a different directory out of the _srcdir_ where i opened the package of the gcc and called it _objdir_ as you say under the configuration notes . 3) i ren from the _objdir_ ../gcc../configure to difault install in /usr/local . 4) After it finished with no errors ( status 0 ) i ren 'make bootstrap' to build the product . 5) After the make finished i ren 'make install' to finish the installation in /usr/local . Remark : ******* I must say that the make that i am using is the gnu make version 3-78.1 and not the system make . The problem occurs after i am trying to compile using these two commands : g++ -c test_lib.cpp -fPIC g++ -o xxx.so test_lib.o -shared The error message that i get is : 0x1668 /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/libstdc++.a(iovfscanf.o) ld: fatal :relocation remain against allocatable but non writable section collect2: ld returned 1 exit status . ld: fatal:relocation 1 exit status I also downloaded the compiled version of gcc.2.95.1 from sunfreeware.com and i have the problem ( meens that i get the same error messages ! ) . I will be happay if you will be able to solve my problem or help me solving it . Regards .., Nissim Penias . Unix System Administrator . Development Computing Services . Computer Associates International . Office Number : 972-3-7658308 . Cellular Phone : 972-53-994549 . mailto : penni01@cai.com . From gcc-help-return-3053-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 07:02:54 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23794 invoked by alias); 29 May 2000 07:02:54 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23764 invoked from network); 29 May 2000 07:02:52 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 29 May 2000 07:02:52 -0000 Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id DAA17536 for ; Mon, 29 May 2000 03:02:40 -0400 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id JAA15662; Mon, 29 May 2000 09:01:16 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id JAA01067; Mon, 29 May 2000 09:00:04 +0200 Date: Mon, 29 May 2000 09:00:04 +0200 Message-Id: <200005290700.JAA01067@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: wangyin101@263.net CC: help-gcc@gnu.org In-reply-to: <3931F9F1.14678@mta6> (wangyin101@263.net) Subject: Re: docs needed References: <3931F9F1.14678@mta6> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > Hi, where can I find general organization of GCC? Please read the GCC manual. > I'm learning to write compilers and I need some good written one to > study. Whick compiler should I choose. I'd recommend to chose one where you know the language well. So if you know C++ well, look at the C++ compiler. > And where can I get it? GCC is available from gcc.gnu.org. Regards, Martin From gcc-help-return-3054-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 08:12:33 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 5341 invoked by alias); 29 May 2000 08:12:30 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 5311 invoked from network); 29 May 2000 08:12:29 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 29 May 2000 08:12:29 -0000 Received: from sohm.stpp.soft.net ([203.129.230.82]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id EAA22903 for ; Mon, 29 May 2000 04:12:24 -0400 Received: from CITRIX1 ([192.10.10.6]) by sohm.stpp.soft.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id LXKFXJYZ; Mon, 29 May 2000 13:44:14 +0530 Received: by CITRIX1 with Microsoft Mail id <01BFC973.BC8C8150@CITRIX1>; Mon, 29 May 2000 13:42:31 +0530 Message-ID: <01BFC973.BC8C8150@CITRIX1> From: Rakesh Nair To: "'help-gcc@gnu.org'" Subject: Help for gcc on solaris Date: Mon, 29 May 2000 13:42:11 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Pls let me know how to download the compiled form of gcc 2.95.2 from sunfreeware.com. I want to install it in SunOS 5.7 .... Regards, Rakesh From gcc-help-return-3055-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 08:35:23 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 8527 invoked by alias); 29 May 2000 08:35:23 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 8497 invoked from network); 29 May 2000 08:35:20 -0000 Received: from sasi.com (164.164.56.2) by sourceware.cygnus.com with SMTP; 29 May 2000 08:35:20 -0000 Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id OAA04249; Mon, 29 May 2000 14:03:02 +0530 (IST) Received: from sassun5.sasi.com ([10.0.0.5]) by sasi.com; Mon, 29 May 2000 14:03:00 +0000 (IST) Received: from localhost (vinu@localhost) by sassun5.sasi.com (8.9.3/8.9.3) with ESMTP id OAA26233; Mon, 29 May 2000 14:00:03 +0530 (IST) Date: Mon, 29 May 2000 14:00:03 +0530 (IST) From: Vinu V Nair To: "Penias, Nissim" cc: "'gcc-help@gcc.gnu.org'" Subject: Re: Getting an error message from gcc libstdc++.a on Solaris 2.5.1 . In-Reply-To: <770292EEED98D311A2D7009027DE04A201CDBF29@ukslms01.cai.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII For building shared libs, u have to give --enable-shared to the configure program. vinu Vinu V. Nair Software Engineer Silicon Automation Systems Limited 5281461/5281229-2213 "The reasonable man adapts himself to the world; the unreasonable man persists to adapt the world to himself. Therefore all progress depends on the unreasonable." -- G. Bernard. Shaw. From gcc-help-return-3056-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 08:43:49 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 10336 invoked by alias); 29 May 2000 08:43:49 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 10302 invoked from network); 29 May 2000 08:43:48 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 29 May 2000 08:43:48 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id KAA24726; Mon, 29 May 2000 10:32:33 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id KAA18504; Mon, 29 May 2000 10:31:18 +0200 Date: Mon, 29 May 2000 10:31:18 +0200 Message-Id: <200005290831.KAA18504@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: Nissim.Penias@ca.com CC: gcc-help@gcc.gnu.org In-reply-to: <770292EEED98D311A2D7009027DE04A201CDBF29@ukslms01.cai.com> (Nissim.Penias@ca.com) Subject: Re: Getting an error message from gcc libstdc++.a on Solaris 2.5.1 . References: <770292EEED98D311A2D7009027DE04A201CDBF29@ukslms01.cai.com> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > I must mension the way that i built in order for you to know : It seems that you followed the instructions carefully. > The problem occurs after i am trying to compile using these two commands : > g++ -c test_lib.cpp -fPIC > g++ -o xxx.so test_lib.o -shared > > The error message that i get is : > 0x1668 /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/libstdc++.a(iovfscanf.o) > ld: fatal :relocation remain against allocatable but non writable section collect2: ld returned 1 exit status . > ld: fatal:relocation 1 exit status I'm not exactly sure what the problem is; it may be that a patch from Sun might correct this behaviour - you may want to contact Sun support. The cause of this problem apparently is that libstdc++ was not compiled with -fPIC; therefore, when building a shared library, the linker complains. However, I thought that Solaris should handle this case. One solution is to configure gcc with --enable-shared (add --enable-threads while you recompile it); that will give you a libstdc++.so, which is won't be included into test_lib.o. The downside is that you'll have to arrange that libstdc++.so is located on your system (e.g. via LD_LIBRARY_PATH). Another alternative is to build a libstdc++.a which is compiled with -fPIC. The GCC build process does not support this setup; you'd have to arrange for that manually. Regards, Martin From gcc-help-return-3057-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 09:48:35 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23490 invoked by alias); 29 May 2000 09:48:34 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23241 invoked from network); 29 May 2000 09:48:29 -0000 Received: from kermit.ss.pub.ro (141.85.252.99) by sourceware.cygnus.com with SMTP; 29 May 2000 09:48:29 -0000 Received: (qmail 22681 invoked from network); 29 May 2000 09:45:33 -0000 Received: from adita.cs.pub.ro (HELO adita) (141.85.37.56) by kermit.ss.pub.ro with SMTP; 29 May 2000 09:45:33 -0000 Message-ID: <000001bfc953$79c2eeb0$3825558d@cs.pub.ro> From: "Senti" To: "gcc-help" Subject: profiling question Date: Sun, 28 May 2000 13:58:56 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01BFC8AC.DD298880" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 This is a multi-part message in MIME format. ------=_NextPart_000_000A_01BFC8AC.DD298880 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi 1. Does anyone know how -ax option of gcc works ? 2. If yes, what -ax expects from me and what it gives back (in terms of = output) ? 3. I remember i found some 3 sentences about that once, but i don't = remember where .If anyone knows where i can find something about that = please reply. Thanks in advance=20 Adrian=20 ------=_NextPart_000_000A_01BFC8AC.DD298880 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi
1. Does anyone know how -ax option of = gcc works=20 ?
2. If yes, what -ax expects from me and = what it=20 gives back (in terms of output) ?
3. I remember i found some 3 sentences = about that=20 once, but i don't remember where .If anyone knows where i can find=20 something about that please reply.
 
Thanks in advance
Adrian 
------=_NextPart_000_000A_01BFC8AC.DD298880-- From gcc-help-return-3058-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 09:52:43 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 25009 invoked by alias); 29 May 2000 09:52:42 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 24969 invoked from network); 29 May 2000 09:52:26 -0000 Received: from hercules.telenet-ops.be (HELO smtp.pandora.be) (195.130.132.33) by sourceware.cygnus.com with SMTP; 29 May 2000 09:52:26 -0000 Received: (qmail 6578 invoked from network); 29 May 2000 09:52:22 -0000 Received: from unknown (HELO sreedhar) ([195.130.145.215]) (envelope-sender ) by hercules.telenet-ops.be (qmail-ldap-1.03) with SMTP for ; 29 May 2000 09:52:22 -0000 Message-ID: <001001bfc954$57e933c0$2100a8c0@SUPPORT> Reply-To: "ravi varma" From: "ravi varma" To: "gcc-help" Subject: solaris curses problem Date: Mon, 29 May 2000 11:57:47 +0200 Organization: World Telecom labs MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000D_01BFC965.1B368160" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 This is a multi-part message in MIME format. ------=_NextPart_000_000D_01BFC965.1B368160 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi all I found some differences in curses lib between unixware and solaris If i am typing somthing in curses window in unixware if i press enter i = am going to next line but in solaris i am moving on the same line? What is the problem? This might be a silly query but very useful in my project thanks ravi ------=_NextPart_000_000D_01BFC965.1B368160 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi all

I found some differences in curses lib = between=20 unixware and solaris

If i am typing somthing in curses window in = unixware=20 if i press enter i am
going to next line
but in solaris i am = moving on the=20 same line?

What is the problem?

This might be a silly = query but=20 very useful in my=20 project

thanks
ravi

------=_NextPart_000_000D_01BFC965.1B368160-- From gcc-help-return-3059-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 10:47:56 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 29275 invoked by alias); 29 May 2000 10:47:56 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 29244 invoked from network); 29 May 2000 10:47:54 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 29 May 2000 10:47:54 -0000 Received: from tug.org (IDENT:root@tug.org [158.121.106.10]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id GAA16246 for ; Mon, 29 May 2000 06:47:16 -0400 Received: from dnss.3il.fr (dnss.3il.fr [195.25.243.225]) by tug.org (8.9.3/8.9.3) with ESMTP id FAA17134 for ; Mon, 29 May 2000 05:40:35 -0400 Received: from s207-11 ([195.25.243.230]) by dnss.3il.fr (8.8.8/8.8.8) with SMTP id MAA33121 for ; Mon, 29 May 2000 12:32:36 +0200 Received: by s207-11 with Microsoft Mail id <01BFC96B.7142F380@s207-11>; Mon, 29 May 2000 12:43:08 +0100 Message-ID: <01BFC96B.7142F380@s207-11> From: alibert To: "'help-gcc@gnu.org'" Subject: Cross compiler for M-CORE Date: Mon, 29 May 2000 12:43:03 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sir. While visiting the =B5C/OS2 site, I found a port of this kernel on the = MMC2001 variant of the M-CORE. I saw the person who did this job used a = GNU Cross compiler for M-CORE. I would like to know if there is any = Win32 based variant of this compiler, and if you know where I can get = one. I also saw on the Cygnus' site, that there is a grafical interface = for GDB. Do you know if such a tool also exists on a Win32 based variant = for M-CORE? =09 Do you also know if such tools ( compiler and graphical debugger ) also = exits for Win32 based developement environement for PowerPC ( especialy = the MPC 555, microcontroler variant ). Yours sincerely. From gcc-help-return-3060-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 15:16:09 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 18630 invoked by alias); 29 May 2000 15:16:09 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 18600 invoked from network); 29 May 2000 15:16:08 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 29 May 2000 15:16:08 -0000 Received: from chamber.cco.caltech.edu (chamber.cco.caltech.edu [131.215.48.55]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id LAA02728 for ; Mon, 29 May 2000 11:16:05 -0400 Received: from its.caltech.edu (caspian.caltech.edu [131.215.211.35]) by chamber.cco.caltech.edu (8.9.3/8.9.3) with ESMTP id IAA06275 for ; Mon, 29 May 2000 08:13:20 -0700 (PDT) Message-ID: <39328AA7.69D9E74E@its.caltech.edu> Date: Mon, 29 May 2000 08:20:07 -0700 From: Blythe Dickman X-Mailer: Mozilla 4.51 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: help-gcc@gnu.org Subject: gcc Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello, I currently have an hpux10.20 system, and would like to load the gcc compiler onto it. The trouble is that the cc compiler shipped with the O/S doesn't support the ANSI standard. The result is that the “-g” option is ignored whenever it is encountered during the build process. This may or may not be a problem, but the build process ultimately terminates with an error: “bison: not found.” Is there a clue as to what I need to do to build gcc on my machine? Thanks, Blythe From gcc-help-return-3061-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 16:50:14 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 6153 invoked by alias); 29 May 2000 16:50:14 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 6123 invoked from network); 29 May 2000 16:50:13 -0000 Received: from empire.netrevolution.com (root@207.253.184.2) by sourceware.cygnus.com with SMTP; 29 May 2000 16:50:13 -0000 Received: from netrevolution.com (48.PM3-1-Sherb.NetRevolution.com [207.253.184.48]) by empire.NetRevolution.com (8.9.3/8.8.7) with ESMTP id NAA27839; Mon, 29 May 2000 13:20:20 -0400 Message-ID: <39326727.9E11111@netrevolution.com> Date: Mon, 29 May 2000 08:48:39 -0400 From: Mike Corbeil X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.2.5-22 i586) MIME-Version: 1.0 To: Senti CC: gcc-help Subject: Re: profiling question References: <000001bfc953$79c2eeb0$3825558d@cs.pub.ro> Content-Type: multipart/alternative; boundary="------------AD6CDE9A6FEBBA7D64AE7B31" --------------AD6CDE9A6FEBBA7D64AE7B31 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Senti wrote: > Hi1. Does anyone know how -ax option of gcc works ?2. If yes, what > -ax expects from me and what it gives back (in terms of output) ?3. I > remember i found some 3 sentences about that once, but i don't > remember where .If anyone knows where i can find something about that > please reply. Thanks in advanceAdrian The gcc man page should describe all related options. If you're working on either a Unix or Linux platform, then it's easy to access man pages and in case you don't know how, then it's % man gcc % represents the prompt symbol on the command line and could be % or $ or something else, what ever it's been defined as. If the gcc man page doesn't contain the information you're looking for, then check through the gnu gcc web site, where there should be documentation covering your question. www.gnu.org is the correct url, I believe. You might want or need to do this if you're not working on Unix or Linux. I just checked the man page for gcc 2.7.2.3 on my Linux system, and this is an older gcc than the one you're working with, but the man page explains the -a and -x options. -a is a debug option, takes no arguments, and is used to generate extra code for profiling. -x is a language specification option and can take an argument, but one isn't required if you want the language to default based on the filename extensions or suffixes, such as .c for example. See the man page for more information on these options, because I didn't include all of it. If the man page has been maintained and these options are the same across these versions of gcc, then I believe that you should find all you need to know about these options from the man page. Then, it's a question of whether the man page description is entirely consistent with the implementation of gcc being used, and if it's not, then produce a bug report explaining your findings. mike --------------AD6CDE9A6FEBBA7D64AE7B31 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Senti wrote:
  Hi1. Does anyone know how -ax option of gcc works ?2. If yes, what -ax expects from me and what it gives back (in terms of output) ?3. I remember i found some 3 sentences about that once, but i don't remember where .If anyone knows where i can find something about that please reply. Thanks in advanceAdrian

The gcc man page should describe all related  options.  If you're working on either a Unix or Linux platform, then it's easy to access man pages and in case you don't know how, then it's

        % man gcc

% represents the prompt symbol on the command line and could be % or $ or something else, what ever it's been defined as.

If the gcc man page doesn't contain the information you're looking for, then check through the gnu gcc web site, where there should be documentation covering your question.  www.gnu.org is the correct url, I believe.  You might want or need to do this if you're not working on Unix or Linux.

I just checked the man page for gcc 2.7.2.3 on my Linux system, and this is an older gcc than the one you're working with, but the man page explains the -a and -x options.  -a is a debug option, takes no arguments, and is used to generate extra code for profiling.  -x is a language specification option and can take an argument, but one isn't required if you want the language to default based on the filename extensions or suffixes, such as .c for example.

See the man page for more information on these options, because I didn't include all of it.

If the man page has been maintained and these options are the same across these versions of gcc, then I believe that you should find all you need to know about these options from the man page.  Then, it's a question of whether the man page description is entirely consistent with the implementation of gcc being used, and if it's not, then produce a bug report explaining your findings.

mike
 
 
  --------------AD6CDE9A6FEBBA7D64AE7B31-- From gcc-help-return-3062-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 17:15:41 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 11151 invoked by alias); 29 May 2000 17:15:40 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 11073 invoked from network); 29 May 2000 17:15:38 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 29 May 2000 17:15:38 -0000 Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id NAA11880 for ; Mon, 29 May 2000 13:15:35 -0400 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id TAA01576; Mon, 29 May 2000 19:05:26 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id TAA00931; Mon, 29 May 2000 19:04:06 +0200 Date: Mon, 29 May 2000 19:04:06 +0200 Message-Id: <200005291704.TAA00931@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: blythe@its.caltech.edu CC: help-gcc@gnu.org In-reply-to: <39328AA7.69D9E74E@its.caltech.edu> (message from Blythe Dickman on Mon, 29 May 2000 08:20:07 -0700) Subject: Re: gcc References: <39328AA7.69D9E74E@its.caltech.edu> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > I currently have an hpux10.20 system, and would like to load the gcc > compiler onto it. The trouble is that the cc compiler shipped with the > O/S doesn't support the ANSI standard. The result is that the “-g” > option is ignored whenever it is encountered during the build process. > This may or may not be a problem, but the build process ultimately > terminates with an error: “bison: not found.” Is there a clue as to > what I need to do to build gcc on my machine? Where did you get the gcc source code from? bison should not be needed when building gcc from the official distribution. You can safely ignore the warning about -g. Regards, Martin From gcc-help-return-3063-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 18:18:49 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 26200 invoked by alias); 29 May 2000 18:18:48 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 26090 invoked from network); 29 May 2000 18:18:43 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 29 May 2000 18:18:43 -0000 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id PAA29464; Mon, 29 May 2000 15:18:36 -0300 To: Gigi Sullivan Cc: gcc-help@gcc.gnu.org Subject: Re: Knowing the number of variable arguments. References: <20000529190525.B262@armageddon.libero.it> <20000529195259.C262@armageddon.libero.it> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 29 May 2000 15:18:35 -0300 In-Reply-To: Gigi Sullivan's message of "Mon, 29 May 2000 19:52:59 +0200" Message-ID: Lines: 34 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 29, 2000, Gigi Sullivan wrote: >> On May 29, 2000, Gigi Sullivan wrote: >> > This is bad, since I cannot know *when* the list is terminated >> How about requiring a NULL terminator, as in exec()? > Well, I would avoid using this solution (It's boring for what > I'm doing to put *mandatory* a NULL at the end). If there's no perfect solution, a boring one will have to do, right? :-) > Nevertheless to say (well, as you know ;)) that this could be > non-portable too (Am I right?) : Nope. If you pass a list of pointers, the last of which is NULL, then you can certainly expect va_arg to work correctly on all platforms, as long as you tell it each argument is the appropriate pointer type. > Not all pass parameters on the stack (that could grows towards > lower/upper address). va_arg will take care of this for you. > Could be this an addendum to the current gcc? What kind of extension are you thinking of? --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3064-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 18:21:07 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 26840 invoked by alias); 29 May 2000 18:21:07 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 26808 invoked from network); 29 May 2000 18:21:06 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 29 May 2000 18:21:06 -0000 Received: from cacau.lsd.ic.unicamp.br (IDENT:root@cacau.lsd.ic.unicamp.br [143.106.24.146]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id OAA19487 for ; Mon, 29 May 2000 14:20:57 -0400 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id PAA29486; Mon, 29 May 2000 15:20:37 -0300 To: Rakesh Nair Cc: "'help-gcc@gnu.org'" Subject: Re: Help for gcc on solaris References: <01BFC973.BC8C8150@CITRIX1> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 29 May 2000 15:20:37 -0300 In-Reply-To: Rakesh Nair's message of "Mon, 29 May 2000 13:42:11 +0530" Message-ID: Lines: 12 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 29, 2000, Rakesh Nair wrote: > Pls let me know how to download the compiled form of gcc 2.95.2 from > sunfreeware.com. I want to install it in SunOS 5.7 .... Just click on the appropriate links. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3065-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 18:22:13 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 27645 invoked by alias); 29 May 2000 18:22:12 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 27542 invoked from network); 29 May 2000 18:22:10 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 29 May 2000 18:22:10 -0000 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id PAA29500; Mon, 29 May 2000 15:21:56 -0300 To: "ravi varma" Cc: "gcc-help" Subject: Re: solaris curses problem References: <001001bfc954$57e933c0$2100a8c0@SUPPORT> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 29 May 2000 15:21:56 -0300 In-Reply-To: "ravi varma"'s message of "Mon, 29 May 2000 11:57:47 +0200" Message-ID: Lines: 14 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 29, 2000, "ravi varma" wrote: > I found some differences in curses lib between unixware and solaris Why do you think this has anything to do with GCC? This message is totally inappropriate for this group. You may try some curses-specific newsgroup, or, if this fails, some Solaris- or Unixware-specific newsgroups. --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3066-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 18:25:59 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 28650 invoked by alias); 29 May 2000 18:25:59 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 28618 invoked from network); 29 May 2000 18:25:57 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 29 May 2000 18:25:57 -0000 Received: from cacau.lsd.ic.unicamp.br (IDENT:root@cacau.lsd.ic.unicamp.br [143.106.24.146]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id OAA19521 for ; Mon, 29 May 2000 14:25:47 -0400 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id PAA29523; Mon, 29 May 2000 15:25:17 -0300 To: alibert Cc: "'help-gcc@gnu.org'" Subject: Re: Cross compiler for M-CORE References: <01BFC96B.7142F380@s207-11> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 29 May 2000 15:25:16 -0300 In-Reply-To: alibert's message of "Mon, 29 May 2000 12:43:03 +0100" Message-ID: Lines: 20 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 29, 2000, alibert wrote: > a GNU Cross compiler for M-CORE. I would like to know if there is > any Win32 based variant of this compiler, and if you know where I > can get one You can probably build one yourself, since the mcore port is part of GCC. You may also need binutils and newlib. > I also saw on the Cygnus' site, that there is a grafical interface > for GDB. It's called Insight, and it's available at Sourceware.cygnus.com. I'm not sure it works on MS-Windows, though. Maybe atop Cygwin? --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3067-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 19:27:26 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 14469 invoked by alias); 29 May 2000 19:27:26 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 14438 invoked from network); 29 May 2000 19:27:24 -0000 Received: from empire.netrevolution.com (root@207.253.184.2) by sourceware.cygnus.com with SMTP; 29 May 2000 19:27:24 -0000 Received: from netrevolution.com (213.AS5248-1-Sherb.NetRevolution.com [207.253.184.213]) by empire.NetRevolution.com (8.9.3/8.8.7) with ESMTP id PAA32594 for ; Mon, 29 May 2000 15:57:45 -0400 Message-ID: <39328C0B.C803EBBB@netrevolution.com> Date: Mon, 29 May 2000 11:26:03 -0400 From: Mike Corbeil X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.2.5-22 i586) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: Knowing the number of variable arguments. References: <20000529190525.B262@armageddon.libero.it> <20000529195259.C262@armageddon.libero.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Alexandre Oliva wrote: > On May 29, 2000, Gigi Sullivan wrote: > > Nope. If you pass a list of pointers, the last of which is NULL, then > you can certainly expect va_arg to work correctly on all platforms, as > long as you tell it each argument is the appropriate pointer type. > > > Not all pass parameters on the stack (that could grows towards > > lower/upper address). > > va_arg will take care of this for you. > > > Could be this an addendum to the current gcc? > > What kind of extension are you thinking of? > This was initially stated to be for a C program, or .c anyway, and I'm wondering what stage of development this program is at. If early and there wouldn't be much to convert, then couldn't this be done in C++, using inherent language support? I haven't worked in or looked at C++ for some time, but remember something about methods inherently being able to accept a variable number of arguments, albeit maybe one is always needed. I have books and could verify this, but am lazy and will just throw out the idea. There's probably someone out there with more experience using this particular C++ capability, because I've never need to use it. >From what I recall, this was only covered for methods. I don't recall anything being specifically said about variable command line argument lists. Isn't there a getopt or getopts C function? There is for shell script and it (I believe) requires -{option}'s, i.e., option switches, to be used (not sure if the switches are necessary), but seem to remember reading somewhere, maybe in Perl, that the script getopt function was associated with the C function, and this would be GNU C. Perl has been ported to other OSs and I believe it's getopt function is supported on all; therefore, GNU C getopt or what ever the correct name is would probably also be equally supported or portable. Check for the getopt function (name may be a little different) to see if this is portable and exists. With getopt, at least with the option switches, you need to account for all possibilities and defaults, although default could be the only thing the block does or does not do, and you code according to what ever the logic is for the command line. Perhaps I don't understand the problem in question well enough, but this is simple to do in script. If this is a new program and little has been written, then maybe Perl would be a solution, if you can't determine how to do this in C or C++. mike From gcc-help-return-3068-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 20:31:44 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 27443 invoked by alias); 29 May 2000 20:31:43 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 27411 invoked from network); 29 May 2000 20:31:41 -0000 Received: from cs.sfu.ca (142.58.111.1) by sourceware.cygnus.com with SMTP; 29 May 2000 20:31:41 -0000 Received: from ratbert.cs.sfu.ca (dycheung@ratbert [199.60.8.137]) by cs.sfu.ca (8.9.1/8.9.1) with ESMTP id NAA04603; Mon, 29 May 2000 13:31:36 -0700 (PDT) From: Desmond Cheung Received: (from dycheung@localhost) by ratbert.cs.sfu.ca (8.9.1/8.9.1) id NAA21275; Mon, 29 May 2000 13:31:33 -0700 (PDT) Date: Mon, 29 May 2000 13:31:33 -0700 (PDT) Message-Id: <200005292031.NAA21275@ratbert.cs.sfu.ca> To: aoliva@cygnus.com Subject: Re: Command failed for target 'libgcc1-asm.a' Cc: gcc-help@gcc.gnu.org X-Sun-Charset: US-ASCII >>. >>. >>. >>done >>_mulsi3 >>sh: m68k-unknown-coff-ar: execute permission denied >>*** Error code 1 >>make: Fatal error: Command failed for target `libgcc1-asm.a' >>Current working directory /net/local-kirin/gnudev/gnu/m68k/gcc-2.95.2/gcc >>*** Error code 1 >>make: Fatal error: Command failed for target `cross' >> >>Does anyone know how to solve this? >>Thanks >Maybe you should make it executable? It's already executable under the $prefix/bin folder. Des From gcc-help-return-3069-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 20:34:06 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 28084 invoked by alias); 29 May 2000 20:34:06 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 28039 invoked from network); 29 May 2000 20:33:59 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 29 May 2000 20:33:59 -0000 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id RAA30414; Mon, 29 May 2000 17:33:18 -0300 To: Desmond Cheung Cc: gcc-help@gcc.gnu.org Subject: Re: Command failed for target 'libgcc1-asm.a' References: <200005292031.NAA21275@ratbert.cs.sfu.ca> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 29 May 2000 17:33:18 -0300 In-Reply-To: Desmond Cheung's message of "Mon, 29 May 2000 13:31:33 -0700 (PDT)" Message-ID: Lines: 12 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 29, 2000, Desmond Cheung wrote: > It's already executable under the $prefix/bin folder. Can you run it by hand? Are you sure that's the one that's being used? --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3070-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 20:42:49 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 28959 invoked by alias); 29 May 2000 20:42:49 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 28924 invoked from network); 29 May 2000 20:42:44 -0000 Received: from cs.sfu.ca (142.58.111.1) by sourceware.cygnus.com with SMTP; 29 May 2000 20:42:44 -0000 Received: from ratbert.cs.sfu.ca (dycheung@ratbert [199.60.8.137]) by cs.sfu.ca (8.9.1/8.9.1) with ESMTP id NAA04990; Mon, 29 May 2000 13:42:42 -0700 (PDT) From: Desmond Cheung Received: (from dycheung@localhost) by ratbert.cs.sfu.ca (8.9.1/8.9.1) id NAA21486; Mon, 29 May 2000 13:42:39 -0700 (PDT) Date: Mon, 29 May 2000 13:42:39 -0700 (PDT) Message-Id: <200005292042.NAA21486@ratbert.cs.sfu.ca> To: aoliva@cygnus.com Subject: Re: Command failed for target 'libgcc1-asm.a' Cc: gcc-help@gcc.gnu.org X-Sun-Charset: US-ASCII > It's already executable under the $prefix/bin folder. Can you run it by hand? Are you sure that's the one that's being used? I tried to run it: [ratbert]/usr/local-kirin/gnudev/gnu/m68k/bin% m68k-unknown-coff-ar Usage: m68k-unknown-coff-ar [-]{dmpqrtx}[abcilosSuvV] [member-name] archive-file file... m68k-unknown-coff-ar -M [ Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 2701 invoked by alias); 29 May 2000 20:58:34 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 2671 invoked from network); 29 May 2000 20:58:31 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 29 May 2000 20:58:31 -0000 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id RAA30520; Mon, 29 May 2000 17:58:22 -0300 To: Desmond Cheung Cc: gcc-help@gcc.gnu.org Subject: Re: Command failed for target 'libgcc1-asm.a' References: <200005292042.NAA21486@ratbert.cs.sfu.ca> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 29 May 2000 17:58:20 -0300 In-Reply-To: Desmond Cheung's message of "Mon, 29 May 2000 13:42:39 -0700 (PDT)" Message-ID: Lines: 11 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 29, 2000, Desmond Cheung wrote: >> It's already executable under the $prefix/bin folder. Is it in your PATH? --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3072-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 21:01:43 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 3158 invoked by alias); 29 May 2000 21:01:43 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 3128 invoked from network); 29 May 2000 21:01:42 -0000 Received: from smtp3.libero.it (193.70.192.53) by sourceware.cygnus.com with SMTP; 29 May 2000 21:01:42 -0000 Received: from armageddon.allanon.org (151.20.43.55) by smtp3.libero.it; 29 May 2000 23:00:40 +0200 Received: by armageddon.allanon.org (Postfix, from userid 0) id 303F05FB6; Tue, 30 May 2000 16:57:51 +0200 (CEST) Date: Tue, 30 May 2000 16:57:50 +0200 From: Gigi Sullivan To: Mike Corbeil Cc: gcc-help@gcc.gnu.org Subject: Re: Knowing the number of variable arguments. Message-ID: <20000530165750.A374@armageddon.libero.it> References: <20000529190525.B262@armageddon.libero.it> <20000529195259.C262@armageddon.libero.it> <39328C0B.C803EBBB@netrevolution.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <39328C0B.C803EBBB@netrevolution.com>; from Mike Corbeil on Mon, May 29, 2000 at 11:26:03AM -0400 Aiee :) Hello! > Alexandre Oliva wrote: > > > On May 29, 2000, Gigi Sullivan wrote: > > > > Nope. If you pass a list of pointers, the last of which is NULL, then > > you can certainly expect va_arg to work correctly on all platforms, as > > long as you tell it each argument is the appropriate pointer type. > > > > > Not all pass parameters on the stack (that could grows towards > > > lower/upper address). > > > > va_arg will take care of this for you. Yep, this is true, but I'd like to avoid explicity NULL in parameter list. There's no true reason to avoid NULL, only it's more pretty. > > > > > Could be this an addendum to the current gcc? > > > > What kind of extension are you thinking of? > > I was thinking about some pretty __builtin* feature that could returns the number of argument passed to a function ... (like __builtin_next_arg(last) is used in some va_arg implementation I guess). > > This was initially stated to be for a C program, or .c anyway, and I'm > wondering what stage of development this program is at. If early and there > wouldn't be much to convert, then couldn't this be done in C++, using > inherent language support? Yep, I know... but I cannot (don't want to) write it in C++. > Isn't there a getopt or getopts C function? There is for shell script and > it (I believe) requires -{option}'s, i.e., option switches, to be used (not > sure if the switches are necessary), but seem to remember reading > somewhere, maybe in Perl, that the script getopt function was associated > with the C function, and this would be GNU C. Perl has been ported to > other OSs and I believe it's getopt function is supported on all; > therefore, GNU C getopt or what ever the correct name is would probably > also be equally supported or portable. > > Check for the getopt function (name may be a little different) to see if > this is portable and exists. Well, I really never looked at getopt sources, but I guess that getopt typically use the well-known `char *fmt' stuff then with while/switch/va_arg we can get all (ok, man va_arg for example and see the EXAMPLE section). Uhm ... related question (well it's the same question applied to other stuff ;)): consider this macro #define EXPAND_ARGS(some, args...) ex_args(some, ##args) Is there a way to get the number of parameters EXPAND_ARGS will expand to? I means is there some pretty gcc-related-feature to get this? e.g. #define EXPAND_ARGS(some, args...) \ do { \ int argc = $$args /* I'm mad! :) something that can get the #args */ \ ex_args(some, argc, ##args); \ } while(0) so in ex_args, I can know the parameter number, by getting argc value (and can use va_arg (through a for cycle, for example). bye bye (and thx :)) -- gg sullivan -- Lorenzo Cavallaro `Gigi Sullivan' Until I loved, life had no beauty; I did not know I lived until I had loved. (Theodor Korner) From gcc-help-return-3073-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 21:05:43 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 3701 invoked by alias); 29 May 2000 21:05:43 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 3663 invoked from network); 29 May 2000 21:05:39 -0000 Received: from cs.sfu.ca (142.58.111.1) by sourceware.cygnus.com with SMTP; 29 May 2000 21:05:39 -0000 Received: from ratbert.cs.sfu.ca (dycheung@ratbert [199.60.8.137]) by cs.sfu.ca (8.9.1/8.9.1) with ESMTP id OAA05922; Mon, 29 May 2000 14:05:37 -0700 (PDT) From: Desmond Cheung Received: (from dycheung@localhost) by ratbert.cs.sfu.ca (8.9.1/8.9.1) id OAA05416; Mon, 29 May 2000 14:05:33 -0700 (PDT) Date: Mon, 29 May 2000 14:05:33 -0700 (PDT) Message-Id: <200005292105.OAA05416@ratbert.cs.sfu.ca> To: aoliva@cygnus.com Subject: Re: Command failed for target 'libgcc1-asm.a' Cc: gcc-help@gcc.gnu.org X-Sun-Charset: US-ASCII >> It's already executable under the $prefix/bin folder. Is it in your PATH? oh, maybe not. Where, when, and how should I set this PATH? Thanks Desmond From gcc-help-return-3074-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 21:23:59 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 8022 invoked by alias); 29 May 2000 21:23:59 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 7991 invoked from network); 29 May 2000 21:23:56 -0000 Received: from cacau.lsd.ic.unicamp.br (root@143.106.24.146) by sourceware.cygnus.com with SMTP; 29 May 2000 21:23:56 -0000 Received: from saci.lsd.ic.unicamp.br (IDENT:oliva@saci.lsd.ic.unicamp.br [143.106.24.137]) by cacau.lsd.ic.unicamp.br (8.9.3/8.9.3) with SMTP id SAA30675; Mon, 29 May 2000 18:23:47 -0300 To: Gigi Sullivan Cc: Mike Corbeil , gcc-help@gcc.gnu.org Subject: Re: Knowing the number of variable arguments. References: <20000529190525.B262@armageddon.libero.it> <20000529195259.C262@armageddon.libero.it> <39328C0B.C803EBBB@netrevolution.com> <20000530165750.A374@armageddon.libero.it> From: Alexandre Oliva Organization: Cygnus Solutions, a Red Hat Company Date: 29 May 2000 18:23:46 -0300 In-Reply-To: Gigi Sullivan's message of "Tue, 30 May 2000 16:57:50 +0200" Message-ID: Lines: 30 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On May 30, 2000, Gigi Sullivan wrote: > I was thinking about some pretty __builtin* feature that could > returns the number of argument passed to a function ... This just can't be computed in general. There's no such thing as a magic terminator that GCC could use for that. And using the FP is not always possible. > #define EXPAND_ARGS(some, args...) ex_args(some, ##args) > Is there a way to get the number of parameters EXPAND_ARGS will expa= nd to? > I means is there some pretty gcc-related-feature to get this? If all args are of the same type, and you know that type, you could declare an auto array, initialize it with ##args, then divide the size of the array by the size of a single element. But this would evaluate the arguments twice. But then, why don't you use #define EXPAND_ARGS(some, args...) ex_args(some, ##args, NULL) ? --=20 Alexandre Oliva Enjoy Guaran=E1, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From gcc-help-return-3075-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Mon May 29 21:42:53 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 10207 invoked by alias); 29 May 2000 21:42:53 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 10164 invoked from network); 29 May 2000 21:42:47 -0000 Received: from smtp1.libero.it (193.70.192.51) by sourceware.cygnus.com with SMTP; 29 May 2000 21:42:47 -0000 Received: from armageddon.allanon.org (151.20.43.55) by smtp1.libero.it; 29 May 2000 23:42:17 +0200 Received: by armageddon.allanon.org (Postfix, from userid 0) id 836825FB6; Tue, 30 May 2000 17:39:29 +0200 (CEST) Date: Tue, 30 May 2000 17:39:28 +0200 From: Gigi Sullivan To: Alexandre Oliva Cc: gcc-help@gcc.gnu.org Subject: Re: Knowing the number of variable arguments. Message-ID: <20000530173928.C374@armageddon.libero.it> References: <20000529190525.B262@armageddon.libero.it> <20000529195259.C262@armageddon.libero.it> <39328C0B.C803EBBB@netrevolution.com> <20000530165750.A374@armageddon.libero.it> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95.5i In-Reply-To: ; from Alexandre Oliva on Mon, May 29, 2000 at 06:23:46PM -0300 Aiee :) Hello! > On May 30, 2000, Gigi Sullivan wrote: > > > I was thinking about some pretty __builtin* feature that could > > returns the number of argument passed to a function ... > > This just can't be computed in general. There's no such thing as a > magic terminator that GCC could use for that. And using the FP is not > always possible. I would imagine ;) [snip] > > If all args are of the same type, and you know that type, you could > declare an auto array, initialize it with ##args, then divide the size > of the array by the size of a single element. But this would evaluate > the arguments twice. Yeah, this could be an idea. > > But then, why don't you use > > #define EXPAND_ARGS(some, args...) ex_args(some, ##args, NULL) > > ? ... and this sounds really good! Thx a lot :) > > -- > Alexandre Oliva Enjoy Guaraná, see http://www.ic.unicamp.br/~oliva/ > Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com > Free Software Developer and Evangelist CS PhD student at IC-Unicamp > oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me > bye bye -- gg sullivan -- Lorenzo Cavallaro `Gigi Sullivan' Until I loved, life had no beauty; I did not know I lived until I had loved. (Theodor Korner) From gcc-help-return-3076-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 30 15:59:59 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 2741 invoked by alias); 30 May 2000 15:59:59 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 2711 invoked from network); 30 May 2000 15:59:58 -0000 Received: from cnxtsmtp2.conexant.com (198.62.9.253) by sourceware.cygnus.com with SMTP; 30 May 2000 15:59:58 -0000 Received: from nblnsmtp1.nb.conexant.com (npbsmtp1.nb.conexant.com [157.152.161.153]) by cnxtsmtp2.conexant.com (8.9.3/8.9.3) with ESMTP id IAA16373; Tue, 30 May 2000 08:59:37 -0700 (PDT) Received: from dogbert.westboro.conexant.com ([157.152.32.22]) by nblnsmtp1.nb.conexant.com (Lotus Domino Release 5.0.3) with ESMTP id 2000053008594127:40772 ; Tue, 30 May 2000 08:59:41 -0700 Received: (from presberg@localhost) by dogbert.westboro.conexant.com (8.9.3/8.9.3) id LAA17029; Tue, 30 May 2000 11:59:59 -0400 (EDT) X-Authentication-Warning: dogbert.westboro.conexant.com: presberg set sender to David.Presberg@conexant.com using -f From: David Presberg MIME-Version: 1.0 Message-ID: <14643.58750.877221.760051@dogbert.westboro.conexant.com> Date: Tue, 30 May 2000 11:59:58 -0400 (EDT) To: Gerald Pfeifer Subject: RE2: Re: Why have the prior 2 "gcc Digest" emails *not* been digests? In-Reply-To: References: <200005261534.LAA29562@dogbert.westboro.conexant.com> X-Mailer: VM 6.62 under Emacs 20.4.1 Reply-To: David.Presberg@conexant.com cc: David.Presberg@conexant.com, gcc-help@gcc.gnu.org X-MIMETrack: Itemize by SMTP Server on NPBSMTP1/Server/Conexant(Release 5.0.3 |March 21, 2000) at 05/30/2000 08:59:41 AM, Serialize by Router on NPBSMTP1/Server/Conexant(Release 5.0.3 |March 21, 2000) at 05/30/2000 08:59:42 AM, Serialize complete at 05/30/2000 08:59:42 AM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Gerald -- Hmmm. Note the following (?) randomness: D gcc-digest-help@gcc.gnu.o 24May 08:29 941/31837 "gcc Digest 24 May 2000 08:29:36 -0000 Issue 674" T gcc-owner@gcc.gnu.org 25May 12:03 1469/52200 "gcc Digest 25 May 2000 12:03:47 -0000 Issue 675" T gcc-owner@gcc.gnu.org 26May 10:52 1269/45209 "gcc Digest 26 May 2000 10:52:18 -0000 Issue 676" T gcc-owner@gcc.gnu.org 27May 18:12 1193/40599 "gcc Digest 27 May 2000 18:12:10 -0000 Issue 677" D gcc-digest-help@gcc.gnu.o 28May 14:16 1126/35666 "gcc Digest 28 May 2000 14:16:49 -0000 Issue 678" D gcc-digest-help@gcc.gnu.o 29May 15:20 1056/36941 "gcc Digest 29 May 2000 15:20:23 -0000 Issue 679" T* gcc-owner@gcc.gnu.org 30May 15:30 1450/55179 "gcc Digest 30 May 2000 15:30:32 -0000 Issue 680" where: "D" == (proper digest). "T" == "Content-Type: text/plain; charset=us-ascii". but: "T*" == "Content-Type: multipart/mixed; Boundary="0__=882568EF005567FF8f9e8a93df938690918c882568EF005567FF". which latter is still not a proper digest-form email. And only the proper digests have the extra header-lines that explain about getting off the list, etc. I didn't see any mentions of this digest-and-no-digest situation in any of the postings to "gcc" since you answered my first note on 26 May. -- Pres - David L. Presberg, Software Engineer/Tools - Conexant Systems/Maker Inc., 8 Technology Drive - Westborough, MA 01581-1756, USA Phone: (508) 621-0680 - David.Presberg@conexant.com Nickname: Pres Fax: (508) 621-0605 - *** NOTE THAT ADDRESS, PHONES, AND EMAIL CHANGED, MARCH 2000 *** From gcc-help-return-3077-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 30 17:34:07 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 22585 invoked by alias); 30 May 2000 17:34:06 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 22548 invoked from network); 30 May 2000 17:34:02 -0000 Received: from cs.sfu.ca (142.58.111.1) by sourceware.cygnus.com with SMTP; 30 May 2000 17:34:02 -0000 Received: from ratbert.cs.sfu.ca (dycheung@ratbert [199.60.8.137]) by cs.sfu.ca (8.9.1/8.9.1) with ESMTP id KAA12844 for ; Tue, 30 May 2000 10:34:00 -0700 (PDT) From: Desmond Cheung Received: (from dycheung@localhost) by ratbert.cs.sfu.ca (8.9.1/8.9.1) id KAA27271 for gcc-help@gcc.gnu.org; Tue, 30 May 2000 10:33:57 -0700 (PDT) Date: Tue, 30 May 2000 10:33:57 -0700 (PDT) Message-Id: <200005301733.KAA27271@ratbert.cs.sfu.ca> To: gcc-help@gcc.gnu.org Subject: Cross-compiler installation failed X-Sun-Charset: US-ASCII Hi, I've been trying to install a cross-compiler for few days but haven't had the luck. I've overcome some problems such as "sys-include doesn't not exist" and "gperf -F invalid option". Now I've come to another problem: I've install binntils-2.9.1 and failed installing gcc-2.95.2. The following is the directory structure /usr/local-kirin/gnudev/gnu/m68k-coff/build-binutils /build-gcc /build-newlib /build-gdb /binutils-2.9.1 /gcc-2.95.2 /newlib-1.8.2 /bar After I built binutils I did the following: /usr/local-kirin/gnudev/gnu/m68k-coff/buid-gcc% ../gcc-2.95.2/configure --target=m68k-unknown-coff --prefix=/usr/local-kirin/gnudev/gnu/m68k-coff/bar --with-headers=/usr/local-kirin/gnudev/gnu/m68k-coff/bar/m68k-unknown-coff/sys-include -v /usr/local-kirin/gnudev/gnu/m68k-coff/buid-gcc% /usr/local/Gnu/bin/make . . . /bin/sh: m68k-coff-ar: execute permission denied _nesf2 /bin/sh: m68k-coff-ar: execute permission denied _gtsf2 /bin/sh: m68k-coff-ar: execute permission denied _gesf2 /bin/sh: m68k-coff-ar: execute permission denied _ltsf2 /bin/sh: m68k-coff-ar: execute permission denied _lesf2 /bin/sh: m68k-coff-ar: execute permission denied rm -f libgcc1.S mv tmplibgcc1.a libgcc1-asm.a mv: cannot access tmplibgcc1.a make[1]: *** [libgcc1-asm.a] Error 2 make[1]: Leaving directory `/net/local-kirin/gnudev/gnu/m68k-coff/build-gcc/gcc' make: *** [all-gcc] Error 2 [ratbert]/usr/local-kirin/gnudev/gnu/m68k-coff/build-gcc% cd .. Could someone please help me out? Thanks a lot!! Desmond Cheung dycheung@cs.sfu.ca From gcc-help-return-3078-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 30 20:06:03 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 4456 invoked by alias); 30 May 2000 20:06:03 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 4425 invoked from network); 30 May 2000 20:06:01 -0000 Received: from vexpert.dbai.tuwien.ac.at (128.130.111.12) by sourceware.cygnus.com with SMTP; 30 May 2000 20:06:01 -0000 Received: from [128.130.111.2] (deneb [128.130.111.2]) by vexpert.dbai.tuwien.ac.at (8.9.3/8.9.3) with ESMTP id WAA00674; Tue, 30 May 2000 22:05:54 +0200 (MET DST) Date: Tue, 30 May 2000 22:05:53 +0200 (CEST) From: Gerald Pfeifer To: David Presberg cc: gcc-help@gcc.gnu.org Subject: Re: RE2: Re: Why have the prior 2 "gcc Digest" emails *not* been digests? In-Reply-To: <14643.58750.877221.760051@dogbert.westboro.conexant.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 30 May 2000, David Presberg wrote: > I didn't see any mentions of this digest-and-no-digest situation in any > of the postings to "gcc" since you answered my first note on 26 May. That's because I have forwarded to original mail to an internal list. One of the root folks had a look, but we haven't been able to find the reason behind the behavior you're experiencing. :-( (I have forwarded this message as well, but I believe the best address for problems like that in general is posting to the gcc@gcc.gnu.org list directly...) Gerald -- Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/ From gcc-help-return-3079-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Tue May 30 20:36:06 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 13347 invoked by alias); 30 May 2000 20:36:06 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 13302 invoked from network); 30 May 2000 20:36:04 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 30 May 2000 20:36:04 -0000 Received: from pluto.mis.amat.com (pluto.mis.amat.com [207.82.111.154]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id QAA14593 for ; Tue, 30 May 2000 16:35:54 -0400 Received: from acetsw.amat.com ([152.135.65.74] (may be forged)) by pluto.mis.amat.com (8.8.6 (PHNE_14041)/8.8.6) with ESMTP id NAA29384 for ; Tue, 30 May 2000 13:16:11 -0700 (PDT) Received: from tft07.acetsw (tft07 [152.135.67.7]) by acetsw.amat.com (8.8.8+Sun/8.8.8) with ESMTP id NAA13757 for ; Tue, 30 May 2000 13:35:39 -0700 (PDT) Received: from tft07 (tft07 [152.135.67.7]) by tft07.acetsw (8.8.8+Sun/8.8.8) with SMTP id NAA10093 for ; Tue, 30 May 2000 13:38:38 -0700 (PDT) Message-Id: <200005302038.NAA10093@tft07.acetsw> Date: Tue, 30 May 2000 13:38:37 -0700 (PDT) From: Jerry Donohue Reply-To: Jerry Donohue Subject: Program stack question To: help-gcc@gnu.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: adj33BN7QhnZnVc4XFygeQ== X-Mailer: dtmail 1.2.1 CDE Version 1.2.1 SunOS 5.6 sun4u sparc To whom it may concern: Is it possible to set the stack size for a program?? If so, how can this be done?? This is using GCC on a SUN Solaris system. Regards, Jerry Donohue jdonohue@acetsw.amat.com (408) 986-2923 From gcc-help-return-3080-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 31 03:56:50 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 26804 invoked by alias); 31 May 2000 03:56:49 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 26773 invoked from network); 31 May 2000 03:56:47 -0000 Received: from zeus.bridgeport.edu (216.87.96.66) by sourceware.cygnus.com with SMTP; 31 May 2000 03:56:47 -0000 Received: from dbase (dbase.bridgeport.edu [216.87.102.26]) by zeus.bridgeport.edu (8.9.3/8.9.3) with ESMTP id XAA19209 for ; Tue, 30 May 2000 23:56:45 -0400 (EDT) Date: Tue, 30 May 2000 23:56:44 -0400 (EDT) From: Abdelshakour Abuzneid X-Sender: abuzneid@dbase To: gcc-help@gcc.gnu.org Subject: make erreo! Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I downloaded a binary GNUgcc and tested it. Works fine. I am trying to compile the GNUgcc source. The steps I followed, 1. mkdir /var/tmp/objdir 2. cd /var/tmp/objdir 3. /var/tmp/gcc-2.95.2/configure 4. I downloaded gmake (binary). 5. to build the compiler $usr/local/bin/gmake bootstrap The end, it gives this error: ask.o vasprintf.o vfork.o gmake[1]: ar: Command not found gmake[1]: *** [libiberty.a] Error 127 gmake[1]: Leaving directory `/var/tmp/objdir/libiberty' gmake: *** [all-libiberty] Error 2 WHAT SHOULD I DO TO FIX THIS? ;.............................................................; |Abdelshakour Abuzneid MS, MCSE, MCP| |Director of Systems Operations Email:abuzneid@bridgeport.edu| |Phone (203) 576-4113 169 University Ave| |Fax (203) 576-4766 Bridgeport, CT 06601, U.S.A| +.............................................................+ From gcc-help-return-3081-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 31 04:01:38 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 27355 invoked by alias); 31 May 2000 04:01:38 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 27324 invoked from network); 31 May 2000 04:01:36 -0000 Received: from enrirelay.enri.go.jp (202.241.15.2) by sourceware.cygnus.com with SMTP; 31 May 2000 04:01:36 -0000 Received: from mhub.enri.go.jp (mhub.enri.go.jp [172.16.40.88]) by enrirelay.enri.go.jp (8.8.8+2.7Wbeta7/3.6Wpre3-enri-07/07/98) with SMTP id NAA12453; Wed, 31 May 2000 13:01:33 +0900 (JST) Received: from [172.16.144.31] ([172.16.144.31]) by mhub.enri.go.jp (8.6.10+2.4W/3.3W9-enri-04/25/95) with ESMTP id NAA24066; Wed, 31 May 2000 13:01:37 +0900 X-Sender: mark@mhub Message-Id: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 31 May 2000 13:01:29 +0900 To: Abdelshakour Abuzneid From: Mark Brown Subject: Re: make erreo! Cc: gcc-help@gcc.gnu.org At 11:56 PM -0400 00.5.30, Abdelshakour Abuzneid wrote: >The end, it gives this error: > >ask.o vasprintf.o vfork.o >gmake[1]: ar: Command not found >gmake[1]: *** [libiberty.a] Error 127 >gmake[1]: Leaving directory `/var/tmp/objdir/libiberty' >gmake: *** [all-libiberty] Error 2 > >WHAT SHOULD I DO TO FIX THIS? Well, it says it can't find the "ar" command, which is the archiver. Check this program exists on your system and is on your path - do a 'which ar' for example.What system are you working on? -- Dr. Mark A. Brown EU Visiting Research Fellow Electronic Navigation Research Institute 6-38-1 Shinkawa, Mitaka, Tokyo 181-0004 From gcc-help-return-3082-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 31 06:10:17 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 8152 invoked by alias); 31 May 2000 06:10:17 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 8122 invoked from network); 31 May 2000 06:10:16 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 31 May 2000 06:10:16 -0000 Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id CAA28614 for ; Wed, 31 May 2000 02:10:10 -0400 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id IAA02728; Wed, 31 May 2000 08:07:44 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id IAA00934; Wed, 31 May 2000 08:05:02 +0200 Date: Wed, 31 May 2000 08:05:02 +0200 Message-Id: <200005310605.IAA00934@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: jdonohue@acetsw.amat.com CC: help-gcc@gnu.org In-reply-to: <200005302038.NAA10093@tft07.acetsw> (message from Jerry Donohue on Tue, 30 May 2000 13:38:37 -0700 (PDT)) Subject: Re: Program stack question References: <200005302038.NAA10093@tft07.acetsw> User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > Is it possible to set the stack size for a program?? > If so, how can this be done?? > This is using GCC on a SUN Solaris system. Not in the compiler, no. If possible at all, it would be a property of the linker or the operating system. On Solaris, see limit(1) for details. Regards, Martin From gcc-help-return-3083-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 31 18:23:13 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 16852 invoked by alias); 31 May 2000 18:23:13 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 16821 invoked from network); 31 May 2000 18:23:11 -0000 Received: from mescaline.gnu.org (158.121.106.21) by sourceware.cygnus.com with SMTP; 31 May 2000 18:23:11 -0000 Received: from empire.NetRevolution.com (IDENT:root@Empire.NetRevolution.com [207.253.184.2]) by mescaline.gnu.org (8.9.1a/8.9.1) with ESMTP id OAA18338 for ; Wed, 31 May 2000 14:22:57 -0400 Received: from netrevolution.com (IDENT:root@180.AS5248-1-Sherb.NetRevolution.com [207.253.184.180]) by empire.NetRevolution.com (8.9.3/8.8.7) with ESMTP id OAA23025 for ; Wed, 31 May 2000 14:11:47 -0400 Message-ID: <39355846.688E7125@netrevolution.com> Date: Wed, 31 May 2000 14:21:58 -0400 From: Mike Corbeil X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.2.5-22 i586) MIME-Version: 1.0 To: help-gcc@gnu.org Subject: Re: Program stack question References: <200005302038.NAA10093@tft07.acetsw> <200005310605.IAA00934@loewis.home.cs.tu-berlin.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Martin v. Loewis wrote: > > Is it possible to set the stack size for a program?? > > If so, how can this be done?? > > This is using GCC on a SUN Solaris system. > > Not in the compiler, no. If possible at all, it would be a property of > the linker or the operating system. On Solaris, see limit(1) for > details. > Just in case limit might be wrong, ulimit is what I believe is being referred to, for Linux and some Unix platforms I've worked on, that is, if limit is a shell built-in. There aren't any bin or sbin programs named limit on my system, and the way to get the documentation on ulimit is to run man bash Easier to dump that to a file, remove all the control characters and then search for ulimit. The bash man page is long so dumping to a file makes it easier to read than using man, alone. If you choose to do that and find the text cluttered with control characters which shouldn't be there and wonder how to get rid of these, then it's simple to do in vi or vim. Read on if you want to know how to do this. Say you dumped the man page to file bash.man, then do % vi bash.man ESC :%s/.CTRL-V+CTRL-{key}//g :w /ulimit Use :w! if :w doesn't work. The ESC isn't necessary, but ensures you're in command mode, as opposed to insert. All uppercase means literally that key, as does all lowercase, except for what's in {}. CTRL-V+CTRL-{key} means to press ctrl-v and hold it down while pressing ctrl plus the letter or character key shown as the control character you want to replace. In my case, it's ctrl-v+ctrl-h. Otherwise, the casing is important for everything else and the :%, /., /, :, i.e., everything else is literal, other than {key}. mike > Regards, > Martin From gcc-help-return-3084-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 31 19:54:32 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 23195 invoked by alias); 31 May 2000 19:54:31 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 23136 invoked from network); 31 May 2000 19:54:25 -0000 Received: from mspeos0.corp.medtronic.com (144.15.157.114) by sourceware.cygnus.com with SMTP; 31 May 2000 19:54:25 -0000 Received: from MSPEOS-Message_Server by mspeos0.corp.medtronic.COM with Novell_GroupWise; Wed, 31 May 2000 14:54:13 -0500 Message-Id: X-Mailer: Novell GroupWise 5.5.3 Date: Wed, 31 May 2000 14:53:57 -0500 From: "Leo Shklovskii" To: Subject: Parallelization on gcc? Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I'm a relatively new Unix user using an SGI IRIX 6.4 workstation. I've = been given some code to port and run on the machine and have gotten it = working using GCC. The default compiler that was already on the machine = has a few screws loose (it complains when I redefine a default value in a = class... Isn't that what you're supposed to do?!?!). So, I installed GCC = and so far everything has been going great. The reason that I've been making the port is to take advantage of the 28 = or so processors that are in this machine. However, I have not been able = to find any information as to whether, and/or how gcc can parallelize = code. If anyone could recommend any information or even point me to a web = page I would be very greatful. Or, if parallelization is impossible with = GCC, would anyone perchance know of another free or cheap compiler that = could parallelize? --Leo From gcc-help-return-3085-listarch-gcc-help=gcc.gnu.org@gcc.gnu.org Wed May 31 21:31:35 2000 Return-Path: Delivered-To: listarch-gcc-help@gcc.gnu.org Received: (qmail 8241 invoked by alias); 31 May 2000 21:31:35 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Delivered-To: mailing list gcc-help@gcc.gnu.org Received: (qmail 8199 invoked from network); 31 May 2000 21:31:33 -0000 Received: from mail.cs.tu-berlin.de (root@130.149.17.13) by sourceware.cygnus.com with SMTP; 31 May 2000 21:31:33 -0000 Received: from loewis.home.cs.tu-berlin.de (loewis.home.cs.tu-berlin.de [130.149.147.34]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id XAA20087; Wed, 31 May 2000 23:27:44 +0200 (MET DST) Received: (from martin@localhost) by loewis.home.cs.tu-berlin.de (8.8.7/8.8.7) id XAA02064; Wed, 31 May 2000 23:19:13 +0200 Date: Wed, 31 May 2000 23:19:13 +0200 Message-Id: <200005312119.XAA02064@loewis.home.cs.tu-berlin.de> From: "Martin v. Loewis" To: leo.shklovskii@medtronic.com CC: gcc-help@gcc.gnu.org In-reply-to: (leo.shklovskii@medtronic.com) Subject: Re: Parallelization on gcc? References: User-Agent: SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i586-pc-linux-gnu) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII > The reason that I've been making the port is to take advantage of > the 28 or so processors that are in this machine. However, I have > not been able to find any information as to whether, and/or how gcc > can parallelize code. If anyone could recommend any information or > even point me to a web page I would be very greatful. Or, if > parallelization is impossible with GCC, would anyone perchance know > of another free or cheap compiler that could parallelize? I believe GCC won't directly generate 'parallel' code. Are you sure there is any compiler at all, free and cheap or not, that could generate code that makes use of 28 or so processors? I very much doubt that. Instead, to make use of many processors, I'd suggest to take the more traditional approaches: MPI, PVM, multi-threading, completely-decoupled operating system processes (batch processing). Regards, Martin