[Bug c/80378] Extend alloc_size attribute for better Linux kernel checking

2017-04-09 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80378 --- Comment #1 from Andi Kleen --- Small correction: argument 4 would need to be a constant for shifted by.

[Bug lto/80379] New: Redundant note: code may be misoptimized unless -fno-strict-aliasing is used

2017-04-09 Thread andi-gcc at firstfloor dot org
: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org Target Milestone: --- I get an extra note: code may be misoptimized unless -fno-strict-aliasing is used note for type mismatches in LTO

[Bug c/80378] New: Extend alloc_size attribute for better Linux kernel checking

2017-04-09 Thread andi-gcc at firstfloor dot org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org Target Milestone: --- I've been adding alloc_size attributes to the Linux kernel allocators. However there are some allocator patterns that can currently

[Bug lto/60016] gcc-nm does not report static symbols

2016-09-12 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60016 --- Comment #2 from Andi Kleen --- This is needed for example to generate backtraces, if the symbol table should be built in instead of read from the binary. The Linux kernel cannot read its own binary, so the symbol table has to built in.

[Bug gcov-profile/71672] New: inlining indirect calls does not work with autofdo

2016-06-27 Thread andi-gcc at firstfloor dot org
: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org Target Milestone: --- The current mainline version of autofdo doesn't inline indirect calls based on profiling data. I instrumented a bootstrap and it never triggers. gcc.dg/tree

[Bug target/71659] New: _xgetbv intrinsic missing

2016-06-25 Thread andi-gcc at firstfloor dot org
Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org Target Milestone: --- icc and microsoft have a _xgetbv intrinsic for the XGETBV instruction, which is needed to check if AVX or MPX are supported by the kernel. gcc is missing an intrinsic for that, so

[Bug c/70618] New: better error messages for missing/too many arguments

2016-04-10 Thread andi-gcc at firstfloor dot org
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org Target Milestone: --- When doing API refactorings it is reasonable common to have too many or not enough arguments in function calls. The existing errors in gcc/g++ are not very good

[Bug tree-optimization/70427] autofdo bootstrap generates wrong code

2016-03-27 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70427 --- Comment #3 from Andi Kleen --- Analyzing the code more it looks like the compiler generates it correctly, the edge returned should not be 0 here.

[Bug tree-optimization/70427] autofdo bootstrap generates wrong code

2016-03-27 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70427 --- Comment #2 from Andi Kleen --- Created attachment 38110 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38110=edit somewhat reduced input file, only single function

[Bug tree-optimization/70427] autofdo bootstrap generates wrong code

2016-03-27 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70427 --- Comment #1 from Andi Kleen --- Created attachment 38109 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38109=edit ipa-profile input Here's the source of the miscompiled file from the compiler cc1plus -O2 ipa-profile.i -S

[Bug tree-optimization/70427] New: autofdo bootstrap generates wrong code

2016-03-27 Thread andi-gcc at firstfloor dot org
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org Target Milestone: --- I've been working on building gcc with an autofdo bootstrap. Currently I always run into an crash while rebuilding tree.c with the stage2 compiler and the autofdo

[Bug c/28901] -Wunused-variable ignores unused const initialised variables

2015-11-30 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28901 --- Comment #17 from Andi Kleen --- There were a few false or useless ones (e.g. related to macros and specific build configs). I didn't look through them all, but various were semi legitimate, but also very minor (small) so fixing it won't

[Bug c/28901] -Wunused-variable ignores unused const initialised variables

2015-11-29 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28901 Andi Kleen changed: What|Removed |Added CC||andi-gcc at firstfloor dot org --- Comment

[Bug target/68602] New: i386: -mtune/arch options not all output by -v --help

2015-11-28 Thread andi-gcc at firstfloor dot org
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org Target Milestone: --- gcc -v --help does not output all the possible options for -mtune=/-march= For example corei7-avx is missing for arch, which is Sandy Bridge. tune is also mising

