Re: Command line options and pragmas

2006-01-09 Thread DJ Delorie
> >and, for diagnostics with line number information, doing the lookup > >to see what was in effect at that line. But the complications are > >worse than the benefits. > > Can you explain the complications you see. This seems like the way > to go to me, because it guarantees that the effect is pr

Re: Command line options and pragmas

2006-01-09 Thread Robert Dewar
DJ Delorie wrote: I had thought of keeping a table of pragma-settings-by-line-number and, for diagnostics with line number information, doing the lookup to see what was in effect at that line. But the complications are worse than the benefits. Can you explain the complications you see. Thi

Re: Command line options and pragmas

2006-01-09 Thread DJ Delorie
> Longer term, I'd like to be able to control warnings on a line by > line basis. The ability to say "I've examined this expression / > line / block / whatever of code and I'm happy with it with-regard-to > warning XYZ, please be quiet" would be very valuable. > > Based on Gaby's comments, it so

Re: Command line options and pragmas

2006-01-09 Thread David Taylor
> Date: Mon, 9 Jan 2006 14:30:03 -0500 > From: DJ Delorie <[EMAIL PROTECTED]> > > . Next, if it would not be rejected on the "we don't want to have such > > functionality" basis, then the question becomes one of what should the > > interface look like? Some possibilities include: > > > > #pr

Re: Command line options and pragmas

2006-01-09 Thread DJ Delorie
> GCC's current architecture, heavily relying on global states, is not > yet prepared to consistently support such feature -- even though the > sole diagnostic machinery might be somewhat prepared for that. Yes, we've covered this a couple of times before. There's a limited set of things we can

Re: Command line options and pragmas

2006-01-09 Thread David Taylor
> Date: Mon, 9 Jan 2006 11:13:22 -0800 > From: Joe Buck <[EMAIL PROTECTED]> > > On Mon, Jan 09, 2006 at 01:46:21PM -0500, David Taylor wrote: > > For a variety of reasons, we would like to be able to specify > > individual compilation switches *within* individual files. > > You don't need a gcc m

-symbolic unsupported

2006-01-09 Thread Peter S. Mazinger
Hello! Checking the linux configs for different archs only arm has %{symbolic:-Bsymbolic} for linking. Is arm out of date, or should the others been updated? Thanks, Peter -- Peter S. MazingerID: 0xA5F059F2 Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2

PATCH: m68k PIC touchup

2006-01-09 Thread Peter S. Mazinger
Hello! patch for m68k to handle PIC as the other archs Please apply, thx, Peter -- Peter S. MazingerID: 0xA5F059F2 Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2 --- gcc-4.0.2/gcc/config/m68k/linux.h.mps 2006-01-08 23:02:06 +0100 +++ gcc-4.0.2/gcc/config/

Re: Command line options and pragmas

2006-01-09 Thread Gabriel Dos Reis
Robert Dewar <[EMAIL PROTECTED]> writes: | DJ Delorie wrote: | | >I had planned on forcing the user to place these pragmas before the | >first function definition, otherwise it becomes difficult to track | >when various warnings are in force. | > | For warnings, it is definitely useful to be able

Re: RFC: Why don't we stop the optimizer pipeline when errorcount > 0?

2006-01-09 Thread Andrew Pinski
On Jan 9, 2006, at 2:46 PM, Diego Novillo wrote: On Monday 09 January 2006 14:42, Andrew Pinski wrote: the only passes which do run are cfg creation, expand, and maybe a couple other simple ones. I know that. It's expand the one bothering me. Are we issuing errors that late in the pipeli

Re: RFC: Why don't we stop the optimizer pipeline when errorcount > 0?

2006-01-09 Thread Diego Novillo
On Monday 09 January 2006 14:42, Andrew Pinski wrote: > the only passes which do run are cfg creation, expand, and maybe a > couple other simple ones. > I know that. It's expand the one bothering me. Are we issuing errors that late in the pipeline?

Re: RFC: Why don't we stop the optimizer pipeline when errorcount > 0?

2006-01-09 Thread Gabriel Dos Reis
Diego Novillo <[EMAIL PROTECTED]> writes: | I hit an ICE inside an optimizer pass because the code had a glaring syntax | error that we diagnosed correctly, but since we kept going, the | transformation didn't find the CFG in the assumed state, causing the ICE. | | Is there any reason in partic

Re: RFC: Why don't we stop the optimizer pipeline when errorcount > 0?

2006-01-09 Thread Andrew Pinski
> > > I hit an ICE inside an optimizer pass because the code had a glaring syntax > error that we diagnosed correctly, but since we kept going, the > transformation didn't find the CFG in the assumed state, causing the ICE. We do stop the optimization passes from running in general. /* Gate: e

Re: Command line options and pragmas

2006-01-09 Thread Gabriel Dos Reis
DJ Delorie <[EMAIL PROTECTED]> writes: | > . Next, if it would not be rejected on the "we don't want to have such | > functionality" basis, then the question becomes one of what should the | > interface look like? Some possibilities include: | > | > #pragma GCC command-line -Wprecision-misma

Re: Command line options and pragmas

2006-01-09 Thread Robert Dewar
DJ Delorie wrote: I had planned on forcing the user to place these pragmas before the first function definition, otherwise it becomes difficult to track when various warnings are in force. For warnings, it is definitely useful to be able to use them on a fine grained basis in the source. One

