[PATCH][ARM] Fix PR target/69245 Rewrite arm_set_current_function
Christian Bruel
christian.bruel@st.com
Thu Jan 21 10:37:00 GMT 2016
The current arm_set_current_function was both awkward and buggy. For
instance using partially set TARGET_OPTION set from pragma_parse, while
restore_target_globalsnor arm_option_params_internal was not reset.
Another issue is that in some paths, target_reinit was not called due to
old cached target_option_current_node value. for instance with
foo{}
#pragma GCC target ...
foo was called with global_options set from old GCC target (which was
wrong) and correct rtl values.
This is a reimplementation of the function. Hoping to be easier to read
(and maintain). Solves the current issues seen so far.
regtested for arm-linux-gnueabi -mfpu=vfp, -mfpu=neon,-mfpu=neon-fp-armv8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr69245.patch
Type: text/x-patch
Size: 4100 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160121/0ee98219/attachment.bin>
More information about the Gcc-patches
mailing list