[Bug lto/66229] LTO fails with -fauto-profile on mcf

2015-11-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66229 --- Comment #2 from Andi Kleen --- Some analysis of the problem: At the time cc1 is streaming out profile_data it is not set to anything in autofdo. So the LTO files contain all 0 profile data, which later causes the ICE here. Seems to be some

[Bug bootstrap/60946] Current 4.9 branch does not boot strap on FC20 with systemtap-devel installed

2015-09-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60946 Andi Kleen changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug bootstrap/60946] Current 4.9 branch does not boot strap on FC20 with systemtap-devel installed

2015-09-25 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60946 --- Comment #9 from Andi Kleen --- Created attachment 36391 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36391=edit workaround This workaround fixes it. Disable -gc-section for libstdc++. It seems like a linker bug. I opened a binutils

[Bug lto/50676] Partitioning may fail with presence of static variables referring to function labels

2015-07-18 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50676 --- Comment #6 from Andi Kleen andi-gcc at firstfloor dot org --- The patch doesn't seem to be checked in yet. Is there a reason for that?

[Bug rtl-optimization/66890] function splitting only works with profile feedback

2015-07-17 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66890 --- Comment #4 from Andi Kleen andi-gcc at firstfloor dot org --- Created attachment 36008 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=36008action=edit Updated patch with documentation and param I updated the patch with proper

[Bug rtl-optimization/66890] function splitting only works with profile feedback

2015-07-16 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66890 --- Comment #3 from Andi Kleen andi-gcc at firstfloor dot org --- I suspect the patch may be too simple because it could get stuck in unlikely, but high frequency edges in the cold area. Perhaps need to adapt more of the code of the non

[Bug rtl-optimization/66890] function splitting only works with profile feedback

2015-07-16 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66890 --- Comment #2 from Andi Kleen andi-gcc at firstfloor dot org --- Created attachment 35993 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35993action=edit Potential patch This patch fixes the problem for my simple test case. It adds a fall

[Bug rtl-optimization/66890] function splitting only works with profile feedback

2015-07-15 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66890 --- Comment #1 from Andi Kleen andi-gcc at firstfloor dot org --- The problem seems to be that bb-reorder.c:find_rarely_executed_basic_blocks_and_crossing_edges returns no edges without profile feedback, which prevents generation of a section

[Bug rtl-optimization/66890] New: function splitting only works with profile feedback

