public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/59125] [4.8 Regression] gcc triggers wrong strncpy_chk Date: Thu, 09 Jan 2014 15:25:00 -0000 [thread overview] Message-ID: <bug-59125-4-dosbym5wmr@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-59125-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59125 --- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Thu Jan 9 15:25:34 2014 New Revision: 206467 URL: http://gcc.gnu.org/viewcvs?rev=206467&root=gcc&view=rev Log: 2014-01-09 Richard Biener <rguenther@suse.de> Backport from mainline 2013-11-18 Richard Biener <rguenther@suse.de> PR tree-optimization/59125 PR tree-optimization/54570 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining is not complete do not treat component-references with offset zero but different fields as equal. * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h. (compute_object_sizes): Apply TLC. Propagate the constant results into all uses and fold their stmts. * passes.def (pass_all_optimizations): Move pass_object_sizes after the first pass_forwprop and before pass_fre. * gcc.dg/builtin-object-size-8.c: Un-xfail. * gcc.dg/builtin-object-size-14.c: New testcase. * gcc.dg/strlenopt-14gf.c: Adjust. * gcc.dg/strlenopt-1f.c: Likewise. * gcc.dg/strlenopt-4gf.c: Likewise. 2013-12-03 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/59362 * tree-object-size.c (object_sizes): Change into array of vec<unsigned HOST_WIDE_INT>. (compute_builtin_object_size): Check computed bitmap for non-NULL instead of object_sizes. Call safe_grow on object_sizes vector if new SSA_NAMEs appeared. (init_object_sizes): Check computed bitmap for non-NULL. Call safe_grow on object_sizes elements instead of initializing it with XNEWVEC. (fini_object_sizes): Call release on object_sizes elements, don't set it to NULL. * gcc.c-torture/compile/pr59362.c: New test. Added: branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/compile/pr59362.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/builtin-object-size-14.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/passes.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/builtin-object-size-8.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/strlenopt-14gf.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/strlenopt-1f.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/strlenopt-4gf.c branches/gcc-4_8-branch/gcc/tree-object-size.c branches/gcc-4_8-branch/gcc/tree-ssa-sccvn.c
next prev parent reply other threads:[~2014-01-09 15:25 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-11-14 1:24 [Bug c/59125] New: [4.8 regression] " jengelh at inai dot de 2013-11-14 9:34 ` [Bug middle-end/59125] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org 2013-11-14 9:42 ` rguenth at gcc dot gnu.org 2013-11-14 12:59 ` rguenth at gcc dot gnu.org 2013-11-15 13:37 ` rguenth at gcc dot gnu.org 2013-11-15 13:39 ` rguenth at gcc dot gnu.org 2013-11-18 15:25 ` rguenth at gcc dot gnu.org 2013-11-18 15:27 ` [Bug middle-end/59125] [4.8 " rguenth at gcc dot gnu.org 2013-12-03 7:49 ` jakub at gcc dot gnu.org 2014-01-08 13:49 ` rafal at rawicki dot org 2014-01-08 14:05 ` rguenth at gcc dot gnu.org 2014-01-09 15:25 ` rguenth at gcc dot gnu.org [this message] 2014-01-09 15:30 ` rguenth at gcc dot gnu.org
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-59125-4-dosbym5wmr@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).