From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 313 invoked by alias); 1 Jan 2015 18:11:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 32733 invoked by uid 48); 1 Jan 2015 18:11:36 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/64465] [5 Regression] internal compiler error: verify_flow_info failed Date: Thu, 01 Jan 2015 18:11: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: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone everconfirmed Message-ID: In-Reply-To: References: 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-01/txt/msg00019.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64465 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-01-01 CC| |hubicka at ucw dot cz Target Milestone|--- |5.0 Ever confirmed|0 |1 --- Comment #1 from H.J. Lu --- It is caused by r219108. The updated testcase: [hjl@gnu-mic-2 gcc-regression]$ cat pr64465.c typedef void (*__sighandler_t) (int); struct sigaction { __sighandler_t sa_handler; }; extern int sigaction (const struct sigaction *__restrict __act); extern int __open_alias (const char *__path, int __oflag, ...) __asm__ ("" "open") ; static __inline __attribute__ ((__always_inline__)) int open (const char *__path, int __oflag, ...) { if (__builtin_constant_p (__oflag)) return __open_alias (__path, __oflag, __builtin_va_arg_pack ()); return __open_alias (__path, __oflag, __builtin_va_arg_pack ()); } extern int close(int fd); static void set_fortify_handler (void (*handler) (int sig)) { struct sigaction sa; sigaction (&sa); int fd = open ("/dev/null", 3); if (fd == -1) close (1); } extern void handler (int sig); void do_test (void) { set_fortify_handler (handler); } [hjl@gnu-mic-2 gcc-regression]$ /export/project/git/gcc-regression/master/219108/usr/bin/gcc -O2 -S -fexceptions pr64465.c pr64465.c: In function \u2018set_fortify_handler\u2019: pr64465.c:34:1: error: BB 5 last statement has incorrectly set lp } ^ pr64465.c:34:1: internal compiler error: verify_flow_info failed Please submit a full bug report, with preprocessed source if appropriate. See for instructions. [hjl@gnu-mic-2 gcc-regression]$