public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/38358] Could not compile gcc using large include files Date: Thu, 17 Sep 2015 23:42:00 -0000 [thread overview] Message-ID: <bug-38358-4-mcVIkA1Smp@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-38358-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38358 Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |manu at gcc dot gnu.org Resolution|--- |INVALID --- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- No testcase, old report. Please reopen if this is still a problem. >From gcc-bugs-return-497468-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 17 23:55:23 2015 Return-Path: <gcc-bugs-return-497468-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 129871 invoked by alias); 17 Sep 2015 23:55:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 129792 invoked by uid 48); 17 Sep 2015 23:55:18 -0000 From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/51270] missed warning about returning reference to temporary Date: Thu, 17 Sep 2015 23:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.6.2 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc dependson Message-ID: <bug-51270-4-urxgEBfMcV@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-51270-4@http.gcc.gnu.org/bugzilla/> References: <bug-51270-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg01446.txt.bz2 Content-length: 1127 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51270 Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org Depends on| |60517 --- Comment #9 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #7) > Here's a simpler testcase for the missed warning: > > const int& f(long l) > { > const int& i = l; > return i; > } > We now warn for this testcase because of the fixes in R60517. test.cc:5:10: warning: function returns address of local variable [-Wreturn-local-addr] return i; ^ test.cc:4:18: note: declared here const int& i = l; ^ I haven't tested the other testcases here, but it seems a duplicate. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60517 [Bug 60517] warning/error for taking address of member of a temporary object >From gcc-bugs-return-497469-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Sep 17 23:57:25 2015 Return-Path: <gcc-bugs-return-497469-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 797 invoked by alias); 17 Sep 2015 23:57:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 762 invoked by uid 48); 17 Sep 2015 23:57:21 -0000 From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/50476] Warn of pointer set to object whose lifetime is limited Date: Thu, 17 Sep 2015 23:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.5.2 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on dependson everconfirmed Message-ID: <bug-50476-4-zUA3JF6RAj@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-50476-4@http.gcc.gnu.org/bugzilla/> References: <bug-50476-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg01447.txt.bz2 Content-length: 857 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50476 Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-09-17 Depends on| |60517 Ever confirmed|0 |1 --- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- Possibly a duplicate of PR60517, but this testcase is slightly different (it involves assigning to global pointer and not a return statement). Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60517 [Bug 60517] warning/error for taking address of member of a temporary object >From gcc-bugs-return-497470-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 18 00:04:40 2015 Return-Path: <gcc-bugs-return-497470-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13500 invoked by alias); 18 Sep 2015 00:04:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13442 invoked by uid 48); 18 Sep 2015 00:04:35 -0000 From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/45821] no warning when returning a local variable address within a statement expression Date: Fri, 18 Sep 2015 00:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc dependson everconfirmed Message-ID: <bug-45821-4-QalayF2xma@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-45821-4@http.gcc.gnu.org/bugzilla/> References: <bug-45821-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg01448.txt.bz2 Content-length: 1686 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45821 Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-09-18 CC| |manu at gcc dot gnu.org Depends on| |60517 Ever confirmed|0 |1 --- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Andrew Gaul from comment #3) > int *function_return_local(void) > { > int x = 0; > return &x; > } > > int *statement_expression_return_local(void) > { > int *y = ({ > int x = 0; > &x; > }); > return y; > } We now warn at -O2: test.c:14:10: warning: function returns address of local variable [-Wreturn-local-addr] return y; ^ test.c:11:11: note: declared here int x = 0; ^ but only because we return y. For this testcase, int statement_expression_return_local(void) { int *y = ({ int x = 0; &x; }); return *y; } we get: test.c:14:10: warning: ‘x’ is used uninitialized in this function [-Wuninitialized] return *y; ^ which is a bit confusing (and not the same warning). Possibly related to 60517. it would be good to add the testcase Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60517 [Bug 60517] warning/error for taking address of member of a temporary object >From gcc-bugs-return-497471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 18 00:40:42 2015 Return-Path: <gcc-bugs-return-497471-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65351 invoked by alias); 18 Sep 2015 00:40:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 65325 invoked by uid 48); 18 Sep 2015 00:40:38 -0000 From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/24786] Missing warning on questionable use of parameter to initialize static Date: Fri, 18 Sep 2015 00:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on cc component version Message-ID: <bug-24786-4-iY9ZJbFVJQ@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-24786-4@http.gcc.gnu.org/bugzilla/> References: <bug-24786-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg01449.txt.bz2 Content-length: 1569 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24786 Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2005-11-11 17:59:15 |2015-9-18 CC| |manu at gcc dot gnu.org Component|c++ |middle-end Version|4.1.0 |6.0 --- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- GCC generates code like this: const char *names[1]; const char *blah2() { char x = 7; if (first_time) names[0] = { &x }; return names[0]; } and we end up returning: # .MEM_1 = PHI <.MEM_4(2), .MEM_9(4), .MEM_6(3)> [test.c:5:17] # VUSE <.MEM_1> # PT = nonlocal escaped { D.2254 } (escaped) _10 = [test.c:5:17] _ZZ5blah2vE5namesD.2255[0]; # .MEM_11 = VDEF <.MEM_1> xD.2254 ={v} {CLOBBER}; [test.c:5:17] # VUSE <.MEM_11> return _10; ;; succ: EXIT [100.0%] While in the non-static case we propagate &x: ;; basic block 2, loop depth 0, count 0, freq 10000, maybe hot ;; prev block 0, next block 1, flags: (NEW, REACHABLE) ;; pred: ENTRY [100.0%] (FALLTHRU,EXECUTABLE) ;; starting at line 5 # .MEM_2 = VDEF <.MEM_1(D)> xD.2254 ={v} {CLOBBER}; [test.c:5:17] # VUSE <.MEM_2> return &xD.2254; ;; succ: EXIT [100.0%] This seems like a missed optimization. Somehow related to PR60517. >From gcc-bugs-return-497472-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 18 01:03:52 2015 Return-Path: <gcc-bugs-return-497472-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58962 invoked by alias); 18 Sep 2015 01:03:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58899 invoked by uid 48); 18 Sep 2015 01:03:47 -0000 From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/17729] [4.9/5/6 Regression] Duplicate __attribute__((deprecated)) warning Date: Fri, 18 Sep 2015 01:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.0.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P5 X-Bugzilla-Assigned-To: ktietz at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on Message-ID: <bug-17729-4-MDPkW92L1L@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-17729-4@http.gcc.gnu.org/bugzilla/> References: <bug-17729-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg01450.txt.bz2 Content-length: 4403 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17729 Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2006-02-01 04:38:45 |2015-9-18 --- Comment #36 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- Still valid. Patch doesn't apply anymore. test.cc:6:3: warning: ‘void func()’ is deprecated [-Wdeprecated-declarations] func(); ^ test.cc:3:6: note: declared here void func(void) __attribute__((deprecated)); ^ test.cc:6:8: warning: ‘void func()’ is deprecated [-Wdeprecated-declarations] func(); ^ test.cc:3:6: note: declared here void func(void) __attribute__((deprecated)); ^ We give one warning for "func" and another for "func()". Breakpoint 6, warn_deprecated_use (node=node@entry=0x7ffff658bd20, attr=<optimized out>, attr@entry=0x0) at /home/manuel/test1/pristine/gcc/tree.c:12338 (gdb) bt #0 warn_deprecated_use (node=node@entry=0x7ffff658bd20, attr=<optimized out>, attr@entry=0x0) at /home/manuel/test1/pristine/gcc/tree.c:12338 #1 0x00000000006c8a69 in mark_used (decl=decl@entry=0x7ffff658bd20, complain=complain@entry=3) at /home/manuel/test1/pristine/gcc/cp/decl2.c:5085 #2 0x00000000006c973a in mark_used (decl=decl@entry=0x7ffff658bd20) at /home/manuel/test1/pristine/gcc/cp/decl2.c:5255 #3 0x000000000077ed79 in finish_id_expression (id_expression=0x7ffff65998f0, decl=0x7ffff658bd20, scope=0x0, idk=0x7fffffffdc34, integral_constant_expression_p=<optimized out>, allow_non_integral_constant_expression_p=<optimized out>, non_integral_constant_expression_p=0x7ffff6433a4d, template_p=false, done=false, address_p=false, template_arg_p=false, error_msg=0x7fffffffdbc8, location=648) at /home/manuel/test1/pristine/gcc/cp/semantics.c:3607 #4 0x00000000006e9e66 in cp_parser_primary_expression (parser=parser@entry=0x7ffff6433a20, address_p=address_p@entry=false, cast_p=cast_p@entry=false, template_arg_p=template_arg_p@entry=false, decltype_p=decltype_p@entry=false, idk=idk@entry=0x7fffffffdc34) at /home/manuel/test1/pristine/gcc/cp/parser.c:4817 #5 0x00000000006f646c in cp_parser_postfix_expression (parser=parser@entry=0x7ffff6433a20, address_p=address_p@entry=false, cast_p=cast_p@entry=false, member_access_only_p=member_access_only_p@entry=false, decltype_p=false, pidk_return=pidk_return@entry=0x0) at /home/manuel/test1/pristine/gcc/cp/parser.c:6201 (gdb) c Continuing. /home/manuel/test.cc:6:3: warning: ‘void func()’ is deprecated [-Wdeprecated-declarations] func(); ^ /home/manuel/test.cc:3:6: note: declared here void func(void) __attribute__((deprecated)); ^ Breakpoint 6, warn_deprecated_use (node=node@entry=0x7ffff658bd20, attr=<optimized out>, attr@entry=0x0) at /home/manuel/test1/pristine/gcc/tree.c:12338 (gdb) bt #0 warn_deprecated_use (node=node@entry=0x7ffff658bd20, attr=<optimized out>, attr@entry=0x0) at /home/manuel/test1/pristine/gcc/tree.c:12338 #1 0x00000000006c8a69 in mark_used (decl=decl@entry=0x7ffff658bd20, complain=complain@entry=3) at /home/manuel/test1/pristine/gcc/cp/decl2.c:5085 #2 0x00000000005de657 in build_over_call (cand=<optimized out>, flags=1, complain=complain@entry=3) at /home/manuel/test1/pristine/gcc/cp/call.c:7578 #3 0x00000000005ed620 in build_new_function_call (fn=fn@entry=0x7ffff658bd20, args=args@entry=0x7fffffffdc38, koenig_p=koenig_p@entry=false, complain=complain@entry=3) at /home/manuel/test1/pristine/gcc/cp/call.c:4136 #4 0x00000000007776bf in finish_call_expr (fn=fn@entry=0x7ffff658bd20, args=args@entry=0x7fffffffdc38, disallow_virtual=disallow_virtual@entry=false, koenig_p=<optimized out>, complain=3) at /home/manuel/test1/pristine/gcc/cp/semantics.c:2391 #5 0x00000000006f651a in cp_parser_postfix_expression (parser=parser@entry=0x7ffff6433a20, address_p=address_p@entry=false, cast_p=cast_p@entry=false, member_access_only_p=member_access_only_p@entry=false, decltype_p=false, pidk_return=pidk_return@entry=0x0) at /home/manuel/test1/pristine/gcc/cp/parser.c:6419 >From gcc-bugs-return-497473-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 18 01:13:30 2015 Return-Path: <gcc-bugs-return-497473-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90499 invoked by alias); 18 Sep 2015 01:13:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90212 invoked by uid 48); 18 Sep 2015 01:13:25 -0000 From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/66883] config/epiphany/udivsi3-float.c:52: bad if test ? Date: Fri, 18 Sep 2015 01:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget cc Message-ID: <bug-66883-4-k4JJXojCUB@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-66883-4@http.gcc.gnu.org/bugzilla/> References: <bug-66883-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg01451.txt.bz2 Content-length: 604 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66883 Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |epiphany CC| |amylaar at gcc dot gnu.org --- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- David, you may need to CC the target maintainer for bugs in minor targets. They do not follow gcc-bugs or peruse bugzilla. >From gcc-bugs-return-497474-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Sep 18 01:44:46 2015 Return-Path: <gcc-bugs-return-497474-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34242 invoked by alias); 18 Sep 2015 01:44:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34183 invoked by uid 48); 18 Sep 2015 01:44:41 -0000 From: "Marco.Leise at gmx dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/53712] Does not combine unaligned load with _mm_cmpistri, redundant instruction at -O0 Date: Fri, 18 Sep 2015 01:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.6.3 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: Marco.Leise at gmx dot de X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: <bug-53712-4-2Fd8HETqeh@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-53712-4@http.gcc.gnu.org/bugzilla/> References: <bug-53712-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg01452.txt.bz2 Content-length: 3027 https://gcc.gnu.org/bugzilla/show_bug.cgi?idS712 Marco Leise <Marco.Leise at gmx dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Marco.Leise at gmx dot de --- Comment #9 from Marco Leise <Marco.Leise at gmx dot de> --- If this was fixed three years ago, then how does the same test program produce this assembly with gcc 5.2.0 (and earlier)? Dump of assembler code for function test: 0x0000000000400596 <+0>: push rbp 0x0000000000400597 <+1>: mov rbp,rsp 0x000000000040059a <+4>: mov QWORD PTR [rbp-0x28],rdi 0x000000000040059e <+8>: mov QWORD PTR [rbp-0x30],rsi 0x00000000004005a2 <+12>: mov rax,QWORD PTR [rbp-0x30] 0x00000000004005a6 <+16>: mov QWORD PTR [rbp-0x18],rax 0x00000000004005aa <+20>: mov rax,QWORD PTR [rbp-0x18] 0x00000000004005ae <+24>: movdqu xmm0,XMMWORD PTR [rax] 0x00000000004005b2 <+28>: movaps XMMWORD PTR [rbp-0x10],xmm0 0x00000000004005b6 <+32>: mov rax,QWORD PTR [rbp-0x28] => 0x00000000004005ba <+36>: movdqa xmm0,XMMWORD PTR [rax] 0x00000000004005be <+40>: movdqa xmm1,xmm0 0x00000000004005c2 <+44>: movdqa xmm0,XMMWORD PTR [rbp-0x10] 0x00000000004005c7 <+49>: pcmpistri xmm0,xmm1,0x0 0x00000000004005cd <+55>: mov eax,ecx 0x00000000004005cf <+57>: pcmpistrm xmm0,xmm1,0x0 0x00000000004005d5 <+63>: pop rbp 0x00000000004005d6 <+64>: ret gcc -v Using built-in specs. COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/5.2.0/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/5.2.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-5.2.0/work/gcc-5.2.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/5.2.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/5.2.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/5.2.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/5.2.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/5.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/5.2.0/include/g++-v5 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/5.2.0/python --enable-languages=c,c++ --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 5.2.0 p1.1, pie-0.6.4' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libquadmath --enable-lto --without-isl --enable-libsanitizer Thread model: posix gcc version 5.2.0 (Gentoo 5.2.0 p1.1, pie-0.6.4)
next parent reply other threads:[~2015-09-17 23:42 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-38358-4@http.gcc.gnu.org/bugzilla/> 2015-09-17 23:42 ` manu at gcc dot gnu.org [this message] 2008-12-02 0:02 [Bug c/38358] New: " ahjiefreak at yahoo dot com 2008-12-02 0:04 ` [Bug middle-end/38358] " pinskia at gcc dot gnu dot org 2008-12-02 0:27 ` ahjiefreak at yahoo dot com 2008-12-02 0:30 ` pinskia at gcc dot gnu dot org 2008-12-02 11:11 ` rguenth at gcc dot gnu dot org 2008-12-02 13:09 ` ahjiefreak at yahoo dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-38358-4-mcVIkA1Smp@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).