Undefined behavior or gcc is doing additional good job?

2014-01-03 Thread Bin.Cheng
Hi, For below simple example: #include stdint.h extern uint32_t __bss_start[]; extern uint32_t __data_start[]; void Reset_Handler(void) { /* Clear .bss section (initialize with zeros) */ for (uint32_t* bss_ptr = __bss_start; bss_ptr != __data_start; ++bss_ptr) { *bss_ptr = 0; } } One

Re: Undefined behavior or gcc is doing additional good job?

2014-01-03 Thread Jakub Jelinek
On Fri, Jan 03, 2014 at 04:12:19PM +0800, Bin.Cheng wrote: Hi, For below simple example: #include stdint.h extern uint32_t __bss_start[]; extern uint32_t __data_start[]; void Reset_Handler(void) { /* Clear .bss section (initialize with zeros) */ for (uint32_t* bss_ptr = __bss_start;

Re: Undefined behavior or gcc is doing additional good job?

2014-01-03 Thread Bin.Cheng
On Fri, Jan 3, 2014 at 4:24 PM, Jakub Jelinek ja...@redhat.com wrote: On Fri, Jan 03, 2014 at 04:12:19PM +0800, Bin.Cheng wrote: Hi, For below simple example: #include stdint.h extern uint32_t __bss_start[]; extern uint32_t __data_start[]; void Reset_Handler(void) { /* Clear .bss

Re: Undefined behavior or gcc is doing additional good job?

