This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/23585] [4.0 regression] mem_fun* code fine with -O1, bus error with -O2
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2005 06:39:03 -0000
- Subject: [Bug rtl-optimization/23585] [4.0 regression] mem_fun* code fine with -O1, bus error with -O2
- References: <bug-23585-11161@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #20 from ebotcazou at gcc dot gnu dot org 2005-10-12 06:39 -------
Mark, do you have an opinion on the following implementation detail? We don't
want to duplicate the code of may_trap_p and rtx_addr_can_trap_p, so the new
predicate will essentially piggyback on it, simply bypassing MEM_NOTRAP_P and
adding the supplementary check on the alignment on STRICT_ALIGNMENT machines.
Now this new predicate will only be invoked (for now) from reorg.c and only do
something new on STRICT_ALIGNMENT machines, so I'm not really thrilled to
propagate an additional argument all the way through the recursion in
may_trap_p; that's why I was pondering adding a global flag instead, possibly
forced to "const bool false" if not on a STRICT_ALIGNMENT machine. Thanks in
advance.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23585