2015-07-15 Thread andi-gcc at firstfloor dot org
Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org Target Milestone: --- Consider this simple example: volatile int count; int main() { int i; for (i = 0; i 10; i++) { if (i == 999

[Bug lto/61635] LTO partitioner does not handle label in statics

2015-03-29 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61635 --- Comment #7 from Andi Kleen andi-gcc at firstfloor dot org --- Still happens with current trunk and with newer LTO Linux kernels (4.0-rc*)

[Bug bootstrap/60946] Current 4.9 branch does not boot strap on FC20 with systemtap-devel installed

2015-03-29 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60946 --- Comment #8 from Andi Kleen andi-gcc at firstfloor dot org --- I still get that one with current trunk on my fedora 21 system.

[Bug c/65620] New: Incorrect warning for !! with -Wlogical-not-parentheses

2015-03-29 Thread andi-gcc at firstfloor dot org
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org Created attachment 35172 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35172action=edit test case When building the linux 4.0-rc5 kernel with 5.0 there are several

[Bug bootstrap/65621] New: boot strap with checking enabled ICEs

2015-03-29 Thread andi-gcc at firstfloor dot org
Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org target: x86_64-linux ../../../../gcc/libstdc++-v3/libsupc++/tinfo.cc:82:1: internal compiler error: in mark_functions_to_output, at cgraphunit.c:1307 } ^ 0xb25f0b mark_functions_to_output

[Bug bootstrap/65621] boot strap with checking enabled ICEs

2015-03-29 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65621 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug ipa/64963] IPA Cloning/Splitting does not copy function section attributes resulting in kernel miscompilation

2015-02-10 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64963 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added CC||andi-gcc

[Bug ipa/64963] [5 Regression] IPA Cloning/Splitting does not copy function section attributes resulting in kernel miscompilation

2015-02-10 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64963 --- Comment #10 from Andi Kleen andi-gcc at firstfloor dot org --- Yes it has to be fixed. For example with the kernel __kprobes attribute it could cause a real bug (__kprobes marks function that cannot be safely instrumented) We shouldn't

[Bug tree-optimization/64130] New: vrp: handle non zero constant divided by range cannot be zero.

2014-11-30 Thread andi-gcc at firstfloor dot org
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org The following two functions should always be optimized to return 0 because x 0, x / a cannot be 0. But VRP misses this case for unknown

[Bug tree-optimization/64130] vrp: handle non zero constant divided by range cannot be zero.

2014-11-30 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64130 --- Comment #3 from Andi Kleen andi-gcc at firstfloor dot org --- You're right. I actually meant x = maxval(typeof(a)), x / a cannot be 0. Corrected test case (assuming 64bit target): #include limits.h int fsigned(int a) { return

[Bug tree-optimization/63844] [4.8/4.9/5 Regression] open mp parallelization prevents vectorization

2014-11-18 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63844 --- Comment #12 from Andi Kleen andi-gcc at firstfloor dot org --- Yes should have been omp parallel for

[Bug tree-optimization/63844] [4.8/4.9/5 Regression] open mp parallelization prevents vectorization

2014-11-18 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63844 --- Comment #13 from Andi Kleen andi-gcc at firstfloor dot org --- I think aggregate IPA-CP does that, IPA-SRA cannot as the function has its address taken. Perhaps that case (only passing address to gomp runtime) could be special cased

[Bug bootstrap/63933] Build stage1 with -O2 during bootstrap if host compiler is a recent gcc version

2014-11-18 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63933 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added CC||andi-gcc

[Bug tree-optimization/63844] open mp parallelization prevents vectorization

2014-11-17 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63844 --- Comment #2 from Andi Kleen andi-gcc at firstfloor dot org --- Regression, doesn't happen on 4.8

[Bug tree-optimization/63844] [4.8/4.9/5 Regression] open mp parallelization prevents vectorization

2014-11-17 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63844 --- Comment #4 from Andi Kleen andi-gcc at firstfloor dot org --- I had a typo in the test case (remove += to make the loops identical) #define N 1000 int a[N], b[N], c[N]; main() { int i; #pragma omp parallel num_threads(4

[Bug tree-optimization/63844] New: open mp parallelization prevents vectorization

2014-11-12 Thread andi-gcc at firstfloor dot org
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org #define N 1000 int a[N], b[N], c[N]; main() { int i; #pragma omp parallel num_threads(4) for (i = 0; i N; i++) { a[i] = b[i] + c[i

[Bug c/60804] Another CilkPlus ICE in gimplify_expr, at gimplify.c:8335

2014-11-11 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60804 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug target/63672] New: xbegin/xend/xabort missing memory barriers

2014-10-28 Thread andi-gcc at firstfloor dot org
Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org Created attachment 33835 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33835action=edit proposed patch adding barriers No test case currently, but we got a report that the builtins for x86

[Bug middle-end/63556] New: gcc should dedup string postfixes

2014-10-16 Thread andi-gcc at firstfloor dot org
Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org With this code: extern void func(char *a, char *b); void f(void) { func(abc, xabc); func(abc, abc); } we get: .LC0: .string xabc .LC1: .string abc So the abcs get

[Bug middle-end/63556] gcc should dedup string postfixes

2014-10-16 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63556 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added Severity|normal |enhancement

[Bug c/63543] New: incomplete type error should suppress duplicates