2014-01-03 Thread Jakub Jelinek
On Fri, Jan 03, 2014 at 04:44:48PM +0800, Bin.Cheng wrote: extern uint32_t __bss_start[]; extern uint32_t __data_start[]; void Reset_Handler(void) { /* Clear .bss section (initialize with zeros) */ for (uint32_t* bss_ptr = __bss_start; bss_ptr != __data_start; ++bss_ptr) {

Why __builtin_sqrt do not totally replace sqrt in asm

2014-01-03 Thread BELBACHIR Selim
Hi, When the standard pattern 'sqrtm2' is defined I don't understand why calls to sqrt or __builtin_sqrt is always followed by a comparison of the result with itself (checking the NaN ?) and a conditional branch to sqrt symbol (so linking with libm is always mandatory).

Re: Why __builtin_sqrt do not totally replace sqrt in asm

2014-01-03 Thread Jakub Jelinek
On Fri, Jan 03, 2014 at 10:44:21AM +0100, BELBACHIR Selim wrote: When the standard pattern 'sqrtm2' is defined I don't understand why calls to sqrt or __builtin_sqrt is always followed by a comparison of the result with itself (checking the NaN ?) and a conditional branch to sqrt symbol (so

lto testsuite may erase mathlib variable

2014-01-03 Thread BELBACHIR Selim
Hi, I noticed a problem in gcc/testsuite/g++.dg/lto/lto.exp If the target does not support LTO (check_effective_target_lto) a brutal return is performed so the mathlib variable modified in lto_init will not be restored properly by lto_finish at the end of the script. Subsequent testsuites

Re: Undefined behavior or gcc is doing additional good job?

2014-01-03 Thread Joseph S. Myers
On Fri, 3 Jan 2014, Jakub Jelinek wrote: I think this has been discussed in some PR, unfortunately I can't find it. Bug 57725? -- Joseph S. Myers jos...@codesourcery.com

LIMITS_H_TEST and Newlib

2014-01-03 Thread Sebastian Huber
Hello, in gcc/Makefile, there is a test to determine how to set up the GCC provided limits.h. Here is a collection of the relevant Makefile parts: # # Installation directories # # Common prefix for installation directories. # NOTE: This

Re: LIMITS_H_TEST and Newlib

2014-01-03 Thread Joseph S. Myers
On Fri, 3 Jan 2014, Sebastian Huber wrote: There is already a --with-newlib configure option, so maybe it makes sense to use it for the stmp-int-hdrs Makefile target? The --with-newlib option is a badly named option that really means set inhibit_libc. That is, it's for an initial bootstrap

How to generate AVX512 instructions now (just to look at them).

2014-01-03 Thread Toon Moene
I am trying to figure out how the top-consuming routines in our weather models will be compiled when using AVX512 instructions (and their 32 512 bit registers). I thought an up-to-date trunk version of gcc, using the command line: .../gfortran -Ofast -S -mavx2 -mavx512f source code would do

Re: How to generate AVX512 instructions now (just to look at them).

2014-01-03 Thread Tim Prince
On 1/3/2014 11:04 AM, Toon Moene wrote: I am trying to figure out how the top-consuming routines in our weather models will be compiled when using AVX512 instructions (and their 32 512 bit registers). I thought an up-to-date trunk version of gcc, using the command line: .../gfortran -Ofast

Re: How to generate AVX512 instructions now (just to look at them).

2014-01-03 Thread Jakub Jelinek
On Fri, Jan 03, 2014 at 05:04:55PM +0100, Toon Moene wrote: I am trying to figure out how the top-consuming routines in our weather models will be compiled when using AVX512 instructions (and their 32 512 bit registers). I thought an up-to-date trunk version of gcc, using the command line:

Re: How to generate AVX512 instructions now (just to look at them).

2014-01-03 Thread Toon Moene
On 01/03/2014 07:04 PM, Jakub Jelinek wrote: On Fri, Jan 03, 2014 at 05:04:55PM +0100, Toon Moene wrote: I am trying to figure out how the top-consuming routines in our weather models will be compiled when using AVX512 instructions (and their 32 512 bit registers). I thought an up-to-date

Re: How to generate AVX512 instructions now (just to look at them).

2014-01-03 Thread Tim Prince
On 1/3/2014 2:58 PM, Toon Moene wrote: On 01/03/2014 07:04 PM, Jakub Jelinek wrote: On Fri, Jan 03, 2014 at 05:04:55PM +0100, Toon Moene wrote: I am trying to figure out how the top-consuming routines in our weather models will be compiled when using AVX512 instructions (and their 32 512

[Bug fortran/59662] New: [OOP] TBP subroutine call rejected in contained subroutine

2014-01-03 Thread sfilippone at uniroma2 dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59662 Bug ID: 59662 Summary: [OOP] TBP subroutine call rejected in contained subroutine Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal

[Bug target/59663] New: [4.9 Regression] config/darwin.c:3665:1: error: control reaches end of non-void function [-Werror=return-type]

2014-01-03 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59663 Bug ID: 59663 Summary: [4.9 Regression] config/darwin.c:3665:1: error: control reaches end of non-void function [-Werror=return-type] Product: gcc Version: 4.9.0

[Bug fortran/59654] [4.8/4.9 Regression] [OOP] Broken function table with complex OO use case

2014-01-03 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59654 Tobias Burnus burnus at gcc dot gnu.org changed: What|Removed |Added CC||burnus at gcc

[Bug fortran/59662] [4.9 Regression] [OOP] TBP subroutine call rejected in connection with BIND(C)

2014-01-03 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59662 janus at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Known to work|

[Bug tree-optimization/59519] [4.9 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in slpeel_update_phi_nodes_for_guard1, at tree-vect-loop-manip.c:486

2014-01-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59519 --- Comment #8 from Jakub Jelinek jakub at gcc dot gnu.org --- (In reply to bin.cheng from comment #7) (In reply to Jakub Jelinek from comment #6) Created attachment 31562 [details] gcc49-pr59519.patch I wonder if this isn't just a

[Bug bootstrap/57125] Build not SMP safe; fails to build bconfig.h

2014-01-03 Thread vcunat at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57125 Vladimír Čunát vcunat at gmail dot com changed: What|Removed |Added CC||vcunat at gmail

[Bug fortran/59662] [4.9 Regression] [OOP] TBP subroutine call rejected in connection with BIND(C)

2014-01-03 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59662 janus at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug tree-optimization/59519] [4.9 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in slpeel_update_phi_nodes_for_guard1, at tree-vect-loop-manip.c:486

2014-01-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59519 --- Comment #9 from Jakub Jelinek jakub at gcc dot gnu.org --- BTW, the patch can hardly regress anything, it only affects cases that ICEd before the patch.

[Bug middle-end/59630] [4.7/4.8/4.9 Regression] ICE converting the return type of a builtin function

2014-01-03 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59630 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug middle-end/59630] [4.7/4.8/4.9 Regression] ICE converting the return type of a builtin function

2014-01-03 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59630 --- Comment #4 from Richard Biener rguenth at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #2) Started with my r182761 but say: _Bool foo (int x) { _Bool (*f)(int) = __builtin_abs; return f(x); } ICEs at -O2 already since

[Bug tree-optimization/59519] [4.9 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in slpeel_update_phi_nodes_for_guard1, at tree-vect-loop-manip.c:486

2014-01-03 Thread amker.cheng at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59519 --- Comment #10 from bin.cheng amker.cheng at gmail dot com --- (In reply to Jakub Jelinek from comment #9) BTW, the patch can hardly regress anything, it only affects cases that ICEd before the patch. Em, I am worried if vectorization can

[Bug tree-optimization/59519] [4.9 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in slpeel_update_phi_nodes_for_guard1, at tree-vect-loop-manip.c:486

2014-01-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59519 --- Comment #11 from Jakub Jelinek jakub at gcc dot gnu.org --- I've tried even: struct S { int f0; } d; int a[8] = { 0 }, b, c, e, f; void foo (void) { for (; e 1; e++) { for (b = 0; b 7; b++) { c |= (a[b + 1] !=

[Bug c++/58950] [4.9 Regression] Missing statement has no effect

2014-01-03 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58950 --- Comment #11 from Marc Glisse glisse at gcc dot gnu.org --- (In reply to Jason Merrill from comment #10) (In reply to Marc Glisse from comment #7) The __builtin_shuffle part of the patch seems fine. Yes, that looks right. That fixes the

[Bug tree-optimization/59651] [4.9 Regression] Vectorizer failing to spot dependence causes incorrect code generation.

2014-01-03 Thread belagod at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59651 --- Comment #7 from Tejas Belagod belagod at gcc dot gnu.org --- AArch64 regressions came back OK. Thanks!

[Bug tree-optimization/59303] [4.9 Regression] uninit-pred-8_b.c and uninit-pred-9_b.c fail after better optimizations

2014-01-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59303 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug bootstrap/44959] [4.6 Regression] bootstrap failed at Comparing stages 2 and 3

2014-01-03 Thread ro at CeBiTec dot Uni-Bielefeld.DE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44959 --- Comment #44 from ro at CeBiTec dot Uni-Bielefeld.DE ro at CeBiTec dot Uni-Bielefeld.DE --- --- Comment #43 from Hin-Tak Leung htl10 at users dot sourceforge.net --- (In reply to r...@cebitec.uni-bielefeld.de from comment #40) Please try

[Bug c++/59165] gcc looks up begin(), end() for for-range loops for ints in namespace std

2014-01-03 Thread paolo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59165 --- Comment #6 from paolo at gcc dot gnu.org paolo at gcc dot gnu.org --- Author: paolo Date: Fri Jan 3 11:11:31 2014 New Revision: 206313 URL: http://gcc.gnu.org/viewcvs?rev=206313root=gccview=rev Log: /cp 2014-01-03 Paolo Carlini

[Bug c++/59165] gcc looks up begin(), end() for for-range loops for ints in namespace std

2014-01-03 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59165 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug other/59661] documentation: __builtin_FUNCTION / _FILE listed as returning int

2014-01-03 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59661 Marek Polacek mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug fortran/59298] ICE when initialising PARAMETER array of derived-type (containing an array) using array constructor

2014-01-03 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59298 janus at gcc dot gnu.org changed: What|Removed |Added CC||janus at gcc dot gnu.org ---

[Bug fortran/59298] ICE when initialising PARAMETER array of derived-type (containing an array) using array constructor

2014-01-03 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59298 --- Comment #4 from janus at gcc dot gnu.org --- Slightly reduced test case: implicit none type Plane integer :: M(1,1) end type type(Plane), parameter :: planes(1) = [ Plane(1) ] integer:: f(1,1) f =

[Bug c++/53822] spell out typedefs in ambiguous call

2014-01-03 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53822 --- Comment #7 from Manuel López-Ibáñez manu at gcc dot gnu.org --- (In reply to Marc Glisse from comment #6) Probably depends on cases. Sometimes it is good to have the explanation right next to the type, other times it takes up all the space

[Bug target/59625] asm goto and TARGET_FOUR_JUMP_LIMIT

2014-01-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59625 --- Comment #1 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Fri Jan 3 12:22:17 2014 New Revision: 206314 URL: http://gcc.gnu.org/viewcvs?rev=206314root=gccview=rev Log: PR target/59625 * config/i386/i386.c

[Bug fortran/59252] wrong code generation for allocatable character component

2014-01-03 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59252 janus at gcc dot gnu.org changed: What|Removed |Added Keywords||wrong-code CC|

[Bug other/59661] documentation: __builtin_FUNCTION / _FILE listed as returning int

2014-01-03 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59661 --- Comment #2 from Marek Polacek mpolacek at gcc dot gnu.org --- Author: mpolacek Date: Fri Jan 3 12:28:31 2014 New Revision: 206315 URL: http://gcc.gnu.org/viewcvs?rev=206315root=gccview=rev Log: PR other/59661 * doc/extend.texi: Fix

[Bug other/59661] documentation: __builtin_FUNCTION / _FILE listed as returning int

2014-01-03 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59661 Marek Polacek mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug fortran/59252] wrong code generation for allocatable character component

2014-01-03 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59252 --- Comment #3 from janus at gcc dot gnu.org --- -fdump-tree-orginial shows that some code for the initialization of the component 'label' is inserted: { struct branch_plot_results_ppv_type branch_plot_results_ppv_type.0;

[Bug middle-end/56791] [4.8/4.9 Regression] Segmentation fault in stage2 gengenrtl -- Incorrect instruction sequence generated by reload

2014-01-03 Thread bernds at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56791 --- Comment #10 from Bernd Schmidt bernds at gcc dot gnu.org --- (In reply to John David Anglin from comment #9) Any chance the candidate patch can be submitted? I guess this means you've tested it and it works?

[Bug target/59625] asm goto and TARGET_FOUR_JUMP_LIMIT

2014-01-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59625 --- Comment #2 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Fri Jan 3 12:59:42 2014 New Revision: 206316 URL: http://gcc.gnu.org/viewcvs?rev=206316root=gccview=rev Log: PR target/59625 * config/i386/i386.c

[Bug target/59625] asm goto and TARGET_FOUR_JUMP_LIMIT

2014-01-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59625 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug tree-optimization/59519] [4.9 Regression] ICE on valid code at -O3 on x86_64-linux-gnu in slpeel_update_phi_nodes_for_guard1, at tree-vect-loop-manip.c:486

