[Bug target/84011] Optimize switch table with -fPIE
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 24 14:21:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84011
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at redhat dot com
Depends on| |36881
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
The code in question is done on purpose:
commit 54af7f7e3f0f38a4cd5667fda9fd9a68ad554df0
Author: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed Oct 15 06:43:19 2008 +0000
PR tree-optimization/36881
* tree-switch-conversion.c (check_final_bb): For flag_pic, check
that each value doesn't need runtime relocations, for !flag_pic
check that each value is just a valid initializer constant.
* gcc.dg/tree-ssa/pr36881.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141129
138bc75d-0d04-0410-961f-82ee72b054a4
Should we revisit this decision?
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36881
[Bug 36881] [4.4 Regression] Creating runtime relocations for code which does
not need it
More information about the Gcc-bugs
mailing list