2014-10-15 Thread andi-gcc at firstfloor dot org
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org For a test case like this struct undefined; int f(struct undefined *f) { int x = f-a; return x + f-a + f-b; } tmissing-type.c: In function 'f': tmissing-type.c:5:11: error

[Bug lto/61969] [4.8/4.9/5 Regression] wrong code by LTO on i?86-linux-gnu (affecting trunk, 4.9.x, and 4.8.x)

2014-10-07 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61969 --- Comment #6 from Andi Kleen andi-gcc at firstfloor dot org --- I looked at this a bit more. It's definitely the nrv pass that causes the problem. When I disable it in the source code the 32bit version compiles correctly. I also tried

[Bug lto/61969] [4.8/4.9/5 Regression] wrong code by LTO on i?86-linux-gnu (affecting trunk, 4.9.x, and 4.8.x)

2014-10-07 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61969 --- Comment #9 from Andi Kleen andi-gcc at firstfloor dot org --- Patch fixes the test case.

[Bug c/63462] [RFC] gcc should prevent from overwriting source file

2014-10-06 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63462 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added CC||andi-gcc

[Bug libstdc++/63466] New: sstream is very slow

2014-10-06 Thread andi-gcc at firstfloor dot org
: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org sstream is very slow. Comparing two simple programs that parse a stream with C and with sstream. The sstream version is an order of magnitude slower. gcc version 4.9.1 20140423 (prerelease) (GCC) # C++ % time

[Bug tree-optimization/63467] New: should have asm statement that does not prevent vectorization

2014-10-06 Thread andi-gcc at firstfloor dot org
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org Currently any inline asm statement in a loop prevents vectorization, like #define N 100 int a[N], b[N], c[N]; main() { int i

[Bug tree-optimization/63467] should have asm statement that does not prevent vectorization

2014-10-06 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63467 --- Comment #2 from Andi Kleen andi-gcc at firstfloor dot org --- It's the same with asm( :::); At least the vectorizer bombs out on any asm.

[Bug tree-optimization/63467] should have asm statement that does not prevent vectorization

2014-10-06 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63467 --- Comment #6 from Andi Kleen andi-gcc at firstfloor dot org --- For the marker case it's enough if it just stays in the same position in the basic block and does get duplicated if the BB gets too. That's somewhat special semantics, that is why

[Bug libstdc++/63466] sstream is very slow

2014-10-06 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63466 --- Comment #2 from Andi Kleen andi-gcc at firstfloor dot org --- Looking at the profile there's plenty of room for optimization. e.g. not using getc/ungetc, but directly accessing the buffer, or maybe even some kind of template specialization

[Bug c/61898] Variadic functions accept va_list without warning

2014-10-04 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61898 --- Comment #4 from Andi Kleen andi-gcc at firstfloor dot org --- The patch has several issues (making it currently fail bootstrap): - it warns for vfprintf too (fixed) - on i386 it gets confused between va_list * and char *, so something like

[Bug c/63450] Optimizing -O3 generates rep ret on an almost empty function

2014-10-03 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63450 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added CC||andi-gcc

[Bug c/61898] Variadic functions accept va_list without warning

2014-09-30 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61898 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added CC||andi-gcc

[Bug lto/61969] [4.8/4.9/5 Regression] wrong code by LTO on i?86-linux-gnu (affecting trunk, 4.9.x, and 4.8.x)

2014-09-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61969 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added CC||andi-gcc

[Bug lto/61969] [4.8/4.9/5 Regression] wrong code by LTO on i?86-linux-gnu (affecting trunk, 4.9.x, and 4.8.x)

2014-09-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61969 --- Comment #4 from Andi Kleen andi-gcc at firstfloor dot org --- The problem is when returning a struct from func_52: const struct S0 func_52 (uint32_t p_53) { const struct S0 l_55 = { 4, 40290, 10, 4 }; return l_55; } The main code

[Bug lto/61969] [4.8/4.9/5 Regression] wrong code by LTO on i?86-linux-gnu (affecting trunk, 4.9.x, and 4.8.x)

