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 target/63223] [avr] Make jumptables work with -Wl,--section-start,.text=


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63223

--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Thu Sep 11 08:19:45 2014
New Revision: 215153

URL: https://gcc.gnu.org/viewcvs?rev=215153&root=gcc&view=rev
Log:
gcc/
    Backport from 2014-09-11 trunk r215152.
    PR target/63223
    * config/avr/avr.md (*tablejump.3byte-pc): New insn.
    (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
    (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
libgcc/
    Backport from 2014-09-11 trunk r215152.
    PR target/63223
    * config/avr/libgcc.S (__tablejump2__): Rewrite to use RAMPZ, ELPM
    and R24 as needed.  Make work for all devices and .text locations.
    (__do_global_ctors, __do_global_dtors): Use word addresses.
    (__tablejump__, __tablejump_elpm__): Remove functions.
    * t-avr (LIB1ASMFUNCS): Remove _tablejump, _tablejump_elpm.
    Add _tablejump2.
    (XICALL, XIJMP): New macros.


Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/config/avr/avr.md
    branches/gcc-4_9-branch/libgcc/ChangeLog
    branches/gcc-4_9-branch/libgcc/config/avr/lib1funcs.S
    branches/gcc-4_9-branch/libgcc/config/avr/t-avr


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