diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-19 17:27:18 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-19 17:27:18 +0000 |
commit | 755fa783e823d11a964be88b24eab1bf7666368c (patch) | |
tree | 331042dabc400c80ac08ddae1835f9a3e6300ccc /gcc/config/rs6000/linux64.h | |
parent | d7175aeff80486d3421f38002845779158ce107b (diff) | |
download | gcc-755fa783e823d11a964be88b24eab1bf7666368c.tar.gz |
Add PowerPC target attribute/pragma support
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166947 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/linux64.h')
-rw-r--r-- | gcc/config/rs6000/linux64.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h index b233261286c..0bc774a1f0c 100644 --- a/gcc/config/rs6000/linux64.h +++ b/gcc/config/rs6000/linux64.h @@ -65,10 +65,9 @@ extern int dot_symbols; #define TARGET_USES_LINUX64_OPT 1 #ifdef HAVE_LD_LARGE_TOC -extern enum rs6000_cmodel cmodel; #undef TARGET_CMODEL -#define TARGET_CMODEL cmodel -#define SET_CMODEL(opt) cmodel = opt +#define TARGET_CMODEL rs6000_current_cmodel +#define SET_CMODEL(opt) rs6000_current_cmodel = opt #else #define SET_CMODEL(opt) do {} while (0) #endif @@ -127,7 +126,7 @@ extern enum rs6000_cmodel cmodel; if ((target_flags_explicit & MASK_MINIMAL_TOC) != 0) \ { \ if (rs6000_explicit_options.cmodel \ - && cmodel != CMODEL_SMALL) \ + && rs6000_current_cmodel != CMODEL_SMALL) \ error ("-mcmodel incompatible with other toc options"); \ SET_CMODEL (CMODEL_SMALL); \ } \ @@ -135,7 +134,7 @@ extern enum rs6000_cmodel cmodel; { \ if (!rs6000_explicit_options.cmodel) \ SET_CMODEL (CMODEL_MEDIUM); \ - if (cmodel != CMODEL_SMALL) \ + if (rs6000_current_cmodel != CMODEL_SMALL) \ { \ TARGET_NO_FP_IN_TOC = 0; \ TARGET_NO_SUM_IN_TOC = 0; \ |