2014-01-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59519 --- Comment #12 from Jakub Jelinek jakub at gcc dot gnu.org --- --target_board=unix/-O3 testing showed no changes (except for the testcases in the patch), on both x86_64-linux and i686-linux (on the former one including ada testing).

[Bug target/59664] New: avx512f-ceil-sfix-vec-2.c and avx512f-floor-sfix-vec-2.c FAIL on Solaris9/x86

2014-01-03 Thread ro at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59664 Bug ID: 59664 Summary: avx512f-ceil-sfix-vec-2.c and avx512f-floor-sfix-vec-2.c FAIL on Solaris9/x86 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity:

[Bug target/59664] avx512f-ceil-sfix-vec-2.c and avx512f-floor-sfix-vec-2.c FAIL on Solaris9/x86

2014-01-03 Thread ro at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59664 --- Comment #1 from Rainer Orth ro at gcc dot gnu.org --- Created attachment 31566 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31566action=edit assembler output with as and -fverbose-asm

[Bug target/59664] avx512f-ceil-sfix-vec-2.c and avx512f-floor-sfix-vec-2.c FAIL on Solaris9/x86

2014-01-03 Thread ro at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59664 Rainer Orth ro at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |4.9.0

[Bug c/57773] -Wpedantic incorrect warning for enum bit-field

