public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Help!
@ 2000-02-24  0:56 陳鵬升
  2000-04-01  0:00 ` Help! 陳鵬升
  0 siblings, 1 reply; 23+ messages in thread
From: 陳鵬升 @ 2000-02-24  0:56 UTC (permalink / raw)
  To: gcc, gcc-help


Hello:

      Under M68000,
      I want to generate position-independent-data using the base of register A5.
      I modify legitimate_pic_address function and produce the RTL that I want.
      I want use PID(base-register A5) and  option -mpcrel .
------------------------------------------------------------
for example :

      (insn 10 5 11 (set (reg:SI 30)
        (mem/u:SI (plus:SI (reg:SI 13 %a5)
                (symbol_ref:SI ("C"))) 0)) -1 (nil)
    (nil))

(insn 11 10 13 (set (reg:SI 29)
        (reg:SI 30)) -1 (nil)
    (expr_list:REG_EQUAL (symbol_ref:SI ("C"))
        (nil)))
-------------------------------------------------------------
      If I don't use -O2 optimal option, the output assemble code is right.
      If I use -O2 optimal option, the output assemble code is wrong.
      The option -fpic also generate the same RTL code, but it don't be affect by -O2.
      What files and where should I modify for correct it?
      Thanks very much.

								Ps. Chen
      

^ permalink raw reply	[flat|nested] 23+ messages in thread
* HELP !!!
@ 2000-03-08 14:14 Fabrício Souza
  2000-03-09 17:00 ` Alexandre Oliva
  2000-04-01  0:00 ` Fabrício Souza
  0 siblings, 2 replies; 23+ messages in thread
From: Fabrício Souza @ 2000-03-08 14:14 UTC (permalink / raw)
  To: gnu

Please help me !

I'm from Brazil - Sao Paulo State University - Computing Department.

I tried to install the ht://Dig in my HTTP Server
(IBM Risc 6000 / Unix / AIX 4.1.4 / Apache 1.3.9 / c++ / gcc 2.8.1)

The "configure" process aborts with this ending screen:

creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... c++
checking whether the C++ compiler (c++  ) works... no
configure: error: installation or configuration problem: C++ compiler
cannot cre
ate executables.
#


And the config.log  file contains:
...
...
configure:1642: checking whether we are using GNU C
configure:1670: checking whether gcc accepts -g
configure:1706: checking for c++
configure:1738: checking whether the C++ compiler (c++  ) works
configure:1754: c++ -o conftest    conftest.C  1>&5
collect2: ld returned 255 exit status
ld: 0706-006 Cannot find or open library file: -l stdc++
        ld:open(): No such file or directory
configure: failed program was:

#line 1749 "configure"
#include "confdefs.h"

int main(){return(0);}


If the "stdc++" file is missing, where I can find it ?
Otherwise, what's wrong ???

Please, any help will be welcome ......

Thanks a lot ! And sorry about my English.


Souza.

^ permalink raw reply	[flat|nested] 23+ messages in thread
* HELP!!!
@ 2000-05-15  9:15 Michael Michael
  2000-05-16 23:27 ` HELP!!! Martin v. Loewis
  0 siblings, 1 reply; 23+ messages in thread
From: Michael Michael @ 2000-05-15  9:15 UTC (permalink / raw)
  To: gcc, gcc-help

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






















