aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2007-02-27 15:49:23 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2007-02-27 15:49:23 +0000
commitf6fc5c864bf5b85e668042d2e7bdd3f9a496fde5 (patch)
tree6202d439e8eccfb35cb0bd6d9cf4e61e9222cb64 /gcc/c-common.c
parent97130915859e571fc8eb6e4ff0eab2ad5e737cc9 (diff)
downloadgcc-f6fc5c864bf5b85e668042d2e7bdd3f9a496fde5.zip
gcc-f6fc5c864bf5b85e668042d2e7bdd3f9a496fde5.tar.gz
gcc-f6fc5c864bf5b85e668042d2e7bdd3f9a496fde5.tar.bz2
c-common.c (get_priority): Add check for SUPPORTS_INIT_PRIORITY.
* c-common.c (get_priority): Add check for SUPPORTS_INIT_PRIORITY. * lib/target-supports.exp (check_effective_target_init_priority): Remove Solaris special case. From-SVN: r122378
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 0cd4d1a..8d321a2 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -4697,6 +4697,15 @@ get_priority (tree args, bool is_destructor)
if (!args)
return DEFAULT_INIT_PRIORITY;
+ if (!SUPPORTS_INIT_PRIORITY)
+ {
+ if (is_destructor)
+ error ("destructor priorities are not supported");
+ else
+ error ("constructor priorities are not supported");
+ return DEFAULT_INIT_PRIORITY;
+ }
+
arg = TREE_VALUE (args);
if (!host_integerp (arg, /*pos=*/0)
|| !INTEGRAL_TYPE_P (TREE_TYPE (arg)))