aboutsummaryrefslogtreecommitdiff
path: root/gcc/output.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2007-02-26 15:53:51 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2007-02-26 15:53:51 +0000
commitb2f4bed8376bb0fd12110ca1eb25d6d5e5b6fb24 (patch)
treebc456dae4427f9afc91988189cd6ee26800382a0 /gcc/output.h
parent6f7f72f999c4084fb561ad6f0f729e73173a5aa8 (diff)
downloadgcc-b2f4bed8376bb0fd12110ca1eb25d6d5e5b6fb24.zip
gcc-b2f4bed8376bb0fd12110ca1eb25d6d5e5b6fb24.tar.gz
gcc-b2f4bed8376bb0fd12110ca1eb25d6d5e5b6fb24.tar.bz2
output.h (assemble_addr_to_section): Declare.
* output.h (assemble_addr_to_section): Declare. (get_cdtor_priority_section): Likewise. * varasm.c (assemble_addr_to_section): New function. (get_cdtor_priority_section): Likewise. (default_named_section_asm_out_destructor): Use them. (destor_dtor_section_asm_out_destructor): Likewise. (default_named_section_asm_out_constructor): Likewise. (default_ctor_section_asm_out_constructor): Likewise. * config.gcc (*-*-vxworks*): Include vxworks.o. * config/t-vxworks (vxworks.o): New target. * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove. (TARGET_ASM_CONSTRUCTOR): Define. (TARGET_ASM_DESTRUCTOR): Likewise. (vxworks_asm_out_constructor): Declare. (vxworks_asm_out_destructor): Likewise. * c-common.c (get_priority): Check that we have not just an INTEGER_CST, but an integer constant with integeral type. * gcc.dg/vxworks/vxworks.exp: New file. * gcc.dg/vxworks/initpri1.c: Likewise. * gcc.dg/vxworks/initpri2.c: Likewise. * gcc.dg/initpri2.c: Add more tests. * g++.dg/special/initpri2.C: Likewise. From-SVN: r122335
Diffstat (limited to 'gcc/output.h')
-rw-r--r--gcc/output.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/output.h b/gcc/output.h
index 4e7ccf6..3c9bcc4 100644
--- a/gcc/output.h
+++ b/gcc/output.h
@@ -272,6 +272,9 @@ extern bool assemble_integer (rtx, unsigned, unsigned, int);
extern void assemble_real (REAL_VALUE_TYPE, enum machine_mode, unsigned);
#endif
+/* Write the address of the entity given by SYMBOL to SEC. */
+extern void assemble_addr_to_section (rtx, section *);
+
/* Return the size of the constant pool. */
extern int get_pool_size (void);
@@ -572,6 +575,10 @@ extern section *function_section (tree);
extern section *unlikely_text_section (void);
extern section *current_function_section (void);
+/* Return the numbered .ctors.N (if CONSTRUCTOR_P) or .dtors.N (if
+ not) section for PRIORITY. */
+extern section *get_cdtor_priority_section (int, bool);
+
extern bool unlikely_text_section_p (section *);
extern void switch_to_section (section *);
extern void output_section_asm_op (const void *);