Re: GCC 4.0.1 RC2

2005-06-20 Thread Benjamin Kosnik
> PR 22111 is about libstdc++-v3 being built with binutils 2.15, while > 2.15.90 or later are required by the patch. I say we solve this instead by enabling the abi checking rule only for those platforms that are using symbol versioning. In addition, we try to come up with an autoconf macro that

Re: Reporting bugs: there is nothing to gain in frustrating reporters

2005-06-20 Thread Michael Veksler
[Gaby wants Vincent to explain:] Vincent Lefevre <[EMAIL PROTECTED]> writes: # This is complete non-sense. One doesn't prepare a patch for an invalid # bug. [Michael tries to interpret Vincent:] | I think that what Vincent meant was: | "One doesn't prepare a patch for a PR marked as INVALID"

Re: Reporting bugs: there is nothing to gain in frustrating reporters

2005-06-20 Thread Steven Bosscher
On Jun 20, 2005 09:51 AM, Michael Veksler <[EMAIL PROTECTED]> wrote: > Despite being descriptive and friendly, bug masters > frustrate me and other users by being too eager > to close the PR. I would suggest a policy change, > a PR should be closed (as duplicate or as INVALID) > only after discuss

Re: libstdc++-libc6.1-1.so.2 libraries

2005-06-20 Thread Jonathan Wakely
On Sun, Jun 19, 2005 at 06:49:32PM -0400, Bill wrote: > Below is the error I receive when attempting to run a newly installed > version of netscape 4.79 on centOS 4.0 (RHEL 3), which is my personal > computer at home. This is the only browser that works on linux that is > compatible with the Thori

Re: Reporting bugs: there is nothing to gain in frustrating reporters

2005-06-20 Thread Michael Veksler
Steven Bosscher <[EMAIL PROTECTED]> wrote on 20/06/2005 11:13:35: > On Jun 20, 2005 09:51 AM, Michael Veksler <[EMAIL PROTECTED]> wrote: > > > Despite being descriptive and friendly, bug masters > > frustrate me and other users by being too eager > > to close the PR. I would suggest a policy c

Re: basic VRP min/max range overflow question

2005-06-20 Thread Michael Veksler
Paul Schlie wrote on 20/06/2005 08:55:20: > y = z ? z + x;// y == [INT_MIN+1, INT_MAX+2] Invalid syntax, what did you mean? > I guess I simply believe that optimizations should never alter the logical > behavior of a specified program relative to it's un-optimized form unless > explic

Re: PowerPC small data sections.

2005-06-20 Thread Sergei Organov
Mike Stump <[EMAIL PROTECTED]> writes: > On Friday, June 17, 2005, at 07:13 AM, Sergei Organov wrote: > > The first thing I'd like to get some advice on is which codebase do I > > use, gcc-4_0-branch? > > No, mainline. If it doesn't work there, is won't work anyplace else. :-( > Once you get it

Re: basic VRP min/max range overflow question

2005-06-20 Thread Robert Dewar
Paul Schlie wrote: My position is simply that an optimization should never remove a specified operation unless it is known to yield logically equivalent behavior, as producing a program which does not behave as specified is not a good idea That may be your position, but it is not the position

Re: basic VRP min/max range overflow question

2005-06-20 Thread Robert Dewar
Robert Dewar wrote: That may be your position, but it is not the position of the standard, and indeed it is not a well-formed position. Why, because the whole point is that when the behavior is undefined, then the change DOES yield a logically equivalent behavior, because undefined means undef

Re: Error building 4.0.1-RC2

2005-06-20 Thread Joseph S. Myers
On Mon, 20 Jun 2005, Mark Williams (MWP) wrote: > > > > > > > > Yes i did... i always do and have never had a problem doing so before. > > > I will try building in a different directory though and report back. > > > > http://gcc.gnu.org/install/configure.html > > > > To be honest I'm always su

Re: basic VRP min/max range overflow question