^ permalink raw reply	[flat|nested] 23+ messages in thread
* Help?
@ 2001-01-02 18:27 Kwanghoon Choi
  2001-01-02 19:37 ` Help? Alexandre Oliva
  0 siblings, 1 reply; 23+ messages in thread
From: Kwanghoon Choi @ 2001-01-02 18:27 UTC (permalink / raw)
  To: gcc-help; +Cc: Kwanghoon Choi

Hello all,

I would like to know the precise sequence of loading and execution of
a given executable. In my specific flatform (the ARM machine, uclinux kernel,
gcc, and glibc), I am using binary executables in a flat form, not like ELF. 
The below simple program gets crashed whenever I compile the program with 
-lpthread even if the program does not use the thread library. If I omit
the option -lpthread, it works well! 

   main()
   {
        int childpid;

        if( (childpid = vfork()) == -1 ) {
                /* can't vfork */
        }
        else if(childpid == 0) {
               /* child process */
        }
        else {
        	    /* parent process */
        }
   }

I know it is foolish to give the option -lpthread in my simple program,
but it is just a test to resolve my questions to be explained.
In order to examine why, I instrumented some printf-like functions into
uclinux kernel sources and glibc sources.  

By instrumenting pthread library functions in glibc, I found that 
pthread_initialize() gets called before the main() function.
The reason seems to be that the function is declared as this:  

   static void pthread_initialize(void) __attribute__((constructor));

My execution sequence is like this as far as I know by instrumenting 
printf-like functions.

   KERNEL : ...
            search_binary_handler() // load an executable in a flat form
            do_load_flat_binary()   // $UCLINUX/fs/binfmt_flat.c
            ...
            wake_up()               // the process for the executable 
                                    // gets control
            ???

   USER   : ???
            __libc_start_main       // $GLIBC/sysdeps/generic/libc-start.c
                                    // glibc's entry ?
            ???
            pthread_initialize()    // $GLIBC/linuxpthread/pthread.c
                                    // pthread initialization  
            ...
            main()                  // user's program 

First, I don't know who really calls __libc_start_main() functions. Notice 
that it receives several arguments, mostly function pointers.

   int __libc_start_main (int (*main) (int, char **, char **), int argc,
                          char **argv, void (*init) (void), void (*fini) (void),
                          void (*rtld_fini) (void), void *stack_end)
   {
     ...
   }

Second, though I know pthread_initialize() is (indirectly) called in the 
__libc_start_main(), I don't know where exectly. The reason is that
pthread_initialize() seems to be called via some function pointer, e.g. init().

Third, I don't know how GCC compiles the functions declared with 
__attribute__((constructor)). I would like to know the compilation
strategy specifically in the flat-formed executable.


Although I will check this mailing list reguraly, it would be happy
to forward your reply to khchoi@pllab.kaist.ac.kr.

Thank you for reading my long mail.

Kwanghoon

p.s. I looked around the site of GCC online documentation 
       ( http://www.gnu.org/software/gcc/onlinedocs/ )
     but it contains some broken links, e.g. for GCC manual 
       ( http://gcc.gnu.org/onlinedocs/gcc_toc.html )



^ permalink raw reply	[flat|nested] 23+ messages in thread
* Help!
@ 2002-04-04 23:41 朱 少波
  0 siblings, 0 replies; 23+ messages in thread
From: 朱 少波 @ 2002-04-04 23:41 UTC (permalink / raw)
  To: help-gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 2105 bytes --]



Dear Sir/Madam:

I am eager to know if the gcc support the Analog Devices company's 
ADSP-21XX. I have download many editions of gcc source files and the gcc 
3.0.2 manual, but I cannot find any information about the ADSP-21XX. I 
could do nothing but ask for your help. Can you give me an answer or a full 
list of DSPs supported by gcc. I will be very appreciated for your help, 
thank you very much!

                                                               yours 
sincerely
                                                                  Zhu 
shaobo
                                                                     
2002.4.4



Dear Sir/Madam:

I am eager to know if the gcc support the Analog Devices company's 
ADSP-21XX. I have download many editions of gcc source files and the gcc 
3.0.2 manual, but I cannot find any information about the ADSP-21XX. I 
could do nothing but ask for your help. Can you give me an answer or a full 
list of DSPs supported by gcc. I will be very appreciated for your help, 
thank you very much!

                                                               yours 
sincerely
                                                                  Zhu 
shaobo
                                                                     
2002.4.4

Dear Sir/Madam:

I am eager to know if the gcc support the Analog Devices company's 
ADSP-21XX. I have download many editions of gcc source files and the gcc 
3.0.2 manual, but I cannot find any information about the ADSP-21XX. I 
could do nothing but ask for your help. Can you give me an answer or a full 
list of DSPs supported by gcc. I will be very appreciated for your help, 
thank you very much!

                                                               yours 
sincerely
                                                                  Zhu 
shaobo
                                                                     
2002.4.4

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger£º
http://messenger.microsoft.com/cn

^ permalink raw reply	[flat|nested] 23+ messages in thread
[parent not found: <20020617195757.13842.qmail@uwdvg001.cms.usa.net>]
* help!!!
@ 2002-11-19 10:16 mingo lu
  0 siblings, 0 replies; 23+ messages in thread
From: mingo lu @ 2002-11-19 10:16 UTC (permalink / raw)
  To: gcc-help

Hi:

what i have is solaris5.8 on sparc 20 with no
binutils-2.x installed. the comipler is gcc3.2
(32-binary only). I am getting error when i compiled
tcl/tk8.3.5:

.... -ldl  -lsocket -lnsl -lpthread -lm
ld: fatal: library -lgcc_s: not found
ld: fatal: library -lgcc_s: not found
ld: fatal: File processing errors. No output written
to libtcl8.3.so
collect2: ld returned 1 exit status
make: *** [libtcl8.3.so] Error 1

any help would be greatly appreciated ...

tia

mingo



__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

^ permalink raw reply	[flat|nested] 23+ messages in thread
[parent not found: <20021204042724.64819.qmail@web15002.mail.bjs.yahoo.com>]
* help!!!
@ 2003-03-03 17:37 Jim Frost
  2003-03-07  5:46 ` help!!! LLeweLLyn Reese
  0 siblings, 1 reply; 23+ messages in thread
