aboutsummaryrefslogtreecommitdiff
path: root/gcc/target-def.h
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>2008-08-30 23:50:40 +0000
committerMichael Meissner <meissner@gcc.gnu.org>2008-08-30 23:50:40 +0000
commit5779e7133d84c5873249bb643d9852f314022f0b (patch)
treeb3ee120a2ecf25d00fba24415c8566f83135a110 /gcc/target-def.h
parent0257eee5bd4700647061f61b13a2f89b2a4b4f28 (diff)
downloadgcc-5779e7133d84c5873249bb643d9852f314022f0b.zip
gcc-5779e7133d84c5873249bb643d9852f314022f0b.tar.gz
gcc-5779e7133d84c5873249bb643d9852f314022f0b.tar.bz2
Change attribute((option(...))) to attribute((target(...))); Do not allocate tree nodes on x86 for builtins until we generate code for the ISA; Delete hot/cold functions changing optimization; Make C++ support target specific functions; Add #pragma GCC {push_options,pop_options,reset_options} instead of #pragma GCC {target,optimize} {push,reset,pop}
From-SVN: r139812
Diffstat (limited to 'gcc/target-def.h')
-rw-r--r--gcc/target-def.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/target-def.h b/gcc/target-def.h
index 18b0eb5..817cae4 100644
--- a/gcc/target-def.h
+++ b/gcc/target-def.h
@@ -766,7 +766,8 @@
/* Function specific option attribute support. */
#ifndef TARGET_OPTION_VALID_ATTRIBUTE_P
-#define TARGET_OPTION_VALID_ATTRIBUTE_P NULL
+#define TARGET_OPTION_VALID_ATTRIBUTE_P \
+ default_target_option_valid_attribute_p
#endif
#ifndef TARGET_OPTION_SAVE
@@ -782,21 +783,13 @@
#endif
#ifndef TARGET_OPTION_PRAGMA_PARSE
-#define TARGET_OPTION_PRAGMA_PARSE NULL
+#define TARGET_OPTION_PRAGMA_PARSE default_target_option_pragma_parse
#endif
#ifndef TARGET_OPTION_CAN_INLINE_P
#define TARGET_OPTION_CAN_INLINE_P default_target_option_can_inline_p
#endif
-#ifndef TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION
-#define TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION false
-#endif
-
-#ifndef TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION
-#define TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION false
-#endif
-
#define TARGET_OPTION_HOOKS \
{ \
TARGET_OPTION_VALID_ATTRIBUTE_P, \
@@ -805,8 +798,6 @@
TARGET_OPTION_PRINT, \
TARGET_OPTION_PRAGMA_PARSE, \
TARGET_OPTION_CAN_INLINE_P, \
- TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION, \
- TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION, \
}
/* The whole shebang. */