From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20709 invoked by alias); 7 Dec 2014 14:17:44 -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 20666 invoked by uid 48); 7 Dec 2014 14:17:38 -0000 From: "sasha.levin at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/64211] New: ICE compiling Linux Kernel net/core/dev.c in dev_change_net_namespace Date: Sun, 07 Dec 2014 14:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sasha.levin at oracle dot com X-Bugzilla-Status: UNCONFIRMED 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: 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: 2014-12/txt/msg00669.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64211 Bug ID: 64211 Summary: ICE compiling Linux Kernel net/core/dev.c in dev_change_net_namespace Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sasha.levin at oracle dot com CC: marxin at gcc dot gnu.org Created attachment 34211 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D34211&action=3Dedit Preprocessed source I'm seeing the following ICE: $ gcc -v -Wp,-MD,net/core/.dev.o.d -nostdinc -isystem /home/sasha/gcc-inst/lib/gcc/x86_64-unknown-linux-gnu/5.0.0/include -I./arch/x86/include -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -W= all -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=3Dgnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -march=3Dnative -mno-red-zone -mcmodel=3Dkern= el -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=3D1 -DCONFIG_AS_CFI_SIGNAL_FRAME=3D1 -DCONFIG_AS_CFI_SECTIO= NS=3D1 -DCONFIG_AS_FXSAVEQ=3D1 -DCONFIG_AS_CRC32=3D1 -DCONFIG_AS_AVX=3D1 -DCONFIG_= AS_AVX2=3D1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=3Dallow-store-data-races=3D0 -Wframe-larger-than=3D2048 -fstack-pro= tector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -gdwarf-4 -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=3Dimplicit-int -Werror=3Dstrict-prototypes -Werror=3Ddate-time -DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=3D#s" -D"KBUILD_BASENAME=3DKBUILD_STR(dev)" -D"KBUILD_MODNAME=3DKBUILD_STR(dev)"= -c -o net/core/.tmp_dev.o net/core/dev.c Using built-in specs. COLLECT_GCC=3Dgcc Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=3D/home/sasha/gcc-inst/ --with-arch= =3Dnative --with-tune=3Dnative --enable-languages=3Dc --enable-lto --enable-gold --enable-stage1-languages=3Dc Thread model: posix gcc version 5.0.0 20141207 (experimental) (GCC)=20 COLLECT_GCC_OPTIONS=3D'-v' '-nostdinc' '-isystem' '/home/sasha/gcc-inst/lib/gcc/x86_64-unknown-linux-gnu/5.0.0/include' '-I' './arch/x86/include' '-I' 'arch/x86/include/generated' '-I' 'include' '-I' './arch/x86/include/uapi' '-I' 'arch/x86/include/generated/uapi' '-I' './include/uapi' '-I' 'include/generated/uapi' '-include' './include/linux/kconfig.h' '-D' '__KERNEL__' '-Wall' '-Wundef' '-Wstrict-prototypes' '-Wno-trigraphs' '-fno-strict-aliasing' '-fno-common' '-Werror=3Dimplicit-function-declaration' '-Wno-format-security' '-std=3Dgn= u90' '-m64' '-mno-80387' '-mno-fp-ret-in-387' '-march=3Dnative' '-mno-red-zone' '-mcmodel=3Dkernel' '-funit-at-a-time' '-maccumulate-outgoing-args' '-D' 'CONFIG_X86_X32_ABI' '-D' 'CONFIG_AS_CFI=3D1' '-D' 'CONFIG_AS_CFI_SIGNAL_FR= AME=3D1' '-D' 'CONFIG_AS_CFI_SECTIONS=3D1' '-D' 'CONFIG_AS_FXSAVEQ=3D1' '-D' 'CONFIG_AS_CRC32=3D1' '-D' 'CONFIG_AS_AVX=3D1' '-D' 'CONFIG_AS_AVX2=3D1' '-= pipe' '-Wno-sign-compare' '-fno-asynchronous-unwind-tables' '-mno-sse' '-mno-mmx' '-mno-sse2' '-mno-3dnow' '-mno-avx' '-fno-delete-null-pointer-checks' '-O2' '--param' 'allow-store-data-races=3D0' '-Wframe-larger-than=3D2048' '-fstack-protector' '-Wno-unused-but-set-variable' '-fno-omit-frame-pointer' '-fno-optimize-sibling-calls' '-fno-var-tracking-assignments' '-g' '-gdwarf= -4' '-Wdeclaration-after-statement' '-Wno-pointer-sign' '-fno-strict-overflow' '-fconserve-stack' '-Werror=3Dimplicit-int' '-Werror=3Dstrict-prototypes' '-Werror=3Ddate-time' '-D' 'CC_HAVE_ASM_GOTO' '-D' 'KBUILD_STR(s)=3D#s' '-D' 'KBUILD_BASENAME=3DKBUILD_STR(dev)' '-D' 'KBUILD_MODNAME=3DKBUILD_STR(dev)'= '-c' '-o' 'net/core/.tmp_dev.o' /home/sasha/gcc-inst/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/cc1 -quiet -nostdinc -v -I ./arch/x86/include -I arch/x86/include/generated -I include= -I ./arch/x86/include/uapi -I arch/x86/include/generated/uapi -I ./include/uap= i -I include/generated/uapi -imultiarch x86_64-linux-gnu -D __KERNEL__ -D CONFIG_X86_X32_ABI -D CONFIG_AS_CFI=3D1 -D CONFIG_AS_CFI_SIGNAL_FRAME=3D1 -D CONFIG_AS_CFI_SECTIONS=3D1 -D CONFIG_AS_FXSAVEQ=3D1 -D CONFIG_AS_CRC32=3D1 = -D CONFIG_AS_AVX=3D1 -D CONFIG_AS_AVX2=3D1 -D CC_HAVE_ASM_GOTO -D KBUILD_STR(s= )=3D#s -D KBUILD_BASENAME=3DKBUILD_STR(dev) -D KBUILD_MODNAME=3DKBUILD_STR(dev) -isys= tem /home/sasha/gcc-inst/lib/gcc/x86_64-unknown-linux-gnu/5.0.0/include -include ./include/linux/kconfig.h -MD net/core/.dev.o.d net/core/dev.c -march=3Dneh= alem -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mno-movbe -mno-aes -mno-sha -mno-pclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mno-xsave -mno-xsaveopt -mno-avx51= 2f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit --param l1-cache-siz= e=3D32 --param l1-cache-line-size=3D64 --param l2-cache-size=3D24576 -mtune=3Dneha= lem -quiet -dumpbase dev.c -m64 -mno-80387 -mno-fp-ret-in-387 -mno-red-zone -mcmodel=3Dkernel -maccumulate-outgoing-args -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -auxbase-strip net/core/.tmp_dev.o -g -gdwarf-4 -O2 -Wa= ll -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror=3Dimplicit-function-declaration -Wno-format-security -Wno-sign-comp= are -Wframe-larger-than=3D2048 -Wno-unused-but-set-variable -Wdeclaration-after-statement -Wno-pointer-sign -Werror=3Dimplicit-int -Werror=3Dstrict-prototypes -Werror=3Ddate-time -std=3Dgnu90 -version -fno-strict-aliasing -fno-common -funit-at-a-time -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -fstack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -fno-strict-overflow -fconserve-stack --param allow-store-data-races=3D0 -o - | as -v -I ./arch/x86/include -I arch/x86/include/generated -I include -I ./arch/x86/include/uapi -I arch/x86/include/generated/uapi -I ./include/uap= i -I include/generated/uapi --64 -o net/core/.tmp_dev.o GNU assembler version 2.24 (x86_64-linux-gnu) using BFD version (GNU Binuti= ls for Debian) 2.24 GNU C89 (GCC) version 5.0.0 20141207 (experimental) (x86_64-unknown-linux-g= nu) compiled by GNU C version 5.0.0 20141207 (experimental), GMP version 5.= 0.5, MPFR version 3.1.0-p10, MPC version 0.9 GGC heuristics: --param ggc-min-expand=3D30 --param ggc-min-heapsize=3D4096 #include "..." search starts here: #include <...> search starts here: ./arch/x86/include arch/x86/include/generated include ./arch/x86/include/uapi arch/x86/include/generated/uapi ./include/uapi include/generated/uapi /home/sasha/gcc-inst/lib/gcc/x86_64-unknown-linux-gnu/5.0.0/include End of search list. GNU C89 (GCC) version 5.0.0 20141207 (experimental) (x86_64-unknown-linux-g= nu) compiled by GNU C version 5.0.0 20141207 (experimental), GMP version 5.= 0.5, MPFR version 3.1.0-p10, MPC version 0.9 GGC heuristics: --param ggc-min-expand=3D30 --param ggc-min-heapsize=3D4096 Compiler executable checksum: fa5217cad7784451a293893e0584355b net/core/dev.c: In function =E2=80=98dev_change_net_namespace.part.107=E2= =80=99: net/core/dev.c:7404:1: internal compiler error: in verify_ssa, at tree-ssa.c:939 subsys_initcall(net_dev_init); ^ 0xcbf2a2 verify_ssa(bool, bool) ../../gcc/tree-ssa.c:939 0xa19a65 execute_function_todo ../../gcc/passes.c:1947 0xa1a1bd do_per_function ../../gcc/passes.c:1639 0xa1a2d3 execute_todo ../../gcc/passes.c:1997 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. I've bisected it down to: commit 52200d03c231f0bddbd4bbc5cd3608c6a1dd4598 Author: marxin Date: Thu Oct 16 10:47:55 2014 +0000 IPA ICF pass, part 3/5 * Makefile.in: New object files included. * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged is printed. (verify_edge_corresponds_to_fndecl): More sensitive verification of nodes that are merged by IPA ICF. * cgraph.h (cgraph_node::num_references): New function. * cgraphunit.c (cgraph_node::expand_thunk): White space fixed. * common.opt: New options ipa-icf, ipa-icf-functions and ipa-icf-variables introduced. * doc/invoke.texi: Documentation of new options introduced. * ipa-icf-gimple.c: New file. * ipa-icf-gimple.h: New file. * ipa-icf.c: New file. * ipa-icf.h: New file. * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag adde= d. (input_overwrite_node): Likewise. * lto-section-in.c: New icf section added. * lto-streamer.h (enum lto_section_type): Likewise. * opts.c (common_handle_option): New option added. * passes.def: New pass included. * timevar.def: Time variable for IPA ICF added. * tree-pass.h: New IPA ICF pass entry point added. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216305 138bc75d-0d04-0410-961f-82ee72b054a4 Attached preprocessed source. >>From gcc-bugs-return-469664-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 07 14:20:20 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23362 invoked by alias); 7 Dec 2014 14:20:18 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23216 invoked by uid 48); 7 Dec 2014 14:20:12 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/63569] [5.0 Regression] Wrong code with volatile and ICF Date: Sun, 07 Dec 2014 14:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: mliska at suse dot cz X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: 2014-12/txt/msg00671.txt.bz2 Content-length: 189 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63569 --- Comment #9 from Markus Trippelsdorf --- *** Bug 64211 has been marked as a duplicate of this bug. ***