[Bug lto/51432] [4.6 regression] ICE in -flto -std=c++0x -g with cross-compiler

2012-04-17 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51432 linzj changed: What|Removed |Added CC||manjian2006 at gmail dot

[Bug target/80986] auto keyword variable lost its attributes

2019-09-02 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 --- Comment #8 from linzj --- (In reply to Anssi Hannula from comment #7) > Created attachment 46772 [details] > Simple testcase for the issue > > The regression still exists on GCC trunk. > > We also hit the issue with > https://github.com/goo

[Bug c++/84824] New: DCE fails to remove dead code of std::function constructor

2018-03-11 Thread manjian2006 at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Target Milestone: --- #include #include std::function getFunc(int i) { auto f = [=] (int a, int b) { return a + b + i; }; return f; } int main

[Bug c++/84824] DCE fails to remove dead code of std::function constructor

2018-03-11 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824 --- Comment #1 from linzj --- According to the tree generated, the problem is sourced from fail to remove the lambda function call. But the constant value is deduced and propagated. In case of the side effect?

[Bug c++/84824] DCE fails to remove dead code of std::function constructor

2018-03-11 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824 --- Comment #2 from linzj --- Okay, it's std::_Function_base::_Base_manager >::_M_manager(std::_Any_data &, const std::_Any_data &, std::_Manager_operation) (__dest=..., __source=..., __op=std::__destroy_functor) function that dce fails to remo

[Bug c++/84824] DCE fails to remove dead code of std::function constructor

2018-03-11 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824 --- Comment #3 from linzj --- From the function destructor ~_Function_base() { if (_M_manager) _M_manager(_M_functor, _M_functor, __destroy_functor); }

[Bug c++/84824] DCE fails to remove dead code of std::function constructor

2018-03-12 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824 --- Comment #5 from linzj --- Change the function call to printf to asm like: int main() { // printf("%d", getFunc(1)(1, 1)); asm volatile("" : : "r"(getFunc(1)(1, 1))); return 0; } Will generate the concise code. I think # USE =

[Bug tree-optimization/84824] DCE fails to remove dead code of std::function constructor

2018-03-15 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824 --- Comment #7 from linzj --- The core of this problem is escaped result is function wise, not block wise, or instruction wise. Any place in the function the local variable escapes, will count that variable as escaped. Actually the printf does n

[Bug tree-optimization/84824] DCE fails to remove dead code of std::function constructor

2018-03-16 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824 linzj changed: What|Removed |Added CC||manjian2006 at gmail dot com --- Comment #8

[Bug tree-optimization/84824] DCE fails to remove dead code of std::function constructor

2018-03-16 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824 --- Comment #9 from linzj --- sra may not relate to this problem. I make sra get involved, because fre fails to recognise a mem ref and a component ref are the same reference. Maybe we should work on fre

[Bug tree-optimization/84824] DCE fails to remove dead code of std::function constructor

2018-03-16 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824 --- Comment #11 from linzj --- This patch makes the printf clobber/use set correct. But it doesn't seem like much help. Maybe the escape set only comes from the function wise one.

[Bug tree-optimization/84824] DCE fails to remove dead code of std::function constructor

2018-03-16 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824 --- Comment #13 from linzj --- But the code looks like only using the clobber set of the call statment. I will look into that.

[Bug tree-optimization/84824] DCE fails to remove dead code of std::function constructor

2018-03-16 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824 --- Comment #14 from linzj --- I mean call_may_clobber_ref_p_1 function in tree-ssa-alias.c. It does use the clobber set of the call statement. So making the clobber set right should have positive effect on the code, right?

[Bug tree-optimization/84824] DCE fails to remove dead code of std::function constructor

2018-03-20 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824 --- Comment #15 from linzj --- The structalias solve_graph is not resolving the nodes reachable from a source node, which make my try fail.

[Bug tree-optimization/84824] DCE fails to remove dead code of std::function constructor

2018-03-28 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824 --- Comment #16 from linzj --- Created attachment 43783 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43783&action=edit This patch trying simulate a local escaped node for function call. This patch trying simulate a local escaped node for

[Bug tree-optimization/84824] DCE fails to remove dead code of std::function constructor

2018-03-28 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84824 --- Comment #17 from linzj --- After this patch the code still have redundant calls for the inline pass has finished. But the indirect function calls has been removed.

[Bug c++/85117] New: ARM: Wrong Warning Emits: parameter passing for argument of type 'Handle' changed in GCC 7.1

