This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/23585] [4.0 regression] mem_fun* code fine with -O1, bus error with -O2



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]