Re: gcc question

2002-08-09 Thread Muli Ben-Yehuda
On Fri, Aug 09, 2002 at 10:10:00AM +0300, Oleg Goldshmidt wrote: > Muli Ben-Yehuda <[EMAIL PROTECTED]> writes: > > > I was thinking of kernel compilation, which requires -O2 (force > > inlining) > > -O3 turns -finline-functions on. -O2 turns -fforce-mem on, maybe > that's what you meant. The ke

Re: gcc question

2002-08-08 Thread Oleg Goldshmidt
Muli Ben-Yehuda <[EMAIL PROTECTED]> writes: > I was thinking of kernel compilation, which requires -O2 (force > inlining) -O3 turns -finline-functions on. -O2 turns -fforce-mem on, maybe that's what you meant. > and thus would break horribly if you compile some of the files with > O1. Why? Why

Re: gcc question

2002-08-08 Thread Oleg Goldshmidt
"Nadav Har'El" <[EMAIL PROTECTED]> writes: > But if you're going to compile some of the code with -O1 and -O3, your > Makefile or configure script are going to look realy hairy :( It will > look like black magic. A better (but more time consuming) thing to do is > to try to find the offending pie

Re: gcc question

2002-08-08 Thread Muli Ben-Yehuda
On Thu, Aug 08, 2002 at 09:01:01PM +0300, Shachar Shemesh wrote: > >>My question is, can I compile in the same command line some files under > >>-O1 and some under -O3? > > > >If they're going to be linked together, that's a very bad > >idea. Otherwise, you could probably do it with some Makefil

Re: gcc question

2002-08-08 Thread Muli Ben-Yehuda
On Thu, Aug 08, 2002 at 06:31:11PM +0300, Orr Dunkelman wrote: > I've stumbled with the following problem regarding gcc. Assume for a > moment I compile many files, some are header files, some are interface > files, and some are the "real" program. > > When compiling with -O1 optimization things

[hackers-il] Hypothetical sensitivity of compiler to legal status of source code? (was: Re: gcc question)

2002-08-08 Thread Omer Zak
On Thu, 8 Aug 2002, Orr Dunkelman wrote: > The code is closed under some legal agreements, so I cannot release it, > neither send gcc a bug-report. The possibility that gcc is somehow sensitive to the legal status of the code in question does not have to be ruled out. How this might happen

Re: gcc question

2002-08-08 Thread Nadav Har'El
On Thu, Aug 08, 2002, Muli Ben-Yehuda wrote about "Re: gcc question": > On Thu, Aug 08, 2002 at 06:31:11PM +0300, Orr Dunkelman wrote: >... > > My question is, can I compile in the same command line some files under > > -O1 and some under -O3? > > If they'r

Re: gcc question

2002-08-08 Thread Official Flamer/Cabal NON-Leader
Quoth Orr Dunkelman: > The code is closed under some legal agreements, so I cannot release it, > neither send gcc a bug-report. For baseline comparison sake, could you give a compilation round under icc (Intel's i386 copiler)... It (the icc) is somewhat more pedantic than gcc and might flush som

Re: gcc question.

2000-10-19 Thread Ely Levy
do setenv CC /usr/bin/kgcc or export CC=kgcc on bash Ely Levy System group Hebrew University Jerusalem Israel On Wed, 18 Oct 2000, Yosi wrote: | Hi, | | After reading the answers of Guy and Omer, to your question, I think | that neither of them actually answered, on how to compile a ke

Re: gcc question.

2000-10-18 Thread Yosi
Hi, Alex is right, you have to change the kernel's Makefile so it will use kgcc insted of gcc. Alex is also correct that the answer I gave appears in the manual. Yosi Alex wrote: >i think you also have to set the "CC" system variable to "kgcc" by >the way from what I know this issue is stated i

Re: gcc question.

2000-10-18 Thread Alex Dubrovsky
Yosi wrote: > > Hi, > > After reading the answers of Guy and Omer, to your question, I think > that neither of them actually answered, on how to compile a kernel on > RedHat 7.0 . If we forget for a moment the flame war about the > decision to include a snapshot of gcc in RH7 , and focus on your

Re: gcc question.

2000-10-18 Thread Yosi
Hi, After reading the answers of Guy and Omer, to your question, I think that neither of them actually answered, on how to compile a kernel on RedHat 7.0 . If we forget for a moment the flame war about the decision to include a snapshot of gcc in RH7 , and focus on your probelm, the answer will b

Re: gcc question.

2000-10-17 Thread Omer Musaev
guy keren wrote: > On Tue, 17 Oct 2000, Maxim Kryachko wrote: > > > Having recently installed RH7 I tried to compile several things, such as > > modem driver, new kernel and modules, in all cases compiler (gcc) reports of > > a bunch of errors and exits. > > Both modem driver and kernel (2.3.9) c

Re: gcc question.

2000-10-17 Thread guy keren
On Tue, 17 Oct 2000, Maxim Kryachko wrote: > Having recently installed RH7 I tried to compile several things, such as > modem driver, new kernel and modules, in all cases compiler (gcc) reports of > a bunch of errors and exits. > Both modem driver and kernel (2.3.9) compile OK in Slackware 7on g

gcc question.

2000-10-17 Thread Maxim Kryachko
Hi all. Having recently installed RH7 I tried to compile several things, such as modem driver, new kernel and modules, in all cases compiler (gcc) reports of a bunch of errors and exits. Both modem driver and kernel (2.3.9) compile OK in Slackware 7 on gcc-2.92. Now I use version 2.96 of gcc, whi