[Bug bootstrap/40572] gcc insistance on using LD_LIBRARY_PATH and ignoring LD_FLAGS

2009-06-27 Thread ebotcazou at gcc dot gnu dot org
--- Comment #12 from ebotcazou at gcc dot gnu dot org 2009-06-28 06:22 --- > FWIW, BOOT_LDFLAGS. that did not solve it either. I think I'll have a go with > 'sed' and change /usr/local to somewhere else in the gcc-4.4.0.tar file. > Hopefully that will avoid the need for setting LD libra

[Bug bootstrap/40572] gcc insistance on using LD_LIBRARY_PATH and ignoring LD_FLAGS

2009-06-27 Thread david dot kirkby at onetel dot net
--- Comment #11 from david dot kirkby at onetel dot net 2009-06-28 03:51 --- (In reply to comment #3) > Note that setting LDFLAGS maybe not what you want (it affects stage1 only > AFAIK), you likely want to set BOOT_LDFLAGS. FWIW, BOOT_LDFLAGS. that did not solve it either. I think I'

[Bug middle-end/40554] [4.5 Regression] Revision 148941 miscompiled 447.dealII in SPEC CPU 2006

2009-06-27 Thread jamborm at gcc dot gnu dot org
--- Comment #3 from jamborm at gcc dot gnu dot org 2009-06-27 23:41 --- I believe the following (but yet untested) patch fixes this issue. I will bootstrap and test it once I have a testcase that is simple enough to be put into the testsuite. I hope to do all of this on Monday.

[Bug bootstrap/40572] gcc insistance on using LD_LIBRARY_PATH and ignoring LD_FLAGS

2009-06-27 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2009-06-27 23:39 --- It is semi hard to figure out early on really. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40572

[Bug bootstrap/40572] gcc insistance on using LD_LIBRARY_PATH and ignoring LD_FLAGS

2009-06-27 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2009-06-27 23:39 --- This is just like building any other program and running the result if you link with a library stored somewhere else. /usr/local/lib not being standard is up to your distro really, it is a standard location accordin

[Bug bootstrap/40572] gcc insistance on using LD_LIBRARY_PATH and ignoring LD_FLAGS

2009-06-27 Thread david dot kirkby at onetel dot net
--- Comment #8 from david dot kirkby at onetel dot net 2009-06-27 22:57 --- It looks as though we will have to agree to differ about the LD_LIBRARY_PATH being the right way to do things. But do you not agree that this probably should be found at an earlier stage in the build process?

[Bug bootstrap/40572] gcc insistance on using LD_LIBRARY_PATH and ignoring LD_FLAGS

2009-06-27 Thread david dot kirkby at onetel dot net
--- Comment #7 from david dot kirkby at onetel dot net 2009-06-27 22:31 --- (In reply to comment #6) > LD_LIBRARY_PATH is for the runtime linker/loader so it is needed as you are > running programs which use shared libraries stored in a "non standard" place. > So is any user who uses

[Bug debug/40573] [4.4/4.5 Regression] DWARF for inlined subroutines refers to the outlined copy

2009-06-27 Thread drow at gcc dot gnu dot org
--- Comment #1 from drow at gcc dot gnu dot org 2009-06-27 22:12 --- Created an attachment (id=18083) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18083&action=view) Test case Compile with -O2. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40573

[Bug debug/40573] New: [4.4/4.5 Regression] DWARF for inlined subroutines refers to the outlined copy

2009-06-27 Thread drow at gcc dot gnu dot org
In the attached testcase (which will be added to the GDB testsuite), func1 is both emitted as a function and inlined into main and func2. The generated DWARF output looks like this with mainline: <1><1bf>: Abbrev Number: 2 (DW_TAG_subprogram) <1c0> DW_AT_external: 1 <1c1> DW_AT_n

[Bug bootstrap/40572] gcc insistance on using LD_LIBRARY_PATH and ignoring LD_FLAGS

2009-06-27 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2009-06-27 21:46 --- LD_LIBRARY_PATH is for the runtime linker/loader so it is needed as you are running programs which use shared libraries stored in a "non standard" place. -- pinskia at gcc dot gnu dot org changed: Wha