2005-06-20 Thread Paul Schlie
> From: Michael Veksler <[EMAIL PROTECTED]> > Paul Schlie wrote on 20/06/2005 08:55:20: >> y = z ? z + x;// y == [INT_MIN+1, INT_MAX+2] > Invalid syntax, what did you mean? Sorry, meant: y = z + x; // y == [INT_MIN, INT_MAX] + [1, 2] == [INT_MIN+1, INT_MAX+2] >> I guess I simply believe t

Re: basic VRP min/max range overflow question

2005-06-20 Thread Paul Schlie
> From: Robert Dewar <[EMAIL PROTECTED]> > Paul Schlie wrote: > >> My position is simply that an optimization should never remove a specified >> operation unless it is known to yield logically equivalent behavior, as >> producing a program which does not behave as specified is not a good idea > >

Re: basic VRP min/max range overflow question

2005-06-20 Thread Paul Schlie
> From: Robert Dewar <[EMAIL PROTECTED]> > Robert Dewar wrote: > >> That may be your position, but it is not the position of the standard, and >> indeed it is not a well-formed position. Why, because the whole point is >> that >> when the behavior is undefined, then the change DOES yield a logical

Re: basic VRP min/max range overflow question

2005-06-20 Thread Robert Dewar
Paul Schlie wrote: As in my mind, the semantics of foo() dictate that it print the value of the storage location which was allocated to the variable "a", where unless "a" is initialized with an explicit value, may be arbitrary. So I've got no problem with arbitrary results or behavior, I just si

Re: basic VRP min/max range overflow question

2005-06-20 Thread Robert Dewar
Paul Schlie wrote: I too believe I understand your position, however don't believe it's the compiler's job to make life for the programmer harder than it need be when a program may contain an undefined behavior; but agree it would likely always be helpful to for it to point them out when identif

Re: basic VRP min/max range overflow question

2005-06-20 Thread Paul Schlie
> From: Robert Dewar <[EMAIL PROTECTED]> > Paul Schlie wrote: > >> As in my mind, the semantics of foo() dictate that it print the value of >> the storage location which was allocated to the variable "a", where unless >> "a" is initialized with an explicit value, may be arbitrary. So I've got no >

Re: basic VRP min/max range overflow question

2005-06-20 Thread Paul Schlie
> From: Robert Dewar <[EMAIL PROTECTED]> > Paul Schlie wrote: > >> I too believe I understand your position, however don't believe it's the >> compiler's job to make life for the programmer harder than it need be when >> a program may contain an undefined behavior; but agree it would likely >> alw

Re: Reporting bugs: there is nothing to gain in frustrating reporters

2005-06-20 Thread Gabriel Dos Reis
Michael Veksler <[EMAIL PROTECTED]> writes: | [Gaby wants Vincent to explain:] | Vincent Lefevre <[EMAIL PROTECTED]> writes: | # This is complete non-sense. One doesn't prepare a patch for an invalid | # bug. | | [Michael tries to interpret Vincent:] | | I think that what Vincent meant was: | |

Re: basic VRP min/max range overflow question

2005-06-20 Thread Michael Veksler
Paul Schlie <[EMAIL PROTECTED]> wrote on 20/06/2005 14:03:53: > > From: Michael Veksler <[EMAIL PROTECTED]> ... > > Almost any optimization over line 8 will change the > > behavior of line 4. I believe that you did not intend to > > cover this case in your requirement. Maybe you would > > like

Re: basic VRP min/max range overflow question

2005-06-20 Thread Robert Dewar
Paul Schlie wrote: - You may be correct, although it's not obviously the case? (As requiring all undefined behavior be encapsulated between sequence points already seems implied to me, as I don't see any explicit counter examples requiring otherwise. There don't need to be examples. The

Re: basic VRP min/max range overflow question

2005-06-20 Thread Robert Dewar
Michael Veksler wrote: Getting a consistent definition of "bounded side-effects" is a nontrivial task. Simply hacking and patching the definition does not work. Trust me, I've been there done that, got burnt and are still paying for my sins. Indeed! I think anyone who has been involved in the

Re: basic VRP min/max range overflow question

