public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65039] New: g++ 5 segmentation fault when compiling with -O2 optimization
@ 2015-02-12 9:51 truckman at FreeBSD dot org
2015-02-12 9:56 ` [Bug ipa/65039] [5 Regression] " redi at gcc dot gnu.org
2015-02-12 11:34 ` jakub at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: truckman at FreeBSD dot org @ 2015-02-12 9:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65039
Bug ID: 65039
Summary: g++ 5 segmentation fault when compiling with -O2
optimization
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: truckman at FreeBSD dot org
Created attachment 34739
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34739&action=edit
preprocessed c++ source that triggers g++ segmentation fault when compiling
with -O2
# g++5 -v
Using built-in specs.
COLLECT_GCC=g++5
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc5/gcc/x86_64-portbld-freebsd10.1/5.0.0/lto-wrapper
Target: x86_64-portbld-freebsd10.1
Configured with: ./../gcc-5-20150208/configure
--with-build-config=bootstrap-debug --disable-nls
--enable-gnu-indirect-function --libdir=/usr/local/lib/gcc5
--libexecdir=/usr/local/libexec/gcc5 --program-suffix=5
--with-as=/usr/local/bin/as --with-gmp=/usr/local
--with-gxx-include-dir=/usr/local/lib/gcc5/include/c++/
--with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection'
--with-system-zlib --with-ecj-jar=/usr/local/share/java/ecj-4.5.jar
--enable-languages=c,c++,objc,fortran,java --prefix=/usr/local
--mandir=/usr/local/man --infodir=/usr/local/info/gcc5
--build=x86_64-portbld-freebsd10.1
Thread model: posix
gcc version 5.0.0 20150208 (experimental) (FreeBSD Ports Collection)
g++ is getting a segmentation fault when compiling a particular c++ file with
-O2 optimization. Compiling with -O0 or -O1 is successful.
Fails:
# g++5 -std=c++11 -fmessage-length=0 -c -O2 -fno-strict-aliasing
-fvisibility=hidden -fvisibility-inlines-hidden -g1 -Wall -Wextra
-Wendif-labels -Wshadow -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wno-unused-local-typedefs -fpic -fexceptions -fno-enforce-eh-specs -o
_serviceregistration_controller.o _serviceregistration_controller.ii
/wrkdirs/usr/ports/editors/openoffice-4/work/aoo-4.1.1/main/chart2/source/controller/main/_serviceregistration_controller.cxx:113:1:
internal compiler error: Segmentation fault
}
^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
Succeeds:
# g++5 -std=c++11 -fmessage-length=0 -c -O1 -fno-strict-aliasing
-fvisibility=hidden -fvisibility-inlines-hidden -g1 -Wall -Wextra
-Wendif-labels -Wshadow -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wno-unused-local-typedefs -fpic -fexceptions -fno-enforce-eh-specs -o
_serviceregistration_controller.o _serviceregistration_controller.ii
#
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug ipa/65039] [5 Regression] g++ 5 segmentation fault when compiling with -O2 optimization
2015-02-12 9:51 [Bug c++/65039] New: g++ 5 segmentation fault when compiling with -O2 optimization truckman at FreeBSD dot org
@ 2015-02-12 9:56 ` redi at gcc dot gnu.org
2015-02-12 11:34 ` jakub at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2015-02-12 9:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65039
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-02-12
Component|c++ |ipa
Known to work| |4.8.3, 4.9.2
Summary|g++ 5 segmentation fault |[5 Regression] g++ 5
|when compiling with -O2 |segmentation fault when
|optimization |compiling with -O2
| |optimization
Ever confirmed|0 |1
Known to fail| |5.0
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
0xc9602f crash_signal
/home/jwakely/src/gcc/gcc/gcc/toplev.c:381
0x12c322a tree_check
/home/jwakely/src/gcc/gcc/gcc/tree.h:2845
0x12c322a ipa_icf::sem_function::init()
/home/jwakely/src/gcc/gcc/gcc/ipa-icf.c:786
0x12c6a19 ipa_icf::sem_item_optimizer::parse_nonsingleton_classes()
/home/jwakely/src/gcc/gcc/gcc/ipa-icf.c:1873
0x12cb9b2 ipa_icf::sem_item_optimizer::execute()
/home/jwakely/src/gcc/gcc/gcc/ipa-icf.c:1729
0x12cc5e1 ipa_icf_driver
/home/jwakely/src/gcc/gcc/gcc/ipa-icf.c:2459
0x12cc5e1 ipa_icf::pass_ipa_icf::execute(function*)
/home/jwakely/src/gcc/gcc/gcc/ipa-icf.c:2507
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug ipa/65039] [5 Regression] g++ 5 segmentation fault when compiling with -O2 optimization
2015-02-12 9:51 [Bug c++/65039] New: g++ 5 segmentation fault when compiling with -O2 optimization truckman at FreeBSD dot org
2015-02-12 9:56 ` [Bug ipa/65039] [5 Regression] " redi at gcc dot gnu.org
@ 2015-02-12 11:34 ` jakub at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-12 11:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65039
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |FIXED
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed by r220531.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-12 11:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-12 9:51 [Bug c++/65039] New: g++ 5 segmentation fault when compiling with -O2 optimization truckman at FreeBSD dot org
2015-02-12 9:56 ` [Bug ipa/65039] [5 Regression] " redi at gcc dot gnu.org
2015-02-12 11:34 ` jakub at gcc dot gnu.org
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).