[Bug bootstrap/40572] gcc insistance on using LD_LIBRARY_PATH and ignoring LD_FLAGS

2009-06-27 Thread david dot kirkby at onetel dot net
--- Comment #5 from david dot kirkby at onetel dot net 2009-06-27 21:00 --- (In reply to comment #3) > Note that setting LDFLAGS maybe not what you want (it affects stage1 only > AFAIK), you likely want to set BOOT_LDFLAGS. Sorry, forget to comment on that. I'll try that. I would h

[Bug bootstrap/40572] gcc insistance on using LD_LIBRARY_PATH and ignoring LD_FLAGS

2009-06-27 Thread david dot kirkby at onetel dot net
--- Comment #4 from david dot kirkby at onetel dot net 2009-06-27 20:57 --- (In reply to comment #3) > What is the LDFLAGS supposed to do? Is it supposed to adjust the run-path of > the built executables to find the mpfr/gmp libraries to not need > LD_LIBRARY_PATH > set? > > Note that

[Bug bootstrap/40572] gcc insistance on using LD_LIBRARY_PATH and ignoring LD_FLAGS

2009-06-27 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-06-27 20:35 --- What is the LDFLAGS supposed to do? Is it supposed to adjust the run-path of the built executables to find the mpfr/gmp libraries to not need LD_LIBRARY_PATH set? Note that setting LDFLAGS maybe not what you want (

[Bug bootstrap/40572] gcc insistance on using LD_LIBRARY_PATH and ignoring LD_FLAGS

2009-06-27 Thread david dot kirkby at onetel dot net
--- Comment #2 from david dot kirkby at onetel dot net 2009-06-27 20:29 --- Created an attachment (id=18082) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18082&action=view) sparc-sun-solaris2.10/libgcc/config.log This is the file, which shows it can't find the library, a couple

[Bug bootstrap/40572] gcc insistance on using LD_LIBRARY_PATH and ignoring LD_FLAGS

2009-06-27 Thread david dot kirkby at onetel dot net
--- Comment #1 from david dot kirkby at onetel dot net 2009-06-27 20:25 --- Created an attachment (id=18081) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18081&action=view) Top level config.log -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40572

[Bug bootstrap/40572] New: gcc insistance on using LD_LIBRARY_PATH and ignoring LD_FLAGS

2009-06-27 Thread david dot kirkby at onetel dot net
I've tried my hardest to build gcc without resorting to the use of LD_LIBRARY_PATH. I simply can't understand why if LD_FLAGS is set to the path of the mpfr library, the compiler can't use them. My compile bombs out with the well known error: error: cannot compute suffix of object files: cannot

[Bug debug/40012] [4.5 Regression] Revision 146817 generated bad debug info for local variables

2009-06-27 Thread ebotcazou at gcc dot gnu dot org
--- Comment #13 from ebotcazou at gcc dot gnu dot org 2009-06-27 20:18 --- > This appears to still be broken in 32-bit mode. Yes, I've seen similar problems with 4.4.0 and 4.5.0 on x86. Probably the stack realignment stuff. I'd suggest opening a new PR. -- http://gcc.gnu.org/bug

[Bug middle-end/40502] [4.5 Regression] crash in cp_diagnostic_starter

2009-06-27 Thread reichelt at gcc dot gnu dot org
--- Comment #5 from reichelt at gcc dot gnu dot org 2009-06-27 20:07 --- Reduced testcase: === struct A { char x[12], y[35]; }; struct B { char z[50]; }; inline void foo(char* dest, const char* __restrict src, __SIZE_TYP

[Bug fortran/40569] F2008: Support COMPILER_OPTIONS() / COMPILER_VERSION()

2009-06-27 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-06-27 19:44 --- Do not forget to update intrinsic.texi! For the missing constants in ISO_FORTRAN_ENV, see PR 40571 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40569

[Bug fortran/40571] New: F2008: ISO_FORTRAN_ENV: Missing constants

2009-06-27 Thread burnus at gcc dot gnu dot org
For the missing inquiry function, see PR 40569. Do not forget to update intrinsic.texi! Missing are the following integer arrays/scalars: CHARACTER_KINDS [ 1, 4 ] INTEGER_KINDS [ 1, 2, 4 ...] LOGICAL_KINDS [ 1, 2, 4, ...] REAL_KINDS [ 4, 8, ... ] IO_INQUIRE_INTERNAL_UNIT some pos

[Bug tree-optimization/40570] [4.5 Regression] ice in get_constraint_for_ptr_offset with -O3

2009-06-27 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-06-27 19:06 --- Created an attachment (id=18080) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18080&action=view) reduced testcase slightly reduced testcase. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40570