2005-06-20 Thread Michael Veksler
Paul Schlie wrote on 20/06/2005 14:13:33: > > From: Robert Dewar <[EMAIL PROTECTED]> ... > > Note that in the cases where something is statically optimized away (these > > are the easy cases), it is nice if the compiler warns that this is happening > > (that would certainly be the case in Ada

Re: basic VRP min/max range overflow question

2005-06-20 Thread Robert Dewar
Michael Veksler wrote: As for overflow, you can say that you want instead of "undefined" to treat is "unspecified". In Ada 95 we introduced a new category of behavior, called a bounded error. We tried to recategorize as many erroneous (= C undefined) cases as possible to bounded error. A bou

Re: basic VRP min/max range overflow question

2005-06-20 Thread Paul Schlie
> From: Robert Dewar <[EMAIL PROTECTED]> >> Paul Schlie wrote: > >> - You may be correct, although it's not obviously the case? (As requiring >> all undefined behavior be encapsulated between sequence points already >> seems implied to me, as I don't see any explicit counter examples >> requ

Re: basic VRP min/max range overflow question

2005-06-20 Thread Paul Schlie
> From: Michael Veksler <[EMAIL PROTECTED]>> >> Paul Schlie wrote on 20/06/2005 14:13:33: >>> From: Robert Dewar <[EMAIL PROTECTED]> > ... >>> Note that in the cases where something is statically optimized away >>> (these are the easy cases), it is nice if the compiler warns that this >>> is happen

PATCH: PR 1022: binutils failed to build gcc 4.0.1 20050619

2005-06-20 Thread H. J. Lu
I checked in the following patch to fix PR 1022. H.J. 2005-06-20 H.J. Lu <[EMAIL PROTECTED]> PR 1022 * elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect symbol. --- bfd/elf32-hppa.c.got2005-05-19 06:51:55.0 -0700 +++ bfd/elf32-hppa.c2005-

Re: basic VRP min/max range overflow question

2005-06-20 Thread Robert Dewar
Paul Schlie wrote: There don't need to be examples. The as-if rule always applies, if you cannot write a legitimate C program that shows the difference between two possible implementations, then both are correct. ??? as-if means they're logically equivalent (i.e. there is no logical differenc

Re: basic VRP min/max range overflow question

2005-06-20 Thread Robert Dewar
Paul Schlie wrote: - yes, effectively I don't perceive any necessity for undefined, vs unspecified; as I don't perceive any necessity to give the compiler the freedom to treat generate an arbitrary program which may contain a potentially ambiguous specific and isolatable behavior. OK, then you

Re: basic VRP min/max range overflow question

2005-06-20 Thread Sebastian Pop
Robert Dewar wrote: > Yes, absolutely, a compiler should generate warnings as much as possible when > it is making these kind of assujmptions. Then, you will like the following kind of patches: Index: tree-data-ref.c === RCS file: /c

How to replace -O1 with corresponding -f's?

2005-06-20 Thread Sergei Organov
Hi, Using gcc compiled from gcc-4_0-branch, in an attempt to see which particular optimization option makes my test case to be mis-optimized, I try to replace -O1 (which toggles on the problem) with corresponding set of -fxxx optimization options. I first compile my code like this: gcc -v -save-t

Re: How to replace -O1 with corresponding -f's?

2005-06-20 Thread Andrew Haley
Sergei Organov writes: > Hi, > > Using gcc compiled from gcc-4_0-branch, in an attempt to see which > particular optimization option makes my test case to be mis-optimized, I > try to replace -O1 (which toggles on the problem) with corresponding set > of -fxxx optimization options. In gener

Re: How to replace -O1 with corresponding -f's?

2005-06-20 Thread Scott Robert Ladd
Sergei Organov wrote: > Using gcc compiled from gcc-4_0-branch, in an attempt to see which > particular optimization option makes my test case to be mis-optimized, This sort of problem is exactly what my Acovea program was designed for; it will identify the pessimistic option by analyzing GCC's co

Re: How to replace -O1 with corresponding -f's?

2005-06-20 Thread Andrew Pinski
On Jun 20, 2005, at 10:04 AM, Andrew Haley wrote: How one finds out what optimization pass misbehaves? Look at the dumps. If you use the gcc option -da you'll get a full set of RTL dump files. And -fdump-tree-all for the tree dumps. Thanks, Andrew Pinski

Re: How to replace -O1 with corresponding -f's?

2005-06-20 Thread Sergei Organov
Andrew Haley <[EMAIL PROTECTED]> writes: > Sergei Organov writes: > > Hi, > > > > Using gcc compiled from gcc-4_0-branch, in an attempt to see which > > particular optimization option makes my test case to be mis-optimized, I > > try to replace -O1 (which toggles on the problem) with corresp

Re: How to replace -O1 with corresponding -f's?

2005-06-20 Thread Andrew Pinski
On Jun 20, 2005, at 9:38 AM, Sergei Organov wrote: 2. The resulting assembly is different from what I get with -O1 and doesn't contain the mis-optimization I'm trying to debug though it doesn't seem to have anything to do with loops. For reference, the code I'm trying to compile is:

Re: basic VRP min/max range overflow question

2005-06-20 Thread Michael Veksler
Paul Schlie <[EMAIL PROTECTED]> wrote on 20/06/2005 16:09:16: > > From: Michael Veksler <[EMAIL PROTECTED]>> > > As for overflow, you can say that you want instead of "undefined" > > to treat is "unspecified". Where each architecture / opsys / compiler > > must consistently define what happens

Re: How to replace -O1 with corresponding -f's?

2005-06-20 Thread Sergei Organov
Andrew Pinski <[EMAIL PROTECTED]> writes: > On Jun 20, 2005, at 10:04 AM, Andrew Haley wrote: > >> How one finds out what optimization pass misbehaves? > > > > Look at the dumps. If you use the gcc option -da you'll get a full > > set of RTL dump files. > > And -fdump-tree-all for the tree dumps.

Re: towards reduction part 3/n: what does vec lower pass do to vector shifts?

2005-06-20 Thread Dorit Naishlos
Richard Henderson <[EMAIL PROTECTED]> wrote on 20/06/2005 01:13:11: > On Sun, Jun 19, 2005 at 11:46:52PM +0300, Dorit Naishlos wrote: > > The thought was to supply an API that would let the vectorizer ask for the > > minimal capability it needs - if all we need is a vector shift of a > > consta

Re: How to replace -O1 with corresponding -f's?

2005-06-20 Thread Andrew Pinski
On Jun 20, 2005, at 10:54 AM, Sergei Organov wrote: so SYMBOL_FLAG_SMALL (flags 0x6 vs 0x2) is somehow being missed when -O1 is turned on. Seems to be something at tree-to-RTX conversion time. Constant folding? No, it would mean that the target says that this is not a small data. Also try it

Re: How to replace -O1 with corresponding -f's?

2005-06-20 Thread Sergei Organov
Andrew Pinski <[EMAIL PROTECTED]> writes: > On Jun 20, 2005, at 9:38 AM, Sergei Organov wrote: > > > 2. The resulting assembly is different from what I get with -O1 and > >doesn't contain the mis-optimization I'm trying to debug though it > >doesn't seem to have anything to do with loops.

Re: How to replace -O1 with corresponding -f's?

2005-06-20 Thread Sergei Organov
Andrew Pinski <[EMAIL PROTECTED]> writes: > On Jun 20, 2005, at 10:54 AM, Sergei Organov wrote: > > > so SYMBOL_FLAG_SMALL (flags 0x6 vs 0x2) is somehow being missed when -O1 > > > is turned on. Seems to be something at tree-to-RTX conversion time. > > Constant folding? > > No, it would mean th

Re: How to replace -O1 with corresponding -f's?

2005-06-20 Thread Andrew Pinski
On Jun 20, 2005, at 11:28 AM, Sergei Organov wrote: Andrew Pinski <[EMAIL PROTECTED]> writes: On Jun 20, 2005, at 10:54 AM, Sergei Organov wrote: so SYMBOL_FLAG_SMALL (flags 0x6 vs 0x2) is somehow being missed when -O1 is turned on. Seems to be something at tree-to-RTX conversion time. C

Re: How to replace -O1 with corresponding -f's?

2005-06-20 Thread Sergei Organov
Andrew Pinski <[EMAIL PROTECTED]> writes: > On Jun 20, 2005, at 11:28 AM, Sergei Organov wrote: > > > Andrew Pinski <[EMAIL PROTECTED]> writes: > > > >> On Jun 20, 2005, at 10:54 AM, Sergei Organov wrote: > >> > >>> so SYMBOL_FLAG_SMALL (flags 0x6 vs 0x2) is somehow being missed when -O1 > > >>

Re: Someone introduced a libiberty crashing bug in the past week

2005-06-20 Thread Andrew Pinski
On Jun 20, 2005, at 11:39 AM, Daniel Berlin wrote: This is blocking me fixing the structure aliasing regressions. This was caused by: 2005-06-15 Joseph S. Myers <[EMAIL PROTECTED]> * c-tree.h (default_function_array_conversion): Declare. * c-typeck.c (default_function_array

Re: GCC 4.0.1 RC2

2005-06-20 Thread Benjamin Kosnik
> It is my strong preference to not do macro defines in c++config.h as > per your last patch. Strike this, it's incorrect. Sorry Jakub. If doing this gets around the bad link behavior, at this point, I'm for it. I suggest you put in a link to 22109 to your patch. Then, the patches for 22109 and

Re: Someone introduced a libiberty crashing bug in the past week

2005-06-20 Thread Andrew Pinski
On Jun 20, 2005, at 11:39 AM, Daniel Berlin wrote: This is new, i assume. This is blocking me fixing the structure aliasing regressions. I've attached pex-unix.i. Compile with -pendantic to see the crash. Here is a reduced testcase: typedef union { union wait *__uptr; int *__iptr

Re: Someone introduced a libiberty crashing bug in the past week

2005-06-20 Thread Joseph S. Myers
On Mon, 20 Jun 2005, Daniel Berlin wrote: > The crash line is > 3729 if (pedantic && !DECL_IN_SYSTEM_HEADER (fundecl)) > > Here, fundecl is null. Any problem with fundecl being null should also be reproducible with a call through a function pointer where fundecl would never have b

Re: Someone introduced a libiberty crashing bug in the past week

2005-06-20 Thread Daniel Berlin
On Mon, 2005-06-20 at 16:05 +, Joseph S. Myers wrote: > On Mon, 20 Jun 2005, Daniel Berlin wrote: > > > The crash line is > > 3729 if (pedantic && !DECL_IN_SYSTEM_HEADER (fundecl)) > > > > Here, fundecl is null. > > Any problem with fundecl being null should also be reproducibl

Re: Cygwin build failure

2005-06-20 Thread François-Xavier Coudert
> Knowing that you do regular Cygwin builds of gcc, I wonder can you advise > me, please? For the better part of a month, I have not succeeded in > building gcc from the CVS tree under Cygwin_NT-5.1 for one reason or > another. That's PR 21766 (appropriately named "Bootstrap failure on i686-pc-cy

Re: Cygwin build failure

2005-06-20 Thread Paul Thomas
Thanks Francois-Xavier and Andrew for replying, That's PR 21766 (appropriately named "Bootstrap failure on i686-pc-cygwin"). Opened almost a month ago. GCC mainline doesn't build on cygwin or mingw since that time. Seeing that almost no comment had been made by the maintainers on it, and no c

Re: How to replace -O1 with corresponding -f's?

2005-06-20 Thread Sergei Organov
Andrew Pinski <[EMAIL PROTECTED]> writes: > On Jun 20, 2005, at 11:28 AM, Sergei Organov wrote: > > > Andrew Pinski <[EMAIL PROTECTED]> writes: > > > >> On Jun 20, 2005, at 10:54 AM, Sergei Organov wrote: > >> > >>> so SYMBOL_FLAG_SMALL (flags 0x6 vs 0x2) is somehow being missed when -O1 > > >>

Re: basic VRP min/max range overflow question

2005-06-20 Thread Paul Schlie
> From: Michael Veksler <[EMAIL PROTECTED]> >> Paul Schlie <[EMAIL PROTECTED]> wrote on 20/06/2005 16:09:16: >>> From: Michael Veksler <[EMAIL PROTECTED]>> >>> As for overflow, you can say that you want instead of "undefined" >>> to treat is "unspecified". Where each architecture / opsys / compiler

Re: basic VRP min/max range overflow question

2005-06-20 Thread DJ Delorie
> Then, you will like the following kind of patches: > > + warning (0, "%H undefined behavior if loop runs for more than %qE > iterations", > +find_loop_location (loop), estimation); I think we would like them better if you could choose to silence them, especially when people u

PATCH: PR 1025: binutils failed to build gcc 4.0.1 20050619

2005-06-20 Thread H. J. Lu
I checked in the following patch to fix other targets. H.J. 2005-06-20 H.J. Lu <[EMAIL PROTECTED]> PR 1025 * elf-m10300.c (mn10300_elf_check_relocs): Handle indirect symbol. * elf32-arm.c (elf32_arm_check_relocs): Likewise. * elf32-avr.c (elf32_avr_

Re: c/c++ validator

2005-06-20 Thread Kai Henningsen
[EMAIL PROTECTED] (Tommy Vercetti) wrote on 19.06.05 in <[EMAIL PROTECTED]>: > I was looking on different ones, for C, that claimed to have ability to find > security problems. One that I found the best, is splint. But it's still not > able to find such obvious problem: Did you look at sparse? T

Re: basic VRP min/max range overflow question

2005-06-20 Thread Kai Henningsen
[EMAIL PROTECTED] (Robert Dewar) wrote on 19.06.05 in <[EMAIL PROTECTED]>: > Kai Henningsen wrote: > > > But at least, in that case, the compiler could easily issue the > > (presumably not required by the standard) warning that the else branch is > > "unreachable code". > > Yes, absolutely, a com

Re: c/c++ validator

2005-06-20 Thread Tommy Vercetti
On Monday 20 June 2005 10:12, Kai Henningsen wrote: > [EMAIL PROTECTED] (Tommy Vercetti) wrote on 19.06.05 in <[EMAIL PROTECTED]>: > > I was looking on different ones, for C, that claimed to have ability to > > find security problems. One that I found the best, is splint. But it's > > still not a

Re: 4.0.0->4.0.1 regression: Can't use 64-bit shared libs on powerpc-apple-darwin8.1.0

2005-06-20 Thread Bradley Lucier
On Jun 16, 2005, at 3:06 PM, Mike Stump wrote: Actually, by try, I meant try your application. :-) I can't seem to build any 64-bit shared library on powerpc-apple- darwin8.1.0, although I can now run the test suite more effectively; see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22110

Re: basic VRP min/max range overflow question

2005-06-20 Thread Mike Stump
General note, please, this list is for developers of gcc to develop gcc. Using it as a way to teach yourself how to read the C standard, isn't ok, please stop. On Saturday, June 18, 2005, at 07:15 AM, Paul Schlie wrote: Maybe I didn't phrase my statement well; I think you did, you are j

Re: basic VRP min/max range overflow question

2005-06-20 Thread Mike Stump
On Jun 18, 2005, at 11:50 AM, Paul Schlie wrote: [ curiously can't find any actual reference stating that integer overflow is specifically results in undefined behavior, although it's obviously ill defined? Every operation that isn't defined is undefined. Only the operations that are de

Re: Software pipelining capabilities

2005-06-20 Thread Vasanth
Hi Ayal, Thanks for the inputs, I will try this on GCC 4.0, which sounds quite interesting. regards, Vasanth On 6/15/05, Ayal Zaks <[EMAIL PROTECTED]> wrote: > > > > > > Vasanth <[EMAIL PROTECTED]> > > > I am using powerpc-eabi-gcc (3.4.1) and trying to retarget it for a > > fully pipelined