2014-01-03 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57773 Marek Polacek mpolacek at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug libstdc++/59665] New: User code can cause ambiguous references to std in libstdc++

2014-01-03 Thread fanael4 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59665 Bug ID: 59665 Summary: User code can cause ambiguous references to std in libstdc++ Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal

[Bug rtl-optimization/59535] [4.9 regression] -Os code size regressions for Thumb1/Thumb2 with LRA

2014-01-03 Thread rearnsha at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59535 --- Comment #15 from Richard Earnshaw rearnsha at gcc dot gnu.org --- Another testcase where the thumb1 code is poor is gcc.c-torture/execute/pr28982b.c With LRA we often get sequences such as: mov r3, sp ldr r2, .L8+16

[Bug tree-optimization/59651] [4.9 Regression] Vectorizer failing to spot dependence causes incorrect code generation.

2014-01-03 Thread meibf at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59651 --- Comment #8 from meibf at gcc dot gnu.org --- Author: meibf Date: Fri Jan 3 15:40:57 2014 New Revision: 206319 URL: http://gcc.gnu.org/viewcvs?rev=206319root=gccview=rev Log: 2014-01-03 Bingfeng Mei b...@broadcom.com PR

[Bug middle-end/56791] [4.8/4.9 Regression] Segmentation fault in stage2 gengenrtl -- Incorrect instruction sequence generated by reload

2014-01-03 Thread dave.anglin at bell dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56791 --- Comment #11 from dave.anglin at bell dot net --- On 3-Jan-14, at 7:46 AM, bernds at gcc dot gnu.org wrote: I guess this means you've tested it and it works? Yes, I have tested it and it works fine. Dave -- John David Anglin

[Bug ipa/59008] [4.9 Regression] ICEs in try_make_edge_direct_simple_call / propagate_controlled_uses

2014-01-03 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59008 --- Comment #5 from Martin Jambor jamborm at gcc dot gnu.org --- IPA-CP is decrementing reference count of parameter 1 instead of parameter 2. That happens because the variable param_index in ipcp_discover_new_direct_edges has type bool instead

[Bug target/59666] New: IBM long double arithmetic results invalid in non-default rounding modes

2014-01-03 Thread jsm28 at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59666 Bug ID: 59666 Summary: IBM long double arithmetic results invalid in non-default rounding modes Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal

[Bug target/59609] [4.9 Regression] LRA generates bad code for libgcc function udivmoddi4 on thumb1 target

2014-01-03 Thread rearnsha at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59609 Richard Earnshaw rearnsha at gcc dot gnu.org changed: What|Removed |Added CC||vmakarov at

[Bug sanitizer/59667] New: ubsan: ICE ubsan_type_descriptor

2014-01-03 Thread larsbj at gullik dot net
Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org This is with gcc --version gcc (GCC) 4.9.0 20140103 (experimental

[Bug rtl-optimization/59652] [4.8 Regression] ICE: in reload_cse_simplify_operands, at postreload.c:411

2014-01-03 Thread danglin at gcc dot gnu.org
--build=hppa-linux-gnu --enable-clocale=gnu --enable-java-gc=boehm --enable-languages=c,c++,objc,fortran,obj-c++,java,ada,lto Thread model: posix gcc version 4.8.3 20140103 (prerelease) [gcc-4_8-branch revision 206321] (GCC) I see the following backtrace when the insn was emitted: Breakpoint 1

[Bug target/59664] avx512f-ceil-sfix-vec-2.c and avx512f-floor-sfix-vec-2.c FAIL on Solaris9/x86

2014-01-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59664 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot

[Bug c++/58567] [4.8/4.9 Regression] ICE with invalid loop variable in template using openmp

2014-01-03 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58567 --- Comment #4 from Tobias Burnus burnus at gcc dot gnu.org --- Author: burnus Date: Fri Jan 3 20:24:50 2014 New Revision: 206322 URL: http://gcc.gnu.org/viewcvs?rev=206322root=gccview=rev Log: 2014-01-03 Tobias Burnus bur...@net-b.de

[Bug c/59668] New: extraneous error messages at -O1, -O2 and -O3 for valid code with string library functions

2014-01-03 Thread su at cs dot ucdavis.edu
--enable-multilib Thread model: posix gcc version 4.9.0 20140103 (experimental) [trunk revision 206321] (GCC) $ $ gcc-trunk -Wall -Wextra -pedantic -std=c99 -c small.c $ $ gcc-trunk -O0 -c small.c $ gcc-trunk -Os -c small.c $ $ gcc-trunk -O1 -c small.c In file included from /usr/include/string.h:637

[Bug c/59668] extraneous error messages at -O1, -O2 and -O3 for valid code with string library functions

2014-01-03 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59668 --- Comment #1 from Marc Glisse glisse at gcc dot gnu.org --- Well, that's a glibc issue, isn't it? Btw, you need to provide the preprocessed code.

[Bug c++/58950] [4.9 Regression] Missing statement has no effect

2014-01-03 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58950 --- Comment #12 from Marc Glisse glisse at gcc dot gnu.org --- Author: glisse Date: Fri Jan 3 21:12:48 2014 New Revision: 206325 URL: http://gcc.gnu.org/viewcvs?rev=206325root=gccview=rev Log: 2014-01-03 Marc Glisse marc.gli...@inria.fr

[Bug middle-end/59669] New: ICE: SIGSEGV with #pragma omp declare simd linear

2014-01-03 Thread zsojka at seznam dot cz
model: posix gcc version 4.9.0 20140103 (experimental) (GCC) Tested revisions: r206310 - crash 4.8 - ignoring #pragma omp declare

[Bug c++/58950] Missing statement has no effect

2014-01-03 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58950 Marc Glisse glisse at gcc dot gnu.org changed: What|Removed |Added Summary|[4.9 Regression] Missing|Missing statement

[Bug c/59668] extraneous error messages at -O1, -O2 and -O3 for valid code with string library functions

2014-01-03 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59668 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug ada/58151] conflict of writable function parameter in construct with arbitrary order of evaluation is often a spurious error

2014-01-03 Thread p-kell at live dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58151 Patrick Kelly p-kell at live dot com changed: What|Removed |Added CC||p-kell at live dot

[Bug c/59668] extraneous error messages at -O1, -O2 and -O3 for valid code with string library functions

2014-01-03 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59668 --- Comment #3 from Zhendong Su su at cs dot ucdavis.edu --- (In reply to Andrew Pinski from comment #2) Actually this is neither a bug in GCC or glibc. In C, strcmp can be defined as a macro and that is what you are getting a macro. Huh,

[Bug middle-end/59670] New: ICE: expected gimple_call(error_mark), have gimple_assign(plus_expr) in gimple_call_internal_p, at gimple.h:2432

2014-01-03 Thread zsojka at seznam dot cz
//configure --enable-checking=yes,rtl,df --enable-languages=c,c++,lto,fortran --prefix=/mnt/svn/gcc-trunk/binary-206310-lto-fortran-checking-yes-rtl-df/ --without-cloog --without-ppl Thread model: posix gcc version 4.9.0 20140103 (experimental) (GCC) Tested revisions: r206310 - crash 4.8 - ignoring

[Bug ada/59671] New: Improper Ada behavior under -gnat2012

2014-01-03 Thread p-kell at live dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59671 Bug ID: 59671 Summary: Improper Ada behavior under -gnat2012 Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: ada

[Bug c/59668] extraneous error messages at -O1, -O2 and -O3 for valid code with string library functions

2014-01-03 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59668 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Resolution|INVALID |DUPLICATE ---

[Bug c/32449] declaring “strcmp()” as an extern function with inclusion of “string.h” is causing compilation error

2014-01-03 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32449 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added CC||su at cs dot

[Bug c/59668] extraneous error messages at -O1, -O2 and -O3 for valid code with string library functions

2014-01-03 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59668 --- Comment #5 from Zhendong Su su at cs dot ucdavis.edu --- Because glibc decides only to implement the macro at -O and above but not when optimizing for size. I see; thanks Andrew. BTW, is strcmp the only one like this, or there are others?

[Bug c/59668] extraneous error messages at -O1, -O2 and -O3 for valid code with string library functions

2014-01-03 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59668 --- Comment #6 from Andrew Pinski pinskia at gcc dot gnu.org --- (In reply to Zhendong Su from comment #5) BTW, is strcmp the only one like this, or there are others? Almost (if not all) all standard C functions are like this.

[Bug c/59668] extraneous error messages at -O1, -O2 and -O3 for valid code with string library functions

2014-01-03 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59668 --- Comment #7 from Andreas Schwab sch...@linux-m68k.org --- 7.1.3 Reserved identifiers

[Bug target/59672] New: Add -m16 support for x86

2014-01-03 Thread hpa at zytor dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59672 Bug ID: 59672 Summary: Add -m16 support for x86 Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: target

[Bug target/59672] Add -m16 support for x86

2014-01-03 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59672 --- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org --- Note GCC does not even support real 16bit code for x86. So pretending GCC's output is 16bit code is a joke. Why can't you just write the 16bit binary support in assembly for the

[Bug target/59672] Add -m16 support for x86

2014-01-03 Thread hpa at zytor dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59672 --- Comment #2 from H. Peter Anvin hpa at zytor dot com --- It is much cleaner to have it in C. We converted the assembly code to C back in 2007 and it has been much easier to maintain ever since. It works fine, thankyouverymuch; it isn't

[Bug rtl-optimization/50180] insn does not satisfy constraints for 444.namd when generating profile data

2014-01-03 Thread wschmidt at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50180 Bill Schmidt wschmidt at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED

[Bug target/50181] insn does not satisfy constraints for 481.wrf when generating profile data

2014-01-03 Thread wschmidt at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50181 Bill Schmidt wschmidt at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/59673] New: wrong specialization used when a partial specialization of a member template is explicitly specialized

2014-01-03 Thread richard-gccbugzilla at metafoo dot co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59673 Bug ID: 59673 Summary: wrong specialization used when a partial specialization of a member template is explicitly specialized Product: gcc Version: 4.9.0

[Bug middle-end/36109] GET_MODE_SIZE is inefficient for constants

2014-01-03 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36109 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Keywords||patch

[Bug middle-end/14840] fold tree_code_type[CST] and tree_code_length[CST] in GCC itself

2014-01-03 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14840 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|RESOLVED|NEW

[Bug c/59674] New: On m68k and vax variables stack variables with MAX_STACK_ALIGNMENT make ssp fail

2014-01-03 Thread christos at zoulas dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59674 Bug ID: 59674 Summary: On m68k and vax variables stack variables with MAX_STACK_ALIGNMENT make ssp fail Product: gcc Version: unknown Status: UNCONFIRMED

[Bug fortran/59252] wrong code generation for allocatable character component

2014-01-03 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59252 janus at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[PATCH] Fix devirtualization ICE (PR tree-optimization/59622, take 2)

2014-01-03 Thread Jakub Jelinek
On Tue, Dec 31, 2013 at 11:30:12AM +0100, Richard Biener wrote: Meanwhile your patch is ok. As discussed in the PR, the patch wasn't sufficient, __cxa_pure_virtual can appear in the vtable and it has pretty much the same properties as __builtin_unreachable (void return value, no arguments,

[PATCH] Don't count asm goto for 4 branch limit optimization (PR target/59625)

2014-01-03 Thread Jakub Jelinek
Hi! Linus complained about padding inserted in between asm goto. In 4.8 even -mtune=generic performs ix86_avoid_jump_mispredicts, in 4.9 only e.g. -mtune=atom and others, but not generic. The issue is that assuming every asm goto must contain a jump is too pessimistic, often asm goto (may)

[PATCH] Introduce MODE_SIZE mode attribute

2014-01-03 Thread Jakub Jelinek
Hi! I've noticed that especially with the AVX512F introduction we use GET_MODE_SIZE (MODEmode) quite heavily in the i386 *.md files, and the problem with that is GET_MODE_SIZE isn't a compile time constant, needs to read mode_size array (non-const) at runtime. This patch attempts to decrease the

[PATCH] i?86 unaligned/aligned load improvement for AVX512F

2014-01-03 Thread Jakub Jelinek
Hi! This is an attempt to port my recent http://gcc.gnu.org/viewcvs?rev=204219root=gccview=rev http://gcc.gnu.org/viewcvs?rev=205663root=gccview=rev http://gcc.gnu.org/viewcvs?rev=206090root=gccview=rev changes also to AVX512F. The motivation is to get: #include immintrin.h __m512i foo (void

Re: [PATCH] Introduce MODE_SIZE mode attribute

2014-01-03 Thread Uros Bizjak
On Fri, Jan 3, 2014 at 9:48 AM, Jakub Jelinek ja...@redhat.com wrote: I've noticed that especially with the AVX512F introduction we use GET_MODE_SIZE (MODEmode) quite heavily in the i386 *.md files, and the problem with that is GET_MODE_SIZE isn't a compile time constant, needs to read

Re: [PATCH] Fix devirtualization ICE (PR tree-optimization/59622, take 2)

2014-01-03 Thread Richard Biener
Jakub Jelinek ja...@redhat.com wrote: On Tue, Dec 31, 2013 at 11:30:12AM +0100, Richard Biener wrote: Meanwhile your patch is ok. As discussed in the PR, the patch wasn't sufficient, __cxa_pure_virtual can appear in the vtable and it has pretty much the same properties as __builtin_unreachable

Re: [Patch, Fortran] PR 59023: [4.9 regression] ICE in gfc_search_interface with BIND(C)

2014-01-03 Thread Janus Weil
In addition this patch fixes PR 59662. Also: Ping! Cheers, Janus 2013/12/31 Janus Weil ja...@gcc.gnu.org: Hi all, ... and the reg-bashing continues: Here is a small patch to fix a bind(c) problem. It essentially prevents 'resolve_global_procedure' to be applied to bind(c) procedures.

Re: [PATCH] Fix devirtualization ICE (PR tree-optimization/59622, take 2)

2014-01-03 Thread Jakub Jelinek
On Fri, Jan 03, 2014 at 10:26:44AM +0100, Richard Biener wrote: Jakub Jelinek ja...@redhat.com wrote: On Tue, Dec 31, 2013 at 11:30:12AM +0100, Richard Biener wrote: Meanwhile your patch is ok. As discussed in the PR, the patch wasn't sufficient, __cxa_pure_virtual can appear in the vtable

Re: [PATCH] Fix devirtualization ICE (PR tree-optimization/59622, take 2)

2014-01-03 Thread Richard Biener
On Fri, 3 Jan 2014, Jakub Jelinek wrote: On Fri, Jan 03, 2014 at 10:26:44AM +0100, Richard Biener wrote: Jakub Jelinek ja...@redhat.com wrote: On Tue, Dec 31, 2013 at 11:30:12AM +0100, Richard Biener wrote: Meanwhile your patch is ok. As discussed in the PR, the patch wasn't

Re: [PATCH] Fix devirtualization ICE (PR tree-optimization/59622, take 2)

2014-01-03 Thread Jakub Jelinek
On Fri, Jan 03, 2014 at 11:01:13AM +0100, Richard Biener wrote: Well, see PR59630. The question is if having to handle it everywhere is worth it. Well, this case happens because we go back to GENERIC which doesn't have this feature. So everywhere is somewhat a broad stmt. It's easy to

Re: [PATCH] Fix devirtualization ICE (PR tree-optimization/59622, take 2)

2014-01-03 Thread Richard Biener
On Fri, 3 Jan 2014, Jakub Jelinek wrote: On Fri, Jan 03, 2014 at 11:01:13AM +0100, Richard Biener wrote: Well, see PR59630. The question is if having to handle it everywhere is worth it. Well, this case happens because we go back to GENERIC which doesn't have this feature. So

Re: [PATCH] Fix devirtualization ICE (PR tree-optimization/59622, take 2)

2014-01-03 Thread Jakub Jelinek
On Fri, Jan 03, 2014 at 11:15:32AM +0100, Richard Biener wrote: so if there is a decl then use its type signature, otherwise (indirect calls) use the caller signature (and hope it matches the callee...). That it later falls back to looking at DECL_ARGUMENTS is odd (probably a FE issue where

Re: [PATCH] Fix devirtualization ICE (PR tree-optimization/59622, take 2)

2014-01-03 Thread Richard Biener
On Fri, 3 Jan 2014, Jakub Jelinek wrote: On Fri, Jan 03, 2014 at 11:15:32AM +0100, Richard Biener wrote: so if there is a decl then use its type signature, otherwise (indirect calls) use the caller signature (and hope it matches the callee...). That it later falls back to looking at

Re: [PATCH] Fix devirtualization ICE (PR tree-optimization/59622, take 2)

2014-01-03 Thread Richard Biener
On Fri, 3 Jan 2014, Richard Biener wrote: On Fri, 3 Jan 2014, Jakub Jelinek wrote: On Fri, Jan 03, 2014 at 11:15:32AM +0100, Richard Biener wrote: so if there is a decl then use its type signature, otherwise (indirect calls) use the caller signature (and hope it matches the

  1   2   >