[Bug tree-optimization/40570] [4.5 Regression] ice in get_constraint_for_ptr_offset with -O3

2009-06-27 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-06-27 18:38 --- Hm, for me it endlessly recurses #49 0x087e631e in cgraph_clone_inlined_nodes (e=0xb78db340, duplicate=0 '\0', update_original=1 '\001') at /home/richard/src/trunk/gcc/ipa-inline.c:261 261 cgraph_clon

[Bug c/40570] ice in get_constraint_for_ptr_offset with -O3

2009-06-27 Thread dcb314 at hotmail dot com
--- Comment #1 from dcb314 at hotmail dot com 2009-06-27 18:08 --- Created an attachment (id=18079) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18079&action=view) C source code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40570

[Bug c/40570] New: ice in get_constraint_for_ptr_offset with -O3

2009-06-27 Thread dcb314 at hotmail dot com
I just tried to compile the Suse Linux package qemacs-0.3.1-381.2 with the G++ compiler version 4.5 snapshot 20090625. The compiler said css.c:819:24: warning: cast from pointer to integer of different size gcc: Internal error: Segmentation fault (program cc1) Please submit a full bug report. See

[Bug other/40024] trunk/gcc-4.3/gcc: * emutls.c (emutls_destroy): Don' t fall out of the array bound.

2009-06-27 Thread rguenth at gcc dot gnu dot org
--- Comment #8 from rguenth at gcc dot gnu dot org 2009-06-27 17:56 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRM

[Bug other/40024] trunk/gcc-4.3/gcc: * emutls.c (emutls_destroy): Don' t fall out of the array bound.

2009-06-27 Thread ktietz at gcc dot gnu dot org
--- Comment #7 from ktietz at gcc dot gnu dot org 2009-06-27 17:56 --- I did regression test for 4.3 and 4.4 branches and it was successful. I committed the patch for PR other/40024 to both branches. Committed revision 149015 for 4.3 branch and committed revision 149016 for 4.4 branch.

[Bug other/40024] trunk/gcc-4.3/gcc: * emutls.c (emutls_destroy): Don' t fall out of the array bound.

2009-06-27 Thread ktietz at gcc dot gnu dot org
--- Comment #6 from ktietz at gcc dot gnu dot org 2009-06-27 17:52 --- Subject: Bug 40024 Author: ktietz Date: Sat Jun 27 17:52:29 2009 New Revision: 149016 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149016 Log: 2009-06-27 Kai Tietz Merged from trunk rev/148061

[Bug other/40024] trunk/gcc-4.3/gcc: * emutls.c (emutls_destroy): Don' t fall out of the array bound.

2009-06-27 Thread ktietz at gcc dot gnu dot org
--- Comment #5 from ktietz at gcc dot gnu dot org 2009-06-27 17:50 --- Subject: Bug 40024 Author: ktietz Date: Sat Jun 27 17:50:20 2009 New Revision: 149015 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149015 Log: 2009-06-27 Kai Tietz Merged from trunk rev/148061

[Bug target/40489] gcc.dg/builtin-unreachable-3.c doesn't work on ia64

2009-06-27 Thread hjl at gcc dot gnu dot org
--- Comment #2 from hjl at gcc dot gnu dot org 2009-06-27 16:43 --- Subject: Bug 40489 Author: hjl Date: Sat Jun 27 16:43:28 2009 New Revision: 149014 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149014 Log: 2009-06-27 H.J. Lu PR target/40489 * config/ia64/