2014-09-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61969 --- Comment #5 from Andi Kleen andi-gcc at firstfloor dot org --- func_52 disappears during/after nrv: in 173t.nrv: ;; Function func_52 (func_52, funcdef_no=86, decl_uid=2858, cgraph_uid=54, symbol_order=1152) func_52 (uint32_t p_53

[Bug rtl-optimization/61605] Potential optimization: Keep unclobbered argument registers live across function calls

2014-09-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61605 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added CC||andi-gcc

[Bug rtl-optimization/61605] Potential optimization: Keep unclobbered argument registers live across function calls

2014-09-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61605 --- Comment #3 from Andi Kleen andi-gcc at firstfloor dot org --- It was supposed to be enabled with Date: Fri May 30 11:39:49 2014 + -fuse-caller-save - Enable for i386 2014-05-30 Tom de Vries t...@codesourcery.com

[Bug rtl-optimization/63384] selective scheduling on x86 takes very long

2014-09-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63384 --- Comment #3 from Andi Kleen andi-gcc at firstfloor dot org --- It loops (forever?) on this in sched2: Scheduling on fences: (uid:28;seqno:7;) Fence 28[2] has not changed Scheduling on fences: (uid:28;seqno:7;) Fence 28[2] has not changed

[Bug tree-optimization/36602] memset should be optimized into an empty CONSTRUCTOR

2014-09-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36602 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added CC||andi-gcc

[Bug rtl-optimization/63384] scheduler loops on endless fence list with -fselective-scheduling2 on x86

2014-09-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63384 --- Comment #4 from Andi Kleen andi-gcc at firstfloor dot org --- It loops forever in this loop in sel_sched_region_2 while (fences) { int min_seqno, max_seqno; ilist_t scheduled_insns = NULL; ilist_t

[Bug middle-end/61848] [5 Regression] a previous declaration causes the section attribute to be lost

2014-09-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848 --- Comment #16 from Andi Kleen andi-gcc at firstfloor dot org --- Can Alan's patch be submitted please? I always need to apply it now before compiling a kernel.

[Bug middle-end/61848] [5 Regression] a previous declaration causes the section attribute to be lost

2014-09-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848 --- Comment #20 from Andi Kleen andi-gcc at firstfloor dot org --- So the only problem was the missing test case, which you supplied?

[Bug middle-end/63404] New: gcc 5 miscompiles linux block layer

2014-09-28 Thread andi-gcc at firstfloor dot org
Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org When I boot a current Linux mainline kernel compiled with mainline gcc and the section fix patch applied I always get a crash at boot in the block layer. gcc version 5.0.0 20140926 (experimental

[Bug middle-end/63404] gcc 5 miscompiles linux block layer

2014-09-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63404 --- Comment #1 from Andi Kleen andi-gcc at firstfloor dot org --- Created attachment 33607 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33607action=edit not quite yet runnable test case In the real execution blk_flush_complete_seq always

[Bug target/63404] gcc 5 miscompiles linux block layer

2014-09-28 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63404 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added Component|middle-end |target

[Bug rtl-optimization/63384] ICE in moveup_expr_chached-sel_bb_head-bb_node with special options

2014-09-27 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63384 --- Comment #1 from Andi Kleen andi-gcc at firstfloor dot org --- With a newer compiler version gcc version 5.0.0 20140926 (experimental) (GCC) the test case doesn't crash anymore, but just runs very very long. I killed it after 20s

[Bug rtl-optimization/63384] selective scheduling on x86 takes very long

2014-09-27 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63384 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added Attachment #33585|0 |1

[Bug target/63382] New: gcc 5 breaks linux early bootup in QEMU

2014-09-26 Thread andi-gcc at firstfloor dot org
Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org No debug so far. But a gcc 5 compiled x86 Linux kernel cannot boot in qemu/KVM with -kernel bzImage. qemu always resets and loops directly after starting to execute the kernel image. The same kernel

[Bug middle-end/61848] [5 Regression] a previous declaration causes the section attribute to be lost

2014-09-26 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61848 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added CC||andi-gcc

[Bug target/63382] gcc 5 breaks linux early bootup in QEMU

2014-09-26 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63382 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug lto/44463] whopr does not work with weak functions

