[Bug c/37995] New: using stdio.h fails if gcc invoked in a directory which has a subdirectory called gcc

2008-11-02 Thread mvanier at cs dot caltech dot edu
I tried to compile the following trivial program, called 'hello.c': #include stdio.h int main(void) { printf(hello, world!\n); return 0; } using gcc, in a directory which had a subdirectory called gcc. This caused the compile to fail with the following output: gcc hello.c In file

[Bug ada/37993] [4.4 Regression] bootstrap with ada fails: a-direct.ads:426:09: alignment for Search_Typeb82s must be at least 8

2008-11-02 Thread charlet at adacore dot com
--- Comment #1 from charlet at adacore dot com 2008-11-02 10:57 --- Subject: Re: [4.4 Regression] bootstrap with ada fails: a-direct.ads:426:09: alignment for Search_Typeb82s must be at least 8 This is yet again a failure due to having multilibs enabled by default for

[Bug tree-optimization/37991] [4.4 Regression] excessive memory consumption - possible hang

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2008-11-02 12:04 --- More reduced: typedef int Int32; void use_it(int); void FindAndReadSignature(int processedSize) { int numPrevBytes = 1; for (;;) { int numBytesInBuffer = numPrevBytes + processedSize;

[Bug c++/35652] [4.2/4.3/4.4 Regression] offset warning should be given in the front-end

2008-11-02 Thread rguenther at suse dot de
--- Comment #9 from rguenther at suse dot de 2008-11-02 12:20 --- Subject: Re: [4.2/4.3/4.4 Regression] offset warning should be given in the front-end On Sat, 1 Nov 2008, manu at gcc dot gnu dot org wrote: --- Comment #8 from manu at gcc dot gnu dot org 2008-11-01 17:44

[Bug tree-optimization/36439] [4.3 Regression] infinite loop in PRE building gimp-plugin-registry

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2008-11-02 12:33 --- It seems to work on the trunk now. I'm trying to reduce it on the branch. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/35652] [4.2/4.3/4.4 Regression] offset warning should be given in the front-end

2008-11-02 Thread manu at gcc dot gnu dot org
--- Comment #10 from manu at gcc dot gnu dot org 2008-11-02 12:53 --- (In reply to comment #9) This is my current patch and it works in this testcase. However, it also triggers on cases like: const char *p = str + sizeof(str) Perhaps I am doing this at the wrong place. Any

[Bug tree-optimization/37991] [4.4 Regression] excessive memory consumption - possible hang

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2008-11-02 10:42 --- Confirmed. We seem to be very slowly eating all of memory during processing a single SCC in FRE - which means iteration doesn't converge. -- rguenth at gcc dot gnu dot org changed: What|Removed

[Bug c++/35652] [4.2/4.3/4.4 Regression] offset warning should be given in the front-end

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2008-11-02 13:02 --- I'm not sure. Does TREE_STRING_LENGTH in the particular case include the NULL character? Does sizeof(str) include the NULL character? In principle it is allowed to have a pointer point one after the last

Re: [Bug c++/35652] [4.2/4.3/4.4 Regression] offset warning should be given in the front-end

2008-11-02 Thread Andrew Thomas Pinski
Sent from my iPhone On Nov 2, 2008, at 4:53 AM, manu at gcc dot gnu dot org [EMAIL PROTECTED] wrote: --- Comment #10 from manu at gcc dot gnu dot org 2008-11-02 12:53 --- (In reply to comment #9) This is my current patch and it works in this testcase. However, it also

[Bug c++/35652] [4.2/4.3/4.4 Regression] offset warning should be given in the front-end

2008-11-02 Thread pinskia at gmail dot com
--- Comment #12 from pinskia at gmail dot com 2008-11-02 13:07 --- Subject: Re: [4.2/4.3/4.4 Regression] offset warning should be given in the front-end Sent from my iPhone On Nov 2, 2008, at 4:53 AM, manu at gcc dot gnu dot org [EMAIL PROTECTED] wrote: --- Comment #10

[Bug tree-optimization/37991] [4.4 Regression] excessive memory consumption - possible hang

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-11-02 10:58 --- Reducing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37991

[Bug c/37990] -Os produces redundant instructions

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-11-02 10:33 --- What exactly do you mean with redundant stack manipulation? Note that the ABI requires the stack to be aligned properly at function entry which makes stack adjustment necessary before the call. Note also that you

[Bug tree-optimization/37991] [4.4 Regression] excessive memory consumption - possible hang

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2008-11-02 13:35 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug tree-optimization/37991] [4.4 Regression] excessive memory consumption - possible hang

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2008-11-02 13:36 --- Subject: Bug 37991 Author: rguenth Date: Sun Nov 2 13:34:58 2008 New Revision: 141532 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141532 Log: 2008-11-02 Richard Guenther [EMAIL PROTECTED] PR

[Bug ada/37993] [4.4 Regression] bootstrap with ada fails: a-direct.ads:426:09: alignment for Search_Typeb82s must be at least 8

2008-11-02 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Keywords||build Summary|bootstrap with ada fails: a-|[4.4

[Bug c/37990] -Os produces redundant instructions

2008-11-02 Thread reza at parvan dot net
--- Comment #2 from reza at parvan dot net 2008-11-02 11:01 --- Arrrg! I'm very sorry. Please ignore this bug report. I'll change the status to INVALID if that's okay. Thanks for your response. Reza. -- reza at parvan dot net changed: What|Removed

[Bug c/37995] using stdio.h fails if gcc invoked in a directory which has a subdirectory called gcc

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-11-02 11:02 --- Works for me. What is the output if you add -v to the commandline? This may be a packaging bug of your operating system vendor - which is? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37995

[Bug tree-optimization/36439] [4.3 Regression] infinite loop in PRE building gimp-plugin-registry

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2008-11-02 12:48 --- We take a long time in compute_antic in the loop for (i = 0; i last_basic_block - NUM_FIXED_BLOCKS; i++) { if (TEST_BIT (changed_blocks, postorder[i])) {

[Bug tree-optimization/37991] [4.4 Regression] excessive memory consumption - possible hang

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2008-11-02 11:27 --- The following fails this way with plain -O. The key is the typedef - if you replace the use of UInt32 with unsinged int the testcase succeeds. Mine. typedef unsigned int UInt32; int Read(unsigned int

[Bug fortran/37159] RANDOM_SEED: PUT= check array size at compile time

2008-11-02 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2008-11-02 14:18 --- Not closing yet, as the GET array could also be checked, see http://gcc.gnu.org/ml/fortran/2008-10/msg00281.html . Another item: If the default integer is 8 instead of 4, the array sizes are half as big (see also

[Bug bootstrap/37996] New: libgcc.mvars missing dependency on the variable tmake_file, maybe others

2008-11-02 Thread hp at gcc dot gnu dot org
In an already-built objdir, touch or modify any of your target-specific t-* files, then in gcc make libgcc.mvars. Observe that libgcc.mvars is unmodified. To fix, just add $(tmake_file) to the dependencies for libgcc.mvars. Almost as simple as writing a bugzilla entry, but only almost... and I'd

[Bug tree-optimization/37542] [4.4 Regression] PRE doesn't simplify during phi-translation

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2008-11-02 15:27 --- Subject: Bug 37542 Author: rguenth Date: Sun Nov 2 15:26:04 2008 New Revision: 141534 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141534 Log: 2008-11-02 Richard Guenther [EMAIL PROTECTED] PR

[Bug tree-optimization/37542] [4.4 Regression] PRE doesn't simplify during phi-translation

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2008-11-02 15:27 --- Fixed as far as constants are concerned. For the non-constant case I'll open another bug. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/37997] New: PHI translation does not simplify to non-constants

2008-11-02 Thread rguenth at gcc dot gnu dot org
Split from PR37542. int foo (int i, int b) { int mask; int result; if (b) mask = -1; else mask = 0; result = result mask; return result; } should be optimized to int foo (int i, int b) { int mask; int result; if (b) result = result; else result = 0; return

[Bug middle-end/31029] Fold does not fold a + C == a

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2008-11-02 16:08 --- This is because fold doesn't fold ig_1 == 1 - ig_1 to a constant. Which is just because it doesn't handle this canonical form but expects X +- CST always. Fixing that makes the first forwprop pass optimize the

[Bug fortran/37992] [4.4 Regression] ICE segfault for character(len=len(x)) :: foo,x

2008-11-02 Thread mikael dot morin at tele2 dot fr
--- Comment #3 from mikael dot morin at tele2 dot fr 2008-11-02 17:50 --- (In reply to comment #1) First valgrind error: ==21621== Invalid read of size 8 ==21621==at 0x46AAEA: gfc_resolve_expr (resolve.c:4248) Second valgrind error: ==21621== Address 0x65b2ef8 is 40

[Bug fortran/37992] [4.4 Regression] ICE segfault for character(len=len(x)) :: foo,x

2008-11-02 Thread mikael dot morin at tele2 dot fr
--- Comment #4 from mikael dot morin at tele2 dot fr 2008-11-02 18:03 --- Created an attachment (id=16612) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16612action=view) hackish patch I think I got it. When the statement is rejected, all changes are reverted. However, the

[Bug middle-end/31029] Fold does not fold C - a == a

2008-11-02 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2008-11-02 18:23 --- Actually we can fold C - a == a only for odd C. But more generally a +- b == a to b == 0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31029

[Bug ada/37977] Missing ada multilib support for s390x

2008-11-02 Thread krebbel at gcc dot gnu dot org
--- Comment #3 from krebbel at gcc dot gnu dot org 2008-11-02 18:43 --- Subject: Bug 37977 Author: krebbel Date: Sun Nov 2 18:42:04 2008 New Revision: 141537 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141537 Log: 2008-11-02 Andreas Krebbel [EMAIL PROTECTED] PR

[Bug ada/37977] Missing ada multilib support for s390x

2008-11-02 Thread krebbel at gcc dot gnu dot org
--- Comment #4 from krebbel at gcc dot gnu dot org 2008-11-02 18:48 --- Fixed with the patch above. -- krebbel at gcc dot gnu dot org changed: What|Removed |Added

[Bug other/37998] New: Unclear documentation of -fno-common

2008-11-02 Thread dmacks at netspace dot org
The gcc.1 manpage states: -fno-common In C, allocate even uninitialized global variables in the data sec- tion of the object file, rather than generating them as common blocks. This has the effect that if the same variable is declared (without extern) in two different compilations, you will

[Bug tree-optimization/37991] [4.4 Regression] excessive memory consumption - possible hang

2008-11-02 Thread dberlin at dberlin dot org
--- Comment #8 from dberlin at gcc dot gnu dot org 2008-11-02 20:53 --- Subject: Re: [4.4 Regression] excessive memory consumption - possible hang On Sun, Nov 2, 2008 at 7:04 AM, rguenth at gcc dot gnu dot org [EMAIL PROTECTED] wrote: --- Comment #5 from rguenth at gcc dot gnu

[Bug fortran/37999] New: Fortran shape and kind intrinsic

2008-11-02 Thread carbess at swcp dot com
Shape intrinsic does not allow scalar arguments as required by f90/f95/f03 standards. Example code follows: program test_shape ! Segmentation fault generated when executable executed integer :: i print *, shape( i ) ! Shape of a scalar allowed by f90, f95, f03 !

[Bug fortran/37999] Fortran shape and kind intrinsic

2008-11-02 Thread kargl at gcc dot gnu dot org
--- Comment #1 from kargl at gcc dot gnu dot org 2008-11-03 00:00 --- Code works with 4.3.2 and trunk. Note you probably want to 1) Update to a 4.3.2 or newer compiler. 2) Change the example to program test_shape integer :: i print *, size(shape(i)) ! Shape of a scalar

[Bug fortran/37832] System_Clock

2008-11-02 Thread jvdelisle at gcc dot gnu dot org
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2008-11-03 02:17 --- I will add this to my list and see if we can get to what g77 does. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/37989] PR37528 fix broke --disable-shared on mingw32

2008-11-02 Thread dannysmith at users dot sourceforge dot net
-- dannysmith at users dot sourceforge dot net changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |dannysmith at users dot |dot org

[Bug fortran/37445] Host-associated proc not found if same-name generic is use-associated

2008-11-02 Thread pault at gcc dot gnu dot org
--- Comment #16 from pault at gcc dot gnu dot org 2008-11-03 06:46 --- Subject: Bug 37445 Author: pault Date: Mon Nov 3 06:44:47 2008 New Revision: 141543 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141543 Log: 2008-11-03 Paul Thomas [EMAIL PROTECTED] PR

[Bug fortran/37821] [4.4 Regression] gfortran is ignoring #includes with the syntax file.h

2008-11-02 Thread burnus at gcc dot gnu dot org
--- Comment #8 from burnus at gcc dot gnu dot org 2008-11-03 07:21 --- Subject: Bug 37821 Author: burnus Date: Mon Nov 3 07:20:24 2008 New Revision: 141544 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141544 Log: 2008-11-03 Tobias Burnus [EMAIL PROTECTED] PR

[Bug fortran/37821] [4.4 Regression] gfortran is ignoring #includes with the syntax file.h

2008-11-02 Thread burnus at gcc dot gnu dot org
--- Comment #9 from burnus at gcc dot gnu dot org 2008-11-03 07:35 --- FIXED on the trunk. Thanks for the report and sorry that it took that long to commit the fix. -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/37995] using stdio.h fails if gcc invoked in a directory which has a subdirectory called gcc

2008-11-02 Thread mvanier at cs dot caltech dot edu
--- Comment #2 from mvanier at cs dot caltech dot edu 2008-11-03 07:37 --- Created an attachment (id=16613) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16613action=view) build script for gcc on Arch Linux See other posts for this bug. --

[Bug c/37995] using stdio.h fails if gcc invoked in a directory which has a subdirectory called gcc

2008-11-02 Thread mvanier at cs dot caltech dot edu
--- Comment #3 from mvanier at cs dot caltech dot edu 2008-11-03 07:38 --- The operating system is Arch Linux, and the package manager is Arch-specific and is called pacman. There is a separate package manager for building packages from scratch called ABS (Arch Build System). I'm

[Bug c++/37964] [4.4 regression] ICE with operator auto

2008-11-02 Thread reichelt at gcc dot gnu dot org
--- Comment #3 from reichelt at gcc dot gnu dot org 2008-11-03 07:40 --- Reopen ... -- reichelt at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/37964] [4.4 regression] ICE with operator auto

2008-11-02 Thread reichelt at gcc dot gnu dot org
--- Comment #4 from reichelt at gcc dot gnu dot org 2008-11-03 07:41 --- ... to mark as duplicate as PR37967 as the bug was fixed with the patch for PR37967. *** This bug has been marked as a duplicate of 37967 *** -- reichelt at gcc dot gnu dot org changed: What

[Bug c++/37967] [4.4 regression] ICE with function returning auto

2008-11-02 Thread reichelt at gcc dot gnu dot org
--- Comment #4 from reichelt at gcc dot gnu dot org 2008-11-03 07:41 --- *** Bug 37964 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37967

[Bug target/37989] PR37528 fix broke --disable-shared on mingw32

2008-11-02 Thread dannysmith at users dot sourceforge dot net
--- Comment #2 from dannysmith at users dot sourceforge dot net 2008-11-03 07:45 --- Created an attachment (id=16614) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16614action=view) revised patch to quard with ENABLE_SHARED_LIBGCC Hi Mikael, I have modified your patch slightly