[Bug fortran/40569] New: F2008: Support COMPILER_OPTIONS() / COMPILER_VERSION()

2009-06-27 Thread burnus at gcc dot gnu dot org
Fortran 2008 adds the two inquiry subroutines, which return a string. In GCC the version string is in "version.h": extern const char version_string[]; The options string has to constructed manually; the question is whether one wants to skip certain options. Optimally, one would record exactly t

[Bug other/40024] trunk/gcc-4.3/gcc: * emutls.c (emutls_destroy): Don' t fall out of the array bound.

2009-06-27 Thread ktietz at gcc dot gnu dot org
--- Comment #4 from ktietz at gcc dot gnu dot org 2009-06-27 16:05 --- I noticed for version 4.4 (x86_64-*-mingw* and i686-*-mingw*) this issue still exist. On 4.5 branch it is fixed. I would like that it the patch is getting applied on the 4.4.1 branch, too. It fixed a crash in emutls_d

[Bug fortran/40568] New: F2008: C_SIZEOF is in the wrong scope

2009-06-27 Thread burnus at gcc dot gnu dot org
C_SIZEOF should be a function in ISO_C_BINDING, however, in gfortran it is a normal intrinsic. Expected: - The USE statement works - Using C_SIZEOF should give an error use iso_c_binding, only: so => c_sizeof implicit none print *, c_sizeof(1) end -- Summary: F2008: C_SIZEOF is in t

[Bug middle-end/40550] Segmentation fault caused by alignment error in sse code

2009-06-27 Thread CaptainSifff at gmx dot de
--- Comment #8 from CaptainSifff at gmx dot de 2009-06-27 15:44 --- This also happens in gcc-4.2.1 on i686. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40550

[Bug tree-optimization/26854] [4.3/4.4/4.5 Regression] Inordinate compile times on large routines

2009-06-27 Thread bonzini at gcc dot gnu dot org
--- Comment #109 from bonzini at gnu dot org 2009-06-27 14:48 --- Subject: Bug 26854 Author: bonzini Date: Sat Jun 27 14:48:34 2009 New Revision: 149010 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149010 Log: 2009-06-07 Paolo Bonzini PR rtl-optimization/26854

[Bug testsuite/40567] [4.5 regression] Revision 149002 caused many failures

2009-06-27 Thread bonzini at gcc dot gnu dot org
--- Comment #1 from bonzini at gnu dot org 2009-06-27 14:40 --- Subject: Bug 40567 Author: bonzini Date: Sat Jun 27 14:40:29 2009 New Revision: 149006 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149006 Log: 2009-06-27 Paolo Bonzini PR testsuite/40567 * gcc

[Bug testsuite/40567] [4.5 regression] Revision 149002 caused many failures

2009-06-27 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40567

[Bug testsuite/40567] New: [4.5 regression] Revision 149002 caused many failures

2009-06-27 Thread hjl dot tools at gmail dot com
On Linux/ia32, revision 149002: http://gcc.gnu.org/ml/gcc-cvs/2009-06/msg00987.html caused: FAIL: gcc.dg/vect/O3-pr36098.c (test for excess errors) FAIL: gcc.dg/vect/O3-pr39675-2.c (test for excess errors) FAIL: gcc.dg/vect/O3-pr39675-2.c scan-tree-dump-times vect "vectorized 1 loops" 1: dump fi

[Bug c++/40566] [4.3/4.4/4.5 Regression] rejects promoted throw

2009-06-27 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Known to fail||3.3.6 4.0.0 4.4.1 4.5.0 Known to work|

[Bug c++/40566] New: rejects promoted throw

2009-06-27 Thread rguenth at gcc dot gnu dot org
void f(int x) { char c = x ? 23 : throw "bla"; } error: aggregate value used where an integer was expected because we call convert_to_integer on the throw_expression. -- Summary: rejects promoted throw Product: gcc Version: 4.4.1 Status: UNCONFIRME

[Bug testsuite/40565] [4.5 Regression] Extra failures

2009-06-27 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-06-27 09:49 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED