public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Internal compiler error with -O2 and optimize("O0")
@ 2013-06-10 15:14 Aleksandr Platonov
  0 siblings, 0 replies; only message in thread
From: Aleksandr Platonov @ 2013-06-10 15:14 UTC (permalink / raw)
  To: gcc

Hi,
-O2 command line option and optimize("O0") (#pragma GCC optimize ("O0")
or __attribute__((optimize("O0")))) sometimes leads to internal compiler
error with trace:
 internal compiler error: in parm_ref_data_preserved_p, at
ipa-prop.c:740
 }
 ^
0x898982b ipcp_generate_summary
	/home/pam/tmp/gcc_source/gcc/ipa-cp.c:3640
0x84d5d13 execute_ipa_summary_passes(ipa_opt_pass_d*)
	/home/pam/tmp/gcc_source/gcc/passes.c:2136
0x825bef4 ipa_passes
	/home/pam/tmp/gcc_source/gcc/cgraphunit.c:1846
0x825bef4 compile()
	/home/pam/tmp/gcc_source/gcc/cgraphunit.c:1952
0x825cf39 finalize_compilation_unit()
	/home/pam/tmp/gcc_source/gcc/cgraphunit.c:2106
0x810addb c_write_global_declarations()
	/home/pam/tmp/gcc_source/gcc/c/c-decl.c:10118

There is a bug about problem with example code to reproduce
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57358 comment #2) but no
responses there. Could anybody take a look at this? This problem appears
in 4.8.0 version and  still observed in latest gcc sources (4.9.0
20130610 (experimental))

-- 
Aleksandr Platonov

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-10 15:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-10 15:14 Internal compiler error with -O2 and optimize("O0") Aleksandr Platonov

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).