2018-03-28 Thread manjian2006 at gmail dot com
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Target Milestone: --- typedef enum { } Unknown; class HandleBase { public: void** m_slot; }; template struct H

[Bug target/85117] ARM: Wrong Warning Emits: parameter passing for argument of type 'Handle' changed in GCC 7.1

2018-03-29 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85117 --- Comment #1 from linzj --- Please note that the 64 bit alignment require comes from the typedef, not the base.

[Bug target/85117] ARM: Wrong Warning Emits: parameter passing for argument of type 'Handle' changed in GCC 7.1

2018-03-29 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85117 --- Comment #3 from linzj --- (In reply to Jakub Jelinek from comment #2) > It is not a warning, just a message, and it is completely correct, older G++ > versions would pass objects with such types differently than 7.1+. What? Any pass-by-value

[Bug c++/87978] New: Local Register Variables Have No Effect When There is A Call Statement Between

2018-11-11 Thread manjian2006 at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Target Milestone: --- Source: struct Code { void* instruction_start; }; Code GetCode(); #define WRONG_CODE 1 void __attribute__((noreturn

[Bug inline-asm/87978] Local Register Variables Have No Effect When There is A Call Statement Between

2018-11-12 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87978 --- Comment #6 from linzj --- Thanks for the reply.

[Bug c++/80986] New: auto keyword variable lost its attributes

2017-06-05 Thread manjian2006 at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Target Milestone: --- Created attachment 41476 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41476&action=edit Code. Hi, I compile skia for arm and this bug pop out. And after scop

[Bug target/80986] auto keyword variable lost its attributes

2017-06-06 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 --- Comment #1 from linzj --- >From the peek of -fdump-tree-tu-all, the translation unit already get the function_type wrong. Before use the auto, the function type has the attribute pcs. But after the auto use, the function type has dropped the

[Bug target/80986] auto keyword variable lost its attributes

2017-06-07 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 --- Comment #2 from linzj --- I have found the cause of this bug. In 5.3, the function strip_typedefs only use result = cp_build_type_attribute_variant (result, TYPE_ATTRIBUTES (t)); but in 6.3 remove_attributes prediction get invovled: if (TYP

[Bug target/80986] auto keyword variable lost its attributes

2017-06-13 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 --- Comment #3 from linzj --- Hi Pinskia, This bug can be fix easily. Can you commit the fix patch? -- Lin Zuojian 2017-06-07 9:45 GMT+08:00 pinskia at gcc dot gnu.org : > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 > > Andrew Pinski

[Bug target/80986] auto keyword variable lost its attributes

2017-07-03 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 --- Comment #5 from linzj --- Is the following patch okay? Or should I add the new bit to indicate not to remove an attribute? diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index f8436b30b37..97bc82272af 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -73

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-18 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #39 from linzj --- (In reply to Richard Henderson from comment #35) thanks for the fix.

[Bug middle-end/60802] New: jump2 pass fails to do cfgcleanup