From: Jim Frost @ 2003-03-03 17:37 UTC (permalink / raw)
  To: gcc-help

Any ideas with the following??? gcc3.2



linux:~/aquaosk-2.0 # ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot 
create executables
See `config.log' for more details.

Help appreciated!!!

Thanks,

Jim Frost
-- 
KMail 1.5 KDE 3.1

^ permalink raw reply	[flat|nested] 23+ messages in thread
* help?
@ 2003-07-12 10:05 Shen Hui
  0 siblings, 0 replies; 23+ messages in thread
From: Shen Hui @ 2003-07-12 10:05 UTC (permalink / raw)
  To: gcc-help

gcc-help-help,hi!

I am using gcc-2.95.3 form ARM.

i have a c program file as follow: 

void foo1 ()
{
  int j[]={1,2};
}

void foo2 ()
{
  int j[]={1,2,3};
}


but the code generated for foo1 are:
foo1:
        @ args = 0, pretend = 0, frame = 8
        @ frame_needed = 1, current_function_anonymous_args = 0
        mov     ip, sp
        stmfd   sp!, {r4, fp, ip, lr, pc}
        sub     fp, ip, #4
        sub     sp, sp, #8
        sub     r3, fp, #24
        ldr     r2, .L4
        ldmia   r2, {r3-r4}
        sub     r1, fp, #16
        stmdb   r1, {r3-r4}
        b       .L3

and the code generated for foo2 are:
foo2:
        @ args = 0, pretend = 0, frame = 12
        @ frame_needed = 1, current_function_anonymous_args = 0
        mov     ip, sp
        stmfd   sp!, {fp, ip, lr, pc}
        sub     fp, ip, #4
        sub     sp, sp, #12
        sub     r3, fp, #24
        ldr     r2, .L8
        sub     r3, fp, #24		@**************************it is the redundant instruction, the same as above two.
        mov     ip, r2
        ldmia   ip, {r0-r2}     @ load multiple
        stmia   r3, {r0-r2}     @ str multiple
        b       .L7
  

my question is that in function foo2 there is a redundant instruction (sub     r3, fp, #24),
i donot think it's needed, whereas, there hasnot this instruction in function foo1.
why compiler generate it ?

thanks!

 				
              Shen Hui
              shenhui@mprc.pku.edu.cn
                 2003-07-12

^ permalink raw reply	[flat|nested] 23+ messages in thread
* help_
@ 2005-06-02 15:54 imacat
  0 siblings, 0 replies; 23+ messages in thread
From: imacat @ 2005-06-02 15:54 UTC (permalink / raw)
  To: gcc-help



^ permalink raw reply	[flat|nested] 23+ messages in thread
* Help?
@ 2006-01-28  5:42 Garvin Pang
  2006-01-28  7:41 ` Help? Brian Dessent
  0 siblings, 1 reply; 23+ messages in thread
