[Bug rtl-optimization/44479] false dependencies are computed after vectorization

2010-07-15 Thread roy dot 1rosen at gmail dot com
--- Comment #7 from roy dot 1rosen at gmail dot com 2010-07-15 06:52 --- Looks good now. Thanks for the fix. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44479

[Bug fortran/44934] [4.6 Regression] Bogus Missing format for FORMATTED data transfer

2010-07-15 Thread burnus at gcc dot gnu dot org
--- Comment #12 from burnus at gcc dot gnu dot org 2010-07-15 07:05 --- Can you send the patch also to fortran@ and gcc-patc...@? And can you fix the changelog by adding a line for io/transfer.c? It looks as if you only changed the indenting, but I might be wrong. The patch itself

[Bug rtl-optimization/44479] false dependencies are computed after vectorization

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #8 from rguenth at gcc dot gnu dot org 2010-07-15 07:17 --- Fixed then. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/40206] [gfortran] Incorrect warning with -Wuninitialized

2010-07-15 Thread jakub at gcc dot gnu dot org
--- Comment #8 from jakub at gcc dot gnu dot org 2010-07-15 07:53 --- Subject: Bug 40206 Author: jakub Date: Thu Jul 15 07:52:51 2010 New Revision: 162209 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=162209 Log: PR fortran/40206 * trans-stmt.c

[Bug target/44944] g++ segfault with -fvisibility-inlines-hidden -O2 -fno-exceptions -fPIC

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-07-15 08:00 --- Works on x86_64 with -m32. Does the testcase work with GCC 4.4? Does it work with the 4.5.0 release? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/44944] g++ segfault with -fvisibility-inlines-hidden -O2 -fno-exceptions -fPIC

2010-07-15 Thread graham dot gower at gmail dot com
--- Comment #4 from graham dot gower at gmail dot com 2010-07-15 08:03 --- Works with 4.4.4. I can check 4.5 release tomorrow. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44944

[Bug target/44942] Bug in argument passing of long double

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-07-15 08:06 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/44941] [4.6 Regression] ICE: RTL check: expected code 'mem', have 'reg' in emit_block_move_hints, at expr.c:1189

2010-07-15 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44941

