This is the mail archive of the gcc-cvs@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]

r241970 - in /branches/ARM/embedded-6-branch/gc...


Author: avieira
Date: Tue Nov  8 14:36:28 2016
New Revision: 241970

URL: https://gcc.gnu.org/viewcvs?rev=241970&root=gcc&view=rev
Log:
[ARM] Add support for -mpure-code option

	gcc/ChangeLog.arm:
2016-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>

	Backport from mainline
	2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
	            Jakub Jelinek  <jakub@redhat.com>

	* hooks.h (hook_uint_uintp_false): Rename to...
	(hook_bool_uint_uintp_false): ... this.
	* hooks.c (hook_uint_uintp_false): Rename to...
	(hook_bool_uint_uintp_false): ... this.
	* target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
	instead of hook_uint_uintp_false.

	2016-09-23  Richard Biener  <rguenther@suse.de>

	* hooks.h (hook_uint_uintp_false): Declare.

	2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
	            Terry Guo  <terry.guo@arm.com>

	* target.def (elf_flags_numeric): New target hook.
	* targhooks.h (default_asm_elf_flags_numeric): New.
	* varasm.c (default_asm_elf_flags_numeric): New.
	(default_elf_asm_named_section): Use new target hook.
	* config/arm/arm.opt (mpure-code): New.
	* config/arm/arm.h (SECTION_ARM_PURECODE): New.
	* config/arm/arm.c (arm_asm_init_sections): Add section
	attribute to default text section if -mpure-code.
	(arm_option_check_internal): Diagnose use of option with
	non supported targets and/or options.
	(arm_asm_elf_flags_numeric): New.
	(arm_function_section): New.
	(arm_elf_section_type_flags): New.
	* config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
	for -mpure-code.
	* gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
	* gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.

	gcc/testsuite/ChangeLog.arm:
	2016-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>

	Backport from mainline
	2016-10-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>

	* gcc.target/arm/pure-code/pure-code.exp: Require arm_cortex_m
	effective target.

	2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
	            Terry Guo  <terry.guo@arm.com>

	* gcc.target/arm/pure-code/ffunction-sections.c: New.
	* gcc.target/arm/pure-code/no-literal-pool.c: New.
	* gcc.target/arm/pure-code/pure-code.exp: New.



Added:
    branches/ARM/embedded-6-branch/gcc/testsuite/gcc.target/arm/pure-code/
    branches/ARM/embedded-6-branch/gcc/testsuite/gcc.target/arm/pure-code/ffunction-sections.c
    branches/ARM/embedded-6-branch/gcc/testsuite/gcc.target/arm/pure-code/no-casesi.c
    branches/ARM/embedded-6-branch/gcc/testsuite/gcc.target/arm/pure-code/no-literal-pool.c
    branches/ARM/embedded-6-branch/gcc/testsuite/gcc.target/arm/pure-code/pure-code.exp
Modified:
    branches/ARM/embedded-6-branch/gcc/ChangeLog.arm
    branches/ARM/embedded-6-branch/gcc/config/arm/arm.c
    branches/ARM/embedded-6-branch/gcc/config/arm/arm.h
    branches/ARM/embedded-6-branch/gcc/config/arm/arm.md
    branches/ARM/embedded-6-branch/gcc/config/arm/arm.opt
    branches/ARM/embedded-6-branch/gcc/config/arm/elf.h
    branches/ARM/embedded-6-branch/gcc/doc/invoke.texi
    branches/ARM/embedded-6-branch/gcc/doc/tm.texi
    branches/ARM/embedded-6-branch/gcc/doc/tm.texi.in
    branches/ARM/embedded-6-branch/gcc/hooks.c
    branches/ARM/embedded-6-branch/gcc/hooks.h
    branches/ARM/embedded-6-branch/gcc/target.def
    branches/ARM/embedded-6-branch/gcc/testsuite/ChangeLog.arm
    branches/ARM/embedded-6-branch/gcc/varasm.c


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