From: Garvin Pang @ 2006-01-28  5:42 UTC (permalink / raw)
  To: gcc-help

Hi, I'm new to computer programing and I'm in need of help building your 
complier. Your complier seems to be very good but i have no idea how to 
build it because everything you say in the installation page make no sense 
to me, I think is because I'm still new at this but can you guide me on how 
to build the complier? Thanks


^ permalink raw reply	[flat|nested] 23+ messages in thread
* help!!
@ 2006-12-26 13:38 manish manish
  2006-12-27 17:01 ` help!! Ian Lance Taylor
  0 siblings, 1 reply; 23+ messages in thread
From: manish manish @ 2006-12-26 13:38 UTC (permalink / raw)
  To: gcc-help

hi ,
Can anyone send me a link to gimple specification.
thanks
regards
CG

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Help!!
@ 2018-06-01 15:58 Tomas Ukkonen
  0 siblings, 0 replies; 23+ messages in thread
From: Tomas Ukkonen @ 2018-06-01 15:58 UTC (permalink / raw)
  To: gorcunov; +Cc: gcc-help

Hi

People want me dead in Finland. I’m trapped in finnish hospital (Hämeenlinna). My financial situation is somewhat destroyed and police does not investigate crimes against me.

I have coded in asm since 1994 etc. I have used NASM.

I have nop@iki.fi web address. (NOP = assembly instructions).

I’m in some kind of remote control and my head is destroyed badly.

+358-45-6696890

I have worked as Research Scientist and Senior Analytic but my head is kept in "offline" mode somehow since 1980s???

Tomas Ukkonen, M. Sc. (Helsinki University of Technology)
Sent from ProtonMail Mobile

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2018-06-01 15:58 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-24  0:56 Help! 陳鵬升
2000-04-01  0:00 ` Help! 陳鵬升
2000-03-08 14:14 HELP !!! Fabrício Souza
2000-03-09 17:00 ` Alexandre Oliva
2000-04-01  0:00   ` Alexandre Oliva
2000-04-01  0:00 ` Fabrício Souza
2000-05-15  9:15 HELP!!! Michael Michael
2000-05-16 23:27 ` HELP!!! Martin v. Loewis
2001-01-02 18:27 Help? Kwanghoon Choi
2001-01-02 19:37 ` Help? Alexandre Oliva
2002-04-04 23:41 Help! 朱 少波
     [not found] <20020617195757.13842.qmail@uwdvg001.cms.usa.net>
2002-06-17 13:05 ` help!! Phil Edwards
2002-11-19 10:16 help!!! mingo lu
     [not found] <20021204042724.64819.qmail@web15002.mail.bjs.yahoo.com>
2002-12-04  0:16 ` help! Ben Elliston
2003-03-03 17:37 help!!! Jim Frost
2003-03-07  5:46 ` help!!! LLeweLLyn Reese
2003-07-12 10:05 help? Shen Hui
2005-06-02 15:54 help_ imacat
2006-01-28  5:42 Help? Garvin Pang
2006-01-28  7:41 ` Help? Brian Dessent
2006-12-26 13:38 help!! manish manish
2006-12-27 17:01 ` help!! Ian Lance Taylor
2018-06-01 15:58 Help!! Tomas Ukkonen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).