RFC: Why don't we stop the optimizer pipeline when errorcount > 0?

2006-01-09 Thread Diego Novillo
I hit an ICE inside an optimizer pass because the code had a glaring syntax error that we diagnosed correctly, but since we kept going, the transformation didn't find the CFG in the assumed state, causing the ICE. Is there any reason in particular we don't just make the gate functions return f

Re: Command line options and pragmas

2006-01-09 Thread DJ Delorie
> . Next, if it would not be rejected on the "we don't want to have such > functionality" basis, then the question becomes one of what should the > interface look like? Some possibilities include: > > #pragma GCC command-line -Wprecision-mismatch > > unilaterally set -Wprecision-mismatch

Re: Command line options and pragmas

2006-01-09 Thread Joe Buck
On Mon, Jan 09, 2006 at 01:46:21PM -0500, David Taylor wrote: > For a variety of reasons, we would like to be able to specify > individual compilation switches *within* individual files. You don't need a gcc modification to do that; you can arrange to get the compiler flags from a comment in the f

Memory leak in bt-load.c ?

2006-01-09 Thread Christophe Jaillet
Hi, in file 'bt-load.c', in function 'augment_live_range', some memory is xmalloc'ed. It seems to be possible to never free it, if all the first tests are true. Yhe memory is only freed once at the end of the function. CJ =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+

Re: Command line options and pragmas

2006-01-09 Thread Robert Dewar
David Taylor wrote: . For starters, does this sound reasonable? That is, if I implemented this, and we contributed it back, would it be considered? Or would it likely be rejected out of hand? To me, it seems better to handle this in the external environment with appropriate build tools. Fo

Command line options and pragmas

2006-01-09 Thread David Taylor
For a variety of reasons, we would like to be able to specify individual compilation switches *within* individual files. When building we specify a large number of compilation options. But, some files need tweaks of one sort or another to the generic set of options. Most of the tweaks involve tu

Fix PR/25677, rare bug in combine

2006-01-09 Thread Paolo Bonzini
This is a severe, but very rare, bug in combine, that one of the recent changes have exposed. I don't know which. Basically, combine will not try combining across call instructions, but on the other hand it will not invalidate equivalences with registers that are explicitly set in the call in

Re: Atomic operations on Sparc in libstdc++

2006-01-09 Thread Benjamin Kosnik
Piotr, Hello. First, a note: you should be sending libstdc++ mail to the [EMAIL PROTECTED] list. I haven't verified your claim, but if it is true, I would suggest the following actions on your part to solve it: 1) enter a sparc backend bug in gcc bugzilla about not defining __sparcv9 in 32 bit

Static coverage analysis with 'gcov'.

2006-01-09 Thread sjhill
Greetings. Has anyone done or is aware of static coverage analysis tools that can be used with GCC? I know that people have used 'gcov' with the Linux kernel and User Mode Linux (UML) to do analysis with the kernel. I actually want to do coverage analysis on bootloader code from YAMON (used mostly

Re: RFC: generalize STARTFILE/ENDFILE_SPEC for linux

2006-01-09 Thread Peter S. Mazinger
On Mon, 9 Jan 2006, Jakub Jelinek wrote: > On Mon, Jan 09, 2006 at 02:38:17PM +0100, Peter S. Mazinger wrote: > > for HAVE_ENDFILE_MATH and HAVE_NOSTARTFILE_STATIC another possibility > > would be > > %{static:%:if-exists-else(crtbeginT.o%s crtbegin.o%s)} > > %{ffast-math|funsafe-math-optimizatio

Re: [gcjx] Tree-SSA Operands Processing Problem

2006-01-09 Thread Andrew MacLeod
On Mon, 2006-01-09 at 08:22 +0530, Ranjit Mathew wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > However, it still remains true that the code path > I referred to is wrong and if, as you say, it can > never be taken, it should just be removed and > replaced with an assertion codifying w

Re: A questionable predicate in sh/predicates.md

2006-01-09 Thread Joern RENNECKE
Kazu Hirata wrote: Notice that match_code at the beginning does not mention PARALLEL, but we have GET_CODE (op) != PARALLEL later. Is this predicate intended to accept PARALLEL as well? Yes, it is. If so, should we change the match_code at the beginning? Yes.

Re: RFC: generalize STARTFILE/ENDFILE_SPEC for linux

2006-01-09 Thread Jakub Jelinek
On Mon, Jan 09, 2006 at 02:38:17PM +0100, Peter S. Mazinger wrote: > for HAVE_ENDFILE_MATH and HAVE_NOSTARTFILE_STATIC another possibility > would be > %{static:%:if-exists-else(crtbeginT.o%s crtbegin.o%s)} > %{ffast-math|funsafe-math-optimizations:%:if-exists(crtfastmath.o%s)} That's IMHO a bad

RFC: generalize STARTFILE/ENDFILE_SPEC for linux

2006-01-09 Thread Peter S. Mazinger
Hello! Would the attached patch be acceptable? The gcc.c patch part should really go to gcc/config/linux.h, but sadly not all archs include that file. for HAVE_ENDFILE_MATH and HAVE_NOSTARTFILE_STATIC another possibility would be %{static:%:if-exists-else(crtbeginT.o%s crtbegin.o%s)} %{ffast-m