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 middle-end/35705] [4.3/4.4 Regression] Symbol address check eliminated by C frontend.



------- Comment #11 from jakub at gcc dot gnu dot org  2008-03-27 09:42 -------
That will unnecessarily punish the majority of targets which use simple
pointers.
I thought you can align functions more than FUNCTION_BOUNDARY by
ASM_OUTPUT_MAX_SKIP_ALIGN, but apparently that's not unconditional.
In that case, we should have a target macro or target hook, which will tell us
alignment of ADDR_EXPR <FUNCTION_DECL>, defaulting to DECL_ALIGN_UNIT of the
FUNCTION_DECL, and get_pointer_modulus_and_residue should use that.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35705


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