summaryrefslogtreecommitdiff
path: root/gcc/config/nios2/nios2-opts.h
diff options
context:
space:
mode:
authorsandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-16 00:43:24 +0000
committersandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-16 00:43:24 +0000
commit16e50f8223e480c1462864f7bc9d74eaa70e8936 (patch)
treeb1d96161869c324829935c3225c92cdf829068c9 /gcc/config/nios2/nios2-opts.h
parentff1c28dcd7c8308f8851972cae1b5fd95d9e6f02 (diff)
downloadgcc-16e50f8223e480c1462864f7bc9d74eaa70e8936.tar.gz
2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
PR target/59710 gcc/ * doc/invoke.texi (Option Summary): Document new Nios II -mgpopt= syntax. (Nios II Options): Likewise. * config/nios2/nios2.opt: Add -mgpopt= option support. Modify existing -mgpopt and -mno-gpopt options to be aliases. * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New. * config/nios2/nios2.c (nios2_option_override): Adjust -mgpopt defaulting. (nios2_in_small_data_p): Return true for explicit small data sections even with -G0. (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt= option choices. gcc/testsuite/ * gcc.target/nios2/gpopt-all.c: New test case. * gcc.target/nios2/gpopt-local.c: New test case. * gcc.target/nios2/gpopt-global.c: New test case. * gcc.target/nios2/gpopt-data.c: New test case. * gcc.target/nios2/gpopt-none.c: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219700 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/nios2/nios2-opts.h')
-rw-r--r--gcc/config/nios2/nios2-opts.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/config/nios2/nios2-opts.h b/gcc/config/nios2/nios2-opts.h
index 5523afdcbb2..91abdf6c7d9 100644
--- a/gcc/config/nios2/nios2-opts.h
+++ b/gcc/config/nios2/nios2-opts.h
@@ -20,6 +20,18 @@ along with GCC; see the file COPYING3. If not see
#ifndef NIOS2_OPTS_H
#define NIOS2_OPTS_H
+/* Enumerate the possible -mgpopt choices. */
+enum nios2_gpopt_type
+{
+ gpopt_unspecified = -1,
+ gpopt_none,
+ gpopt_local,
+ gpopt_global,
+ gpopt_data,
+ gpopt_all
+};
+
+
/* Enumeration of all FPU insn codes. */
#define N2FPU_ALL_CODES \
N2FPU_CODE(fadds) N2FPU_CODE(fsubs) N2FPU_CODE(fmuls) N2FPU_CODE(fdivs) \