2014-04-09 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com problem source: int foo (int *a, int s, int predicate) { if (predicate > 0) { for (int i = 0; i < s; ++i) { a[i] = 0xfafafafa; } } else if (predicat

[Bug middle-end/60802] jump2 pass fails to do cfgcleanup

2014-04-09 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60802 linzj changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/60281] New: Address Sanitizer triggers alignment fault in ARM machines

2014-02-20 Thread manjian2006 at gmail dot com
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Without aligning the asan stack base,this base will only 64-bit aligned in ARM machines. But asan require 256-bit aligned base because of this: 1.right shift

[Bug middle-end/60281] Address Sanitizer triggers alignment fault in ARM machines

2014-02-20 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60281 --- Comment #1 from linzj --- I have summit a patch for this bug,and tested in my Nexus 4.It works fine.Check gcc-patches at gcc dot gnu dot org for that.

[Bug debug/60438] New: dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-05 Thread manjian2006 at gmail dot com
Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com This Bug is cause by csa pass.Which removes REG_ARGS_SIZE unexpectedly. Let me show the cfg first: if

[Bug debug/60438] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-05 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #1 from linzj --- Created attachment 32282 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32282&action=edit source that causes bug

[Bug debug/60438] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-05 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #2 from linzj --- reedit the cfg. if (hasRelativeWidth || hasRelativeHeight) true false / \ /\ / \ ...

[Bug debug/60438] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-05 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #3 from linzj --- pass 221r.varstack,the pass just before 222r.csa call_pop insn : (call_insn:TI 143 141 393 18 (parallel [ (call (mem:QI (mem/f:SI (plus:SI (reg/f:SI 1 dx [orig:126 D.230300_12->_vptr.ImageD.43529 ] [126])

[Bug debug/60438] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-07 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #4 from linzj --- Further debug show this push op is gen by sched2 pass

[Bug debug/60438] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-07 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #5 from linzj --- No confirm yet! (In reply to linzj from comment #4) > Further debug show this push op is gen by sched2 pass

[Bug debug/60438] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-07 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #6 from linzj --- The "push edx" is gen by originally fop_sf_2_i387. (insn 180 281 288 17 (set (reg:SF 9 st(1) [orig:153 D.227396 ] [153]) (mult:SF (float:SF (reg:SI 1 dx [160])) (reg:SF 9 st(1) [orig:153 D.227396

[Bug debug/60438] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-07 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #7 from linzj --- confirm that in csa pass: (insn 288 281 289 17 (set (mem:SI (pre_dec:SI (reg/f:SI 7 sp)) [0 S4 A8]) (reg:SI 1 dx [160])) /home/linzj/src/u3/shell-git/core/WebCore/rendering/RenderImage.cpp:98 64 {*pushsi2}

[Bug debug/60438] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-07 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #8 from linzj --- Okay let me sum it up: at first the code looks like this call xxx: .cfa 92 float ops add sp 12 .cfa 80 And then split2 splits the float ops,then it looks like this call xxx: .cfa 92 push edx float ops2 add sp 4 ... a

[Bug debug/60438] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-07 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #9 from linzj --- I have tried to modify i386.c to make ix86_force_to_memory&ix86_free_from_memory to generate frame related insn.That causes another problem.Seems the only way to go is have a look at jump2. The another problem: ARGS_

[Bug debug/60438] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-07 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #10 from linzj --- Adding a -fno-crossjumping compile flag stops the assertion.

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-07 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #12 from linzj --- I have never known that regression is such a useful resort. (In reply to Jakub Jelinek from comment #11) > Reduced testcase for -Os -m32 -fomit-frame-pointer: > > struct A { int a; }; > struct B { A foo (); }; > st

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-07 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #13 from linzj --- Thank Jakub for the short test case and the revision. Before revision 205498,the prologue is: (insn/f:TI 77 78 79 2 (parallel [ (set (reg/f:SI 7 sp) (plus:SI (reg/f:SI 7 sp)

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-07 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #14 from linzj --- Somebody may ask why the modification of cur_cfa->reg will finally trigger assertion failure.Checkout out notice_args_size in dwarf2cfi.c: /* If the CFA is computed off the stack pointer, then we must adjust t

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-08 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #15 from linzj --- dir = merge_dir (dir, old_insns_match_p (0, i1, i2)); if (dir == dir_none || (!dir_p && dir != dir_both)) break; { print_rtl_single (stdout, i1); print_rtl_single (stdout, i2); p

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-08 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #16 from linzj --- I have dodged this bug by the following patch: diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index 77196ee..d7c2b1e 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -1106,20 +1106,7 @@ old_insns_match_p (in

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-08 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #18 from linzj --- (In reply to Richard Henderson from comment #17) > The REG_ARGS_SIZE notes are a red-herring. > > The bug is that > > (insn:TI 66 61 31 4 (set (mem:SI (pre_dec:SI (reg/f:SI 7 sp)) [0 S4 A8]) > (reg:SI 0 a

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-08 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #20 from linzj --- (In reply to Richard Henderson from comment #19) > Created attachment 32311 [details] > proposed patch > > Running full tests on this overnight, but it fixes the ICE. Oh, It never comes to me that both setting the

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-09 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #21 from linzj --- (In reply to Richard Henderson from comment #19) > Created attachment 32311 [details] > proposed patch > > Running full tests on this overnight, but it fixes the ICE. It just pass the tests & fixes the ICE.But it a

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-09 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #22 from linzj --- (In reply to Richard Henderson from comment #19) > Created attachment 32311 [details] > proposed patch > > Running full tests on this overnight, but it fixes the ICE. If you just want to pass the tests,you may use

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-09 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #23 from linzj --- (In reply to Richard Henderson from comment #19) > Created attachment 32311 [details] > proposed patch > > Running full tests on this overnight, but it fixes the ICE. I try to remove the following hunk from you pat

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-09 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #24 from linzj --- === gcc Summary === # of expected passes102183 # of expected failures251 # of unsupported tests1322 This is the result after removing the methioned hunk.Seems okay for me. make check

[Bug middle-end/60478] New: convert_move assert failed

2014-03-09 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com 0x8d87dc convert_move(rtx_def*, rtx_def*, int) ../../building/gcc/expr.c:333 0x8ddcc8 store_expr(tree_node*, rtx_def*, int, bool) ../../building/gcc/expr.c:5398 0x8e4cff expand_assignment(tree_node

[Bug middle-end/60479] New: convert_move assert failed

2014-03-09 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Created attachment 32322 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32322&action=edit source that causes bug 0x8d87dc convert_move(rtx_def*, rtx_def*, int) ../../building/gcc/expr.c:333 0

[Bug middle-end/60478] convert_move assert failed

2014-03-10 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60478 --- Comment #2 from linzj --- (In reply to Marek Polacek from comment #1) > You've filed the same bug twice. > > *** This bug has been marked as a duplicate of bug 60479 *** 小手一抖,jj没有

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-10 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #26 from linzj --- (In reply to Jakub Jelinek from comment #25) > Perhaps we can handle some most common cases of frame related insns (e.g. if > both have REG_CFA_ADJUST_CFA notes, etc.), perhaps it would be worth it to > run a bootstr

[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575

2014-03-10 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438 --- Comment #28 from linzj --- (In reply to Jakub Jelinek from comment #27) > Wonder if we just shouldn't pass the other insn (the one we'd like to > delete) to > try_apply_stack_adjustment and if either of them is frame related insn, > check hard

[Bug middle-end/60546] New: [4.8 and 4.9] O2 & asan enable generates wrong insns

2014-03-16 Thread manjian2006 at gmail dot com
: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Created attachment 32366 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32366&action=edit source that causes bug My attachment gives a testcase to this bug. To compile

[Bug middle-end/60546] [4.8/4.9] O2 & asan enable generates wrong insns

2014-03-17 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546 --- Comment #5 from linzj --- Well,valgind do detect invalid memory usage.That's not an asan problem then. Since it effects from 4.8,does that mean 4.8 is not secure any more?

[Bug middle-end/60546] [4.8/4.9] O2 & asan enable generates wrong insns

2014-03-17 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546 --- Comment #8 from linzj --- I don't think it can be mark as resolved-invalid that fast.This code is used by WebKit for a long time and no one would say this is an illegal algorithm.

[Bug middle-end/60546] [4.8/4.9] O2 & asan enable generates wrong insns

2014-03-17 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546 --- Comment #9 from linzj --- If this is an illegal expression, it should be reported at compile time,not generating a wrong code.

[Bug middle-end/60546] [4.8/4.9] O2 & asan enable generates wrong insns

2014-03-17 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546 linzj changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug middle-end/60546] [4.8/4.9] O2 & asan enable generates wrong insns

2014-03-17 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546 --- Comment #12 from linzj --- Alright,should I change the algorithm to avoid this bug?

[Bug middle-end/60546] [4.8/4.9] O2 & asan enable generates wrong insns

2014-03-17 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546 --- Comment #14 from linzj --- Well,but I have not figured out what goes wrong in the hashing algorithm. Would you point it out.

[Bug middle-end/60546] [4.8/4.9] O2 & asan enable generates wrong insns

2014-03-17 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546 --- Comment #16 from linzj --- Yes,that may work.But what exactly go wrong in the original algorithm? I can't change a correct algorithm just because it volatiles TBBA and make the compiler generate wrong code.Because it's CORRECT logically.

[Bug middle-end/60546] [4.8/4.9] O2 & asan enable generates wrong insns

2014-03-17 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546 --- Comment #18 from linzj --- (In reply to rguent...@suse.de from comment #17) > On Mon, 17 Mar 2014, manjian2006 at gmail dot com wrote: > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546 > > > > --- Comment #16

[Bug middle-end/60546] [4.8/4.9] O2 & asan enable generates wrong insns

2014-03-17 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546 --- Comment #20 from linzj --- That's really not satisfying. I am going to dig deeper.Check the expanded RTL.

[Bug middle-end/60546] [4.8/4.9] O2 & asan enable generates wrong insns

2014-03-17 Thread manjian2006 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546 --- Comment #22 from linzj --- (In reply to Jakub Jelinek from comment #21) > What is not satisfying? > > struct QualifiedNameComponents { > StringImpl* m_prefix; > StringImpl* m_localName; > StringImpl* m_namespace; > }; > ... >

[Bug rtl-optimization/61706] New: thumb1_reorg crashes

2014-07-03 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Compiling the attached source will result in the crash. arm-linux-androideabi-g++ -c -fpic -ffunction-sections -funwind-tables -fstack-protector -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fno

[Bug rtl-optimization/61707] New: thumb1_reorg crashes

2014-07-03 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Compiling the attached source will result in the crash. arm-linux-androideabi-g++ -c -fpic -ffunction-sections -funwind-tables -fstack-protector -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fno

[Bug rtl-optimization/61702] New: thumb1_reorg crashes

2014-07-03 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Compiling the attached source will result in the crash. arm-linux-androideabi-g++ -c -fpic -ffunction-sections -funwind-tables -fstack-protector -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fno

[Bug rtl-optimization/61708] New: thumb1_reorg crashes

2014-07-03 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Compiling the attached source will result in the crash. arm-linux-androideabi-g++ -c -fpic -ffunction-sections -funwind-tables -fstack-protector -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fno

[Bug rtl-optimization/61705] New: thumb1_reorg crashes

2014-07-03 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Compiling the attached source will result in the crash. arm-linux-androideabi-g++ -c -fpic -ffunction-sections -funwind-tables -fstack-protector -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fno

[Bug rtl-optimization/61711] New: thumb1_reorg crashes

2014-07-03 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Compiling the attached source will result in the crash. arm-linux-androideabi-g++ -c -fpic -ffunction-sections -funwind-tables -fstack-protector -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fno

[Bug rtl-optimization/61709] New: thumb1_reorg crashes

2014-07-03 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Compiling the attached source will result in the crash. arm-linux-androideabi-g++ -c -fpic -ffunction-sections -funwind-tables -fstack-protector -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fno

[Bug rtl-optimization/61710] New: thumb1_reorg crashes

2014-07-03 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Compiling the attached source will result in the crash. arm-linux-androideabi-g++ -c -fpic -ffunction-sections -funwind-tables -fstack-protector -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fno

[Bug rtl-optimization/61703] New: thumb1_reorg crashes

2014-07-03 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Compiling the attached source will result in the crash. arm-linux-androideabi-g++ -c -fpic -ffunction-sections -funwind-tables -fstack-protector -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fno

[Bug rtl-optimization/61704] New: thumb1_reorg crashes

2014-07-03 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Compiling the attached source will result in the crash. arm-linux-androideabi-g++ -c -fpic -ffunction-sections -funwind-tables -fstack-protector -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fno

[Bug rtl-optimization/61712] New: thumb1_reorg crashes

2014-07-03 Thread manjian2006 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com Compiling the attached source will result in the crash. arm-linux-androideabi-g++ -c -fpic -ffunction-sections -funwind-tables -fstack-protector -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fno

[Bug rtl-optimization/61712] thumb1_reorg crashes

2014-07-03 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61712 --- Comment #1 from linzj --- Created attachment 33068 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33068&action=edit source that crashes

[Bug rtl-optimization/61704] thumb1_reorg crashes

2014-07-04 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61704 --- Comment #2 from linzj --- I am so sorry. I click submit multiple times for not being patient.

[Bug rtl-optimization/61705] thumb1_reorg crashes

2014-07-04 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61705 --- Comment #2 from linzj --- I am so sorry. I click submit multiple times for not being patient.

[Bug rtl-optimization/61712] thumb1_reorg crashes

2014-07-04 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61712 --- Comment #13 from linzj --- (In reply to ktkachov from comment #12) > I can't reproduce this with current trunk, on what compiler version does > this trigger? > > *gcc -v should tell this arm-linux-androideabi-gcc (GCC) 4.9.1 20140704 (prere

[Bug rtl-optimization/61712] thumb1_reorg crashes

2014-07-04 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61712 --- Comment #14 from linzj --- I have already submited a patch too.

[Bug rtl-optimization/61712] thumb1_reorg crashes

2014-07-04 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61712 --- Comment #16 from linzj --- Thanks amker.

[Bug tree-optimization/61818] New: unused code fails to be removed after dom1, thread updated

2014-07-16 Thread manjian2006 at gmail dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: manjian2006 at gmail dot com I found the following code: #include #define container_of(ptr, type, member) ({\ const typeof( ((type *)0)->member ) *__mptr = (

[Bug middle-end/60281] Address Sanitizer triggers alignment fault in ARM machines

2014-08-13 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60281 --- Comment #5 from linzj --- Sorry, but I have to wait for my GNU assignment. (In reply to Ramana Radhakrishnan from comment #4) > From code generated currently - looks fixed for 4.9.1 since GCC 4.9.0 was > actually released on 22nd April !