[Bug tree-optimization/44937] [4.6 Regression] IPA-split causes crash due to null pointer deref

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-07-15 08:21 --- Confirmed. (gdb) call debug_gimple_stmt (stmt) .MEM_12 = PHI .MEM_13(D)(2), (3) we miss a PHI arg here after splitting the function. func_4 (int p_5, unsigned char p_6, unsigned char p_7) { bb 2: if (p_6_3(D)

[Bug middle-end/44945] New: [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90

2010-07-15 Thread dominiq at lps dot ens dot fr
At revision 162192, I get with -m32: FAIL: gfortran.dg/char_array_structure_constructor.f90 -O3 -fomit-frame-pointer execution test The failure is a Bus error with -O2 and -O3, and requires -fomit-frame-pointer. Also the failure goes away when Revision 162148 was OK and the test passes on

[Bug lto/44935] internal compiler error: in assign_stack_temp_for_type, at function.c:785

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-07-15 08:37 --- Works with my pending set of patches. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44935

[Bug middle-end/44945] [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90

2010-07-15 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44945

[Bug tree-optimization/44946] New: [4.6 Regression] ICE: in get_constraint_for_component_ref, at tree-ssa-structalias.c:3184

2010-07-15 Thread zsojka at seznam dot cz
This might be related to PR44941. Command line: $ gcc -O2 testcase.c Output: $ gcc -O2 testcase.c testcase.c: In function 'foo': testcase.c:22:1: internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:3184 Please submit a full bug report, with preprocessed source

[Bug tree-optimization/44946] [4.6 Regression] ICE: in get_constraint_for_component_ref, at tree-ssa-structalias.c:3184

2010-07-15 Thread zsojka at seznam dot cz
--- Comment #1 from zsojka at seznam dot cz 2010-07-15 09:00 --- Created an attachment (id=21208) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21208action=view) reduced testcase (from wget sources) Command line: $ gcc -O2 pr44946.c --

[Bug c/44947] New: Optimizer doesn't see setjmp()

2010-07-15 Thread cm1 at mumac dot de
Hi all, I have an interesting problem with gcc optimizing away an automatic variable in a function which uses setjmp/longjmp in a macro-based exception processing framework. Here's some example code (just to illustrate the problem, I haven't tested this code): #include stdlib.h #include stdio.h

[Bug c/44947] Optimizer doesn't see setjmp()

2010-07-15 Thread cm1 at mumac dot de
--- Comment #1 from cm1 at mumac dot de 2010-07-15 09:15 --- Sorry, I edited the contents of the precompiler output to make it more readable and messed up the auto variable name. Please use this code: #include stdlib.h #include stdio.h #include setjmp.h #define EXC_TRY 1 #define

[Bug c/44947] Optimizer doesn't see setjmp()

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-07-15 09:18 --- You need to mark auto variables that are life across setjmp/longjmp calls as volatile. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

Re: [Bug c/44947] Optimizer doesn't see setjmp()

2010-07-15 Thread Andrew Pinski
On Jul 15, 2010, at 2:15 AM, cm1 at mumac dot de gcc-bugzi...@gcc.gnu.org wrote: --- Comment #1 from cm1 at mumac dot de 2010-07-15 09:15 --- Sorry, I edited the contents of the precompiler output to make it more readable and messed up the auto variable name. Please use this

[Bug c/44947] Optimizer doesn't see setjmp()

2010-07-15 Thread pinskia at gmail dot com
--- Comment #3 from pinskia at gmail dot com 2010-07-15 09:19 --- Subject: Re: Optimizer doesn't see setjmp() On Jul 15, 2010, at 2:15 AM, cm1 at mumac dot de gcc-bugzi...@gcc.gnu.org wrote: --- Comment #1 from cm1 at mumac dot de 2010-07-15 09:15 --- Sorry, I

Problem compiling a program with openmp and multithreading

2010-07-15 Thread MSteve
Hi everybody! Here is my problem : I wrote a c++ program on Linux which uses the pthread library to handle several requests of several clients. Each request executes an algo in which some parts, some loops, are parallelized with openmp (on 2 processors). I compile my program with gcc 4.3. With

[Bug tree-optimization/44946] [4.6 Regression] ICE: in get_constraint_for_component_ref, at tree-ssa-structalias.c:3184

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-07-15 09:21 --- Confirmed. It's mem-ref related. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/44937] [4.6 Regression] IPA-split causes crash due to null pointer deref

2010-07-15 Thread hubicka at ucw dot cz
--- Comment #2 from hubicka at ucw dot cz 2010-07-15 09:37 --- Subject: Re: [4.6 Regression] IPA-split causes crash due to null pointer deref (gdb) call debug_gimple_stmt (stmt) .MEM_12 = PHI .MEM_13(D)(2), (3) Hmm, I make no attempts to update alias info. Why return has

[Bug target/44942] Bug in argument passing of long double

2010-07-15 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2010-07-15 09:49 --- Seems ix86_function_arg_advance ignores padding for 8 byte aligned arguments when updating cum-words. With: #include stdarg.h long double test (int a, int b, int c, int d, int e, int f, int g, int g2, int g3, long

[Bug tree-optimization/44937] [4.6 Regression] IPA-split causes crash due to null pointer deref

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-07-15 09:58 --- It doesn't. It's a PHI node. So I suppose there was a CFG confluence point here. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44937

[Bug tree-optimization/44937] [4.6 Regression] IPA-split causes crash due to null pointer deref

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-07-15 10:00 --- CDDCE removes the single store in the loop but doesn't remove the virtual PHI nodes. But you still have to deal with them I guess. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44937

Re: Problem compiling a program with openmp and multithreading

2010-07-15 Thread Jonathan Wakely
The gcc-bugs mailing list is for emails automatically generated by our bug database, to report a bug please follow the instructions at http://gcc.gnu.org/bugs/ However, your email doesn't seem to be a bug report and you don't give enough information for a useful bug report, you haven't said what

[Bug c/44947] Optimizer doesn't see setjmp()

2010-07-15 Thread cm1 at mumac dot de
--- Comment #4 from cm1 at mumac dot de 2010-07-15 10:14 --- Thanks for the quick explanation and sorry for joining the club of submit first, read the specs later folks -- I actually thought I knew them ;) It makes of course sense to use volatile in the presence of setjmp/longjmp but

Re: Problem compiling a program with openmp and multithreading

2010-07-15 Thread MSteve
Ok, thanks for your answer. I will try to simplify my code (several header and source files) to keep only the part which produces the error, and I will post on the good forum with more precisions on the problem. Thanks. -- View this message in context:

[Bug tree-optimization/44946] [4.6 Regression] ICE: in get_constraint_for_component_ref, at tree-ssa-structalias.c:3184

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-07-15 11:17 --- Subject: Bug 44946 Author: rguenth Date: Thu Jul 15 11:17:37 2010 New Revision: 162216 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=162216 Log: 2010-07-15 Richard Guenther rguent...@suse.de PR

[Bug tree-optimization/44937] [4.6 Regression] IPA-split causes crash due to null pointer deref

2010-07-15 Thread hubicka at ucw dot cz
--- Comment #5 from hubicka at ucw dot cz 2010-07-15 11:31 --- Subject: Re: [4.6 Regression] IPA-split causes crash due to null pointer deref CDDCE removes the single store in the loop but doesn't remove the virtual PHI nodes. But you still have to deal with them I guess.

[Bug tree-optimization/44946] [4.6 Regression] ICE: in get_constraint_for_component_ref, at tree-ssa-structalias.c:3184

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-07-15 11:31 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug target/44942] Bug in argument passing of long double

2010-07-15 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2010-07-15 12:03 --- Created an attachment (id=21209) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21209action=view) gcc46-pr44942.patch Untested fix. Grep tells me that cum-words is only ever used for x86-64 va_start expansion

[Bug target/44948] New: -mavx changes ABI

2010-07-15 Thread jakub at gcc dot gnu dot org
With two sources: struct A { long b[8] __attribute__((aligned (32))); }; void foo (long double, struct A); int main (void) { struct A a = { { 0, 1, 2, 3, 4, 5, 6, 7 } }; foo (8.0L, a); return 0; } and: struct A { long b[8] __attribute__((aligned (32))); }; void foo (long double x, struct A

[Bug fortran/44709] BLOCK and GOTO/EXIT/CYCLE

2010-07-15 Thread domob at gcc dot gnu dot org
--- Comment #4 from domob at gcc dot gnu dot org 2010-07-15 12:24 --- Subject: Bug 44709 Author: domob Date: Thu Jul 15 12:23:47 2010 New Revision: 162219 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=162219 Log: 2010-07-15 Daniel Kraft d...@domob.eu PR fortran/44709

[Bug fortran/44709] BLOCK and GOTO/EXIT/CYCLE

2010-07-15 Thread domob at gcc dot gnu dot org
--- Comment #5 from domob at gcc dot gnu dot org 2010-07-15 12:31 --- Fixed the clean-up issues. Still remaining is the rejects-valid (2b) of Tobias' original comment. I'll keep on with that. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44709

[Bug target/44877] C++ compiler can no longer compile dealII for VSX/Altivec vectorization

2010-07-15 Thread uweigand at gcc dot gnu dot org
--- Comment #7 from uweigand at gcc dot gnu dot org 2010-07-15 12:38 --- Subject: Bug 44877 Author: uweigand Date: Thu Jul 15 12:37:03 2010 New Revision: 162220 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=162220 Log: PR target/44877 * config/spu/spu.c

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2010-07-15 13:11 --- How should we align struct A { long b[8] __attribute__((aligned (32))); }; when it is passed on stack? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44948

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2010-07-15 13:15 --- If we want to be ABI compatible, I'm afraid it needs to be 16 byte aligned only. We don't align aligned(64) structs to 64 bytes either, even with -mavx. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44948

[Bug lto/44812] m32 lto produces non-relocatable subtraction expression errors

2010-07-15 Thread howarth at nitro dot med dot uc dot edu
--- Comment #4 from howarth at nitro dot med dot uc dot edu 2010-07-15 13:19 --- At -m32 on x86_64-apple-darwin10, the test cases which fail due to symbols being optimized away include... FAIL: g++.dg/lto/20081118-1 cp_lto_20081118-1_0.o-cp_lto_20081118-1_1.o link, -O2 -fwhopr FAIL:

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2010-07-15 13:26 --- Caller and call expander try to honor type alignment. See PR 35771 and PR 35767. I think we should replace BIGGEST_ALIGNMENT with MAX_STACK_ALIGNMENT. -- hjl dot tools at gmail dot com changed: What

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread hjl dot tools at gmail dot com
--- Comment #4 from hjl dot tools at gmail dot com 2010-07-15 13:33 --- (In reply to comment #2) If we want to be ABI compatible, I'm afraid it needs to be 16 byte aligned only. We don't align aligned(64) structs to 64 bytes either, even with -mavx. That is because we couldn't

[Bug fortran/44936] [OOP] Generic TBP not resolved correctly at compile time

2010-07-15 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2010-07-15 13:36 --- Subject: Bug 44936 Author: janus Date: Thu Jul 15 13:36:28 2010 New Revision: 162221 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=162221 Log: 2010-07-15 Janus Weil ja...@gcc.gnu.org PR

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2010-07-15 13:42 --- We have aligned double to 4 byte when passing on stack in 32bit. I guess it is OK to use a smaller alignment. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44948

[Bug fortran/44936] [OOP] Generic TBP not resolved correctly at compile time

2010-07-15 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2010-07-15 13:42 --- Fixed with r162221. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2010-07-15 13:56 --- When we pass 32byte aligned type on stack with 16byte alignment, do we mark it as 16byte aligned or 32byte aligned? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44948

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread hjl dot tools at gmail dot com
--- Comment #7 from hjl dot tools at gmail dot com 2010-07-15 14:10 --- For 32bit, we should align it to 4 byte. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44948

[Bug c/44949] New: extend Wparentheses from to =

2010-07-15 Thread marc dot glisse at normalesup dot org
This is about both C and C++. gcc warns about a construction like i2==0, and this helped us find bugs. But we noticed, in the same code, occurrences of: i=2==0. This code suffers from the same problem, but gcc doesn't warn about it. Would it be a good idea to extend the warning to this case? --

[Bug rtl-optimization/44941] [4.6 Regression] ICE: RTL check: expected code 'mem', have 'reg' in emit_block_move_hints, at expr.c:1189

2010-07-15 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2010-07-15 14:38 --- It is caused by revision 161655: http://gcc.gnu.org/ml/gcc-cvs/2010-07/msg6.html -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug fortran/44945] [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90

2010-07-15 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2010-07-15 14:37 --- 0x000adddc in __gfortran_compare_string (len1=4, s1=0x0, len2=4, s2=0x1f40 s1 should not be NULL but the value of c%a. The question is why does this fail now. Recently added were: PURE and the fn spec of ..R.R.

[Bug lto/44950] New: dwarf2out ICE with WHOPR build of mozilla

2010-07-15 Thread hubicka at gcc dot gnu dot org
j...@evans:/abuild/jh/build-mozilla-debug/js/src/shell /abuild/jh/trunk-install/bin/g++ -fwhopr=24 -fuse-linker-plugin -fpermissive -o js.o -c -I../../../dist/system_wrappers_js -include /abuild/jh/mozilla-central/js/src/config/gcc_hidden.h -DEXPORT_JS_API -DOSTYPE=\Linux2.6.32.12-0\

[Bug fortran/40206] [gfortran] Incorrect warning with -Wuninitialized

2010-07-15 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2010-07-15 15:09 --- Should be fixed now for 4.6+. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug lto/44951] New: debug info ICE in whopr build due to missing -g at compile time.

2010-07-15 Thread hubicka at gcc dot gnu dot org
j...@evans:/abuild/jh/build-mozilla-debug/toolkit/crashreporter/google-breakpad/src/common/dwarf /abuild/jh/trunk-install/bin/g++ -fwhopr=24 -fuse-linker-plugin -fpermissive -funsigned-char host_bytereader.ii -c

[Bug bootstrap/44807] [4.6 Regression] bootstrap failure on i686 with BOOT_CFLAGS='-O3'

2010-07-15 Thread zsojka at seznam dot cz
--- Comment #3 from zsojka at seznam dot cz 2010-07-15 15:16 --- Created an attachment (id=21210) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21210action=view) different testcase, reduced $ gcc -O2 -finline-functions testcase.c testcase.c:37:1: error: caller edge frequency 1142

[Bug lto/44951] debug info ICE in whopr build due to missing -g at compile time.

2010-07-15 Thread hubicka at gcc dot gnu dot org
--- Comment #1 from hubicka at gcc dot gnu dot org 2010-07-15 15:17 --- Created an attachment (id=21211) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21211action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44951

[Bug lto/44950] dwarf2out ICE with WHOPR build of mozilla

2010-07-15 Thread hubicka at gcc dot gnu dot org
--- Comment #1 from hubicka at gcc dot gnu dot org 2010-07-15 15:22 --- Created an attachment (id=21212) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21212action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44950

[Bug fortran/44945] [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90

2010-07-15 Thread dominiq at lps dot ens dot fr
--- Comment #2 from dominiq at lps dot ens dot fr 2010-07-15 15:23 --- Created an attachment (id=21213) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21213action=view) dump with -m32 -O2 -fomit-frame-pointer -fdump-tree-optimized --

[Bug fortran/44945] [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90

2010-07-15 Thread dominiq at lps dot ens dot fr
--- Comment #3 from dominiq at lps dot ens dot fr 2010-07-15 15:24 --- Created an attachment (id=21214) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21214action=view) dump with -m64 -O2 -fomit-frame-pointer -fdump-tree-optimized --

[Bug fortran/44945] [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90

2010-07-15 Thread dominiq at lps dot ens dot fr
--- Comment #4 from dominiq at lps dot ens dot fr 2010-07-15 15:27 --- Created an attachment (id=21215) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21215action=view) dump with -m64 -O2 -fomit-frame-pointer -fdump-tree-optimized --

[Bug rtl-optimization/44941] [4.6 Regression] ICE: RTL check: expected code 'mem', have 'reg' in emit_block_move_hints, at expr.c:1189

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-07-15 15:47 --- Mine. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/44952] New: #include iostream.h imply global constructor.

2010-07-15 Thread hubicka at gcc dot gnu dot org
Noticed while reading http://comments.gmane.org/gmane.comp.web.chromium.devel/16789 evans:/abuild/jh/trunk-install/bin/:[0]# more g.C #include iostream evans:/abuild/jh/trunk-install/bin/:[0]# ./g++ -O2 g.C -S evans:/abuild/jh/trunk-install/bin/:[0]# more g.s .file g.C .text

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #8 from rguenth at gcc dot gnu dot org 2010-07-15 16:02 --- (In reply to comment #3) Caller and call expander try to honor type alignment. See PR 35771 and PR 35767. I think we should replace BIGGEST_ALIGNMENT with MAX_STACK_ALIGNMENT. The call expander should not look

[Bug middle-end/44945] [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90

2010-07-15 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2010-07-15 16:02 --- According to gcc-testresults this seems to affect only Darwin, cf. http://gcc.gnu.org/ml/gcc-testresults/2010-07/msg01432.html The optimized dumps also seem to be OK (or at there is no obvious difference). In the

Re: [Bug libstdc++/44952] New: #include iostream.h imply global constructor.

2010-07-15 Thread Andrew Pinski
This is expected and iirc required by the c++ standard too. On Jul 15, 2010, at 8:51 AM, hubicka at gcc dot gnu dot org gcc-bugzi...@gcc.gnu.org wrote: Noticed while reading http://comments.gmane.org/gmane.comp.web.chromium.devel/16789 evans:/abuild/jh/trunk-install/bin/:[0]# more g.C

[Bug libstdc++/44952] #include iostream.h imply global constructor.

2010-07-15 Thread pinskia at gmail dot com
--- Comment #1 from pinskia at gmail dot com 2010-07-15 16:02 --- Subject: Re: New: #include iostream.h imply global constructor. This is expected and iirc required by the c++ standard too. On Jul 15, 2010, at 8:51 AM, hubicka at gcc dot gnu dot org gcc-bugzi...@gcc.gnu.org

[Bug libstdc++/44952] #include iostream.h imply global constructor.

2010-07-15 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-07-15 16:03 --- Why's this not in libstdc++.so .init? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread hjl dot tools at gmail dot com
--- Comment #9 from hjl dot tools at gmail dot com 2010-07-15 16:05 --- How about this patch? diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 4fd2aab..65e13a3 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -6594,8 +6594,8 @@

[Bug libstdc++/44952] #include iostream.h imply global constructor.

2010-07-15 Thread hubicka at gcc dot gnu dot org
--- Comment #3 from hubicka at gcc dot gnu dot org 2010-07-15 16:12 --- ... and are we required to emit the constructor even if we know var is not used? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44952

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread hjl dot tools at gmail dot com
--- Comment #10 from hjl dot tools at gmail dot com 2010-07-15 16:20 --- Created an attachment (id=21216) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21216action=view) A patch I am testing this patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44948

[Bug middle-end/44945] [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90

2010-07-15 Thread dominiq at lps dot ens dot fr
--- Comment #6 from dominiq at lps dot ens dot fr 2010-07-15 16:25 --- a) _gfortran_compare_string is now PURE, http://gcc.gnu.org/viewcvs?view=revisionrevision=162160 The test passes with the following patch: --- ../_clean/gcc/fortran/trans-decl.c 2010-07-15 18:05:19.0

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread jakub at gcc dot gnu dot org
--- Comment #11 from jakub at gcc dot gnu dot org 2010-07-15 16:28 --- That is going to break the ABI a lot. You'd e.g. change long double passing for -m64. What you IMHO want is to do what the code currently does, and if the alignment after that is 32 bytes, use a predicate similar to

[Bug libstdc++/44952] #include iostream.h imply global constructor.

2010-07-15 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2010-07-15 16:30 --- (In reply to comment #2) Why's this not in libstdc++.so .init? because this will not work if libstdc++ is a static library. Take: #include iostream namespace { struct g { g(){ std::cout t; } }; g one; } ---

[Bug fortran/44953] New: FAIL: gfortran.dg/char4_iunit_1.f03 * execution test

2010-07-15 Thread dominiq at lps dot ens dot fr
gfortran.dg/char4_iunit_1.f03 fails on powerpc-apple-darwin9 (see http://gcc.gnu.org/ml/gcc-testresults/2010-07/msg01445.html ). It looks like an endianess issue. -- Summary: FAIL: gfortran.dg/char4_iunit_1.f03 * execution test Product: gcc Version: 4.6.0

[Bug libstdc++/44952] #include iostream.h imply global constructor.

2010-07-15 Thread redi at gcc dot gnu dot org
--- Comment #5 from redi at gcc dot gnu dot org 2010-07-15 16:38 --- This is why you should only include iostream if you want actually want std::cin, std::cout or std::cerr (or the wide character equivalents.) Otherwise you should only include one or more of iosfwd, istream and ostream,

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread hjl dot tools at gmail dot com
--- Comment #12 from hjl dot tools at gmail dot com 2010-07-15 16:41 --- Created an attachment (id=21217) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21217action=view) A new patch How about this patch? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44948

[Bug libstdc++/44952] #include iostream.h imply global constructor.

2010-07-15 Thread redi at gcc dot gnu dot org
--- Comment #6 from redi at gcc dot gnu dot org 2010-07-15 16:45 --- and please ... it's 2010, iostream not iostream.h ;-) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44952

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread hjl dot tools at gmail dot com
--- Comment #13 from hjl dot tools at gmail dot com 2010-07-15 16:47 --- struct A { long b[8] __attribute__((aligned (32))); __m128i x; }; What alignment should we use to pass it on stack? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44948

[Bug target/44954] New: exception ignores catch-clause when using a variable for the message

2010-07-15 Thread mwglass at sandia dot gov
I believe this is related to Bug #43493 I cannot catch exceptions if a variable (non-static) is use for the message... Using the following program: #include cstdlib #include iostream #include sstream #include stdexcept #include string using namespace std; void generateException(int

[Bug libstdc++/44952] #include iostream.h imply global constructor.

2010-07-15 Thread hubicka at gcc dot gnu dot org
--- Comment #7 from hubicka at gcc dot gnu dot org 2010-07-15 16:53 --- Hehe, I am really not C++ guy even in 2010, but I have impression that people are including iostream without really thinking about consequences here. Well, so what we can do about the startup times then? I will

[Bug target/44954] exception ignores catch-clause when using a variable for the message

2010-07-15 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-07-15 16:53 --- (In reply to comment #0) However, when I compile with gcc 4.3 or 4.4 installed with macports 1.9.1 I get: How is that gcc configured? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44954

[Bug target/44954] exception ignores catch-clause when using a variable for the message

2010-07-15 Thread mwglass at sandia dot gov
--- Comment #2 from mwglass at sandia dot gov 2010-07-15 16:56 --- Using built-in specs. Target: x86_64-apple-darwin10 Configured with: ../gcc-4.4.4/configure --prefix=/opt/local --build=x86_64-apple-darwin10 --enable-languages=c,c++,objc,obj-c++,java,fortran

[Bug target/44954] exception ignores catch-clause when using a variable for the message

2010-07-15 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-07-15 16:57 --- IIRC this is a bug in Apple's unwinder. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44954

[Bug target/42159] [4.4/4.5/4.6] app SIGABRTs after a trivial nested throw/stack unwinding

2010-07-15 Thread pinskia at gcc dot gnu dot org
--- Comment #19 from pinskia at gcc dot gnu dot org 2010-07-15 16:57 --- *** Bug 44954 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/44954] exception ignores catch-clause when using a variable for the message

2010-07-15 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2010-07-15 16:57 --- *** This bug has been marked as a duplicate of 42159 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/43277] thrower function with inlined stack destructor crash on darwin

2010-07-15 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2010-07-15 16:58 --- *** This bug has been marked as a duplicate of 42159 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/42159] [4.4/4.5/4.6] app SIGABRTs after a trivial nested throw/stack unwinding

2010-07-15 Thread pinskia at gcc dot gnu dot org
--- Comment #20 from pinskia at gcc dot gnu dot org 2010-07-15 16:58 --- *** Bug 43277 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/43493] exception ignores catch-clause when std::ostringstream helps in throwing

2010-07-15 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2010-07-15 16:58 --- *** This bug has been marked as a duplicate of 42159 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/42159] [4.4/4.5/4.6] app SIGABRTs after a trivial nested throw/stack unwinding

2010-07-15 Thread pinskia at gcc dot gnu dot org
--- Comment #21 from pinskia at gcc dot gnu dot org 2010-07-15 16:58 --- *** Bug 43493 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/42159] [4.4/4.5/4.6] app SIGABRTs after a trivial nested throw/stack unwinding

2010-07-15 Thread redi at gcc dot gnu dot org
--- Comment #22 from redi at gcc dot gnu dot org 2010-07-15 17:03 --- I wonder if some of the dups are actually caused by not building gcc with --enable-fully-dynamic-string which is needed on Snow Leopard, but wasn't done by macports until recently:

[Bug tree-optimization/44955] New: over-prefetched for arrays of complex number

2010-07-15 Thread changpeng dot fang at amd dot com
While I am working on prefetching-incurred performance degradation on 168.wupwise, I find that complex arrays are always over-prefetched. Prefetches are generated for both the real part and imagine part. subroutine s311 (i,j,n,m,beta,a,b) c c reductions c sum reduction c

[Bug c++/44956] New: using with templates breaks encapsulation

2010-07-15 Thread sebastien at soja dot org
When using templates, AAI::f should not be reachable from main() because it is protected. The correct behavior is observed in the template-less version: the compiler detects an encapsulation error. % cat foo.cpp #if NO_TEMPLATES == 1 class A { protected: int f() { return 42; } }; class B : public

[Bug tree-optimization/44955] over-prefetched for arrays of complex number

2010-07-15 Thread changpeng dot fang at amd dot com
--- Comment #1 from changpeng dot fang at amd dot com 2010-07-15 17:20 --- This is a piece of code that shows the two prefetches for b. mulss %xmm4, %xmm5 addq$8, %rdx prefetcht0 96(%r11) prefetcht0 100(%r11) subss %xmm2, %xmm1

[Bug c++/44956] using with templates breaks encapsulation

2010-07-15 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-07-15 17:21 --- This has been at least fixed in 4.5.0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44956

[Bug fortran/44957] New: generic procedure name not included in symbol table

2010-07-15 Thread sme at cs dot toronto dot edu
When compiling a generic procedure, the generic name is not entered in the symbol table, which then causes subsequent 'use' statements to fail. Example: in m_die.F90 we declare: module m_die use m_mpif90, only : MP_perr implicit none private ! except public :: die

[Bug c++/44956] using with templates breaks encapsulation

2010-07-15 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-07-15 17:39 --- fixed in 4.4.3 as well -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44956

[Bug tree-optimization/44955] over-prefetched for arrays of complex number

2010-07-15 Thread rakdver at kam dot mff dot cuni dot cz
--- Comment #2 from rakdver at kam dot mff dot cuni dot cz 2010-07-15 17:44 --- Subject: Re: over-prefetched for arrays of complex number This is a piece of code that shows the two prefetches for b. mulss %xmm4, %xmm5 addq$8, %rdx

[Bug fortran/44957] generic procedure name not included in symbol table

2010-07-15 Thread kargl at gcc dot gnu dot org
--- Comment #1 from kargl at gcc dot gnu dot org 2010-07-15 17:48 --- (In reply to comment #0) When compiling a generic procedure, the generic name is not entered in the symbol table, which then causes subsequent 'use' statements to fail. Example: in m_die.F90 we declare:

[Bug libstdc++/44952] #include iostream.h imply global constructor.

2010-07-15 Thread redi at gcc dot gnu dot org
--- Comment #8 from redi at gcc dot gnu dot org 2010-07-15 17:49 --- (In reply to comment #7) Hehe, I am really not C++ guy even in 2010, but I have impression that people are including iostream without really thinking about consequences here. Yes, and in many cases that's the

[Bug libstdc++/44952] #include iostream implies global constructor.

2010-07-15 Thread paolo dot carlini at oracle dot com
--- Comment #9 from paolo dot carlini at oracle dot com 2010-07-15 18:26 --- Let's say we remove that horrible .h from the Summary, since, to be fair, didn't exist in g.C in the first place ;) That said, I agree with Jon, by and large, with the following minor additional observations:

[Bug middle-end/44945] [4.6 Regression] FAIL: gfortran.dg/char_array_structure_constructor.f90

2010-07-15 Thread dominiq at lps dot ens dot fr
--- Comment #7 from dominiq at lps dot ens dot fr 2010-07-15 18:55 --- Created an attachment (id=21218) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21218action=view) assembly generated with -S -m32 -O2 -fomit-frame-pointer -fverbose-asm The original file has been modified to

[Bug target/44948] -mavx changes ABI

2010-07-15 Thread hjl dot tools at gmail dot com
--- Comment #14 from hjl dot tools at gmail dot com 2010-07-15 19:07 --- (In reply to comment #13) struct A { long b[8] __attribute__((aligned (32))); __m128i x; }; What alignment should we use to pass it on stack? I think when such a struct is passed on stack, the

  1   2   >