2014-09-26 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44463 --- Comment #15 from Andi Kleen andi-gcc at firstfloor dot org --- I don't have any aliasing problems currently, but I haven't tried to take out the workarounds. But it's ok for me to close.

[Bug rtl-optimization/63384] New: ICE in moveup_expr_chached-sel_bb_head-bb_node with special options

2014-09-26 Thread andi-gcc at firstfloor dot org
Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org Created attachment 33585 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33585action=edit test case (non minimized) The following

[Bug middle-end/46176] profile feedback causes 20% linux kernel binary growth

2014-09-26 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46176 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug middle-end/25957] -fstack-protector code on i386/x86_64 can be improved.

2014-09-26 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25957 --- Comment #12 from Andi Kleen andi-gcc at firstfloor dot org --- Problem is still there in gcc50 (GCC) 4.9.0 20130617 (experimental) The stack protector edge should be cold and alignment disabled.

[Bug middle-end/60469] simple cilk plus program ICEs

2014-09-26 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60469 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug target/45475] target attribute use in libcpp breaks LTO bootstrap

2014-09-26 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug target/50302] inefficient float-double conversion in AVX with -mtune=generic

2014-09-26 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50302 --- Comment #5 from Andi Kleen andi-gcc at firstfloor dot org --- Problem is still there on gcc version 4.8.3 20140624 (Red Hat 4.8.3-1) (GCC)

[Bug target/50302] inefficient float-double conversion in AVX with -mtune=generic

2014-09-26 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50302 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug c++/63372] New: -fshort-double causes stor-layout ICE

2014-09-25 Thread andi-gcc at firstfloor dot org
++ Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org Created attachment 33568 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33568action=edit test case This came up while running the opentuner gccflags, which automatically searches for better

[Bug c++/63372] -fshort-double causes stor-layout ICE

2014-09-25 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63372 --- Comment #2 from Andi Kleen andi-gcc at firstfloor dot org --- Actually don't even need the test case, the error happens with an empty file too.

[Bug target/60410] [4.8/4.9/5 Regression] -fshort-double ICEs x86_64

2014-09-25 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60410 --- Comment #9 from Andi Kleen andi-gcc at firstfloor dot org --- Should we just disable the option? If it hasn't worked since 4.5 probably noone needs it.

[Bug c/63344] [5 Regression] Linux (makeallyes config) compilation error: error: apic_numachip causes a section type conflict with numachip_system

2014-09-24 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63344 --- Comment #5 from Andi Kleen andi-gcc at firstfloor dot org --- I posted a patch here http://permalink.gmane.org/gmane.linux.kernel/1793662 BTW actually I don't agree that the bug is valid. We should probably relax the LTO checking to match

[Bug c/63344] [5 Regression] Linux (makeallyes config) compilation error: error: apic_numachip causes a section type conflict with numachip_system

2014-09-23 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63344 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added CC||andi-gcc

[Bug bootstrap/63253] boot strap failure due to ODR warnings

2014-09-13 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63253 --- Comment #2 from Andi Kleen andi-gcc at firstfloor dot org --- I still need to revert this commit to be able to bootstrap. With that it works. commit d585ba22a6b4250b0d819d3d7da72f7dd37e2981 Author: hubicka hubicka@138bc75d-0d04-0410-961f

[Bug bootstrap/63235] building fails with --disable-bootstrap

2014-09-13 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63235 --- Comment #11 from Andi Kleen andi-gcc at firstfloor dot org --- Actually I now get similar errors when doing a standard (LTO) boot strap and running the test suite. Several tests in the test suite fail with the same ICE. That's surprising, I

[Bug bootstrap/63235] building fails with --disable-bootstrap

2014-09-12 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63235 --- Comment #5 from Andi Kleen andi-gcc at firstfloor dot org --- Created attachment 33482 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33482action=edit use ifdef instead of builtin_cpu_supports This patch fixes the problem for me. Just

[Bug bootstrap/63235] building fails with --disable-bootstrap

2014-09-12 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63235 --- Comment #6 from Andi Kleen andi-gcc at firstfloor dot org --- Created attachment 33483 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33483action=edit Preprocessed file from the cilk runtime library I'm not sure it'll help you because

[Bug bootstrap/63235] building fails with --disable-bootstrap

2014-09-12 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63235 --- Comment #8 from Andi Kleen andi-gcc at firstfloor dot org --- Yes it doesn't happen when compiling with 4.8 branch tip. So has been fixed. Anyways i'm still going to submit the patch to make the opensuse 13.1 build work again. I don't think

[Bug bootstrap/63235] building fails with --disable-bootstrap

2014-09-12 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63235 --- Comment #10 from Andi Kleen andi-gcc at firstfloor dot org --- Ok fair enough. Can do the runtime check in the else of the ifdef then. Then at least x86_64 or 32bit with SSE would work.

[Bug bootstrap/63253] New: boot strap failure due to ODR warnings

2014-09-12 Thread andi-gcc at firstfloor dot org
Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org I suppose it's Honza's commit commit b99d67c130c18dc99bc123dcf3fb9b06784892db Author: gccadmin gccadmin@138bc75d-0d04-0410-961f-82ee72b054a4 Date: Fri Sep 12 00:16:51 2014 + Daily bump

[Bug c/63236] New: building fails with --disable-bootstrap

2014-09-11 Thread andi-gcc at firstfloor dot org
Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org When I build with --disable-bootstrap i now always get Host compiler gcc version 4.8.1 20130909 [gcc-4_8-branch revision 202388] (SUSE Linux) Is the new C++ tree code getting miscompiled? libtool

[Bug c/63235] New: building fails with --disable-bootstrap

2014-09-11 Thread andi-gcc at firstfloor dot org
Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org When I build with --disable-bootstrap i now always get Host compiler gcc version 4.8.1 20130909 [gcc-4_8-branch revision 202388] (SUSE Linux) Is the new C++ tree code getting miscompiled? libtool

[Bug tree-optimization/63202] tree vectorizer does not make use of alignment information from VRP/CCP

2014-09-08 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63202 --- Comment #3 from Andi Kleen andi-gcc at firstfloor dot org --- I'm not sure rewriting the pattern to assume_aligned would be useful. After all the user could already use assume_aligned directly. I was more thinking of cases when VRP/CCP can

[Bug tree-optimization/63202] New: tree vectorizer does not make use of alignment information from VRP/CCP

2014-09-07 Thread andi-gcc at firstfloor dot org
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org char b[100]; void alignment(int *p) { if ((uintptr_t)p 15) __builtin_unreachable(); int i; for (i = 0; i 64; i

[Bug middle-end/63186] [4.9/5 Regression] Undefined .L* symbols because of fnsplit

2014-09-07 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63186 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added CC||andi-gcc

[Bug middle-end/61958] functions arbitrarily placed in .text.unlikely section

2014-07-29 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61958 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added CC||andi-gcc

[Bug c++/61785] Sigsegv with enabled optimize -Os , -O2 in sample_format_size

2014-07-12 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61785 Andi Kleen andi-gcc at firstfloor dot org changed: What|Removed |Added CC||andi-gcc

[Bug c/59850] Support sparse-style pointer address spaces (type attributes)

2014-07-07 Thread andi-gcc at firstfloor dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59850 --- Comment #30 from Andi Kleen andi-gcc at firstfloor dot org --- Please don't invent your own syntax for this. Use the one that has been widely deployed for years. Thanks.

<    1   2   3   4   5   >