summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/xcoff.h
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-06 19:49:26 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-06 19:49:26 +0000
commitdcdbee1d1f52ea4150c05b8d3d0b215473f1dc37 (patch)
tree2e4f681382361f5b172c0925c3fc52479a16c51d /gcc/config/rs6000/xcoff.h
parenta5475a84634d2755d42d2a1a406c5ce6e97b847e (diff)
downloadgcc-dcdbee1d1f52ea4150c05b8d3d0b215473f1dc37.tar.gz
* config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
function into a separate macro. (read_only_data_section): Add void argument. (private_data_section): Same. (read_only_private_data_section): Same. (toc_section): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75482 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/xcoff.h')
-rw-r--r--gcc/config/rs6000/xcoff.h30
1 files changed, 19 insertions, 11 deletions
diff --git a/gcc/config/rs6000/xcoff.h b/gcc/config/rs6000/xcoff.h
index 9bc7c1f1d2b..36c2aa88623 100644
--- a/gcc/config/rs6000/xcoff.h
+++ b/gcc/config/rs6000/xcoff.h
@@ -69,9 +69,14 @@
BIGGEST_ALIGNMENT is 64, so align the sections that much. */
#define EXTRA_SECTION_FUNCTIONS \
- \
+ READ_ONLY_DATA_SECTION_FUNCTION \
+ PRIVATE_DATA_SECTION_FUNCTION \
+ READ_ONLY_PRIVATE_DATA_SECTION_FUNCTION \
+ TOC_SECTION_FUNCTION
+
+#define READ_ONLY_DATA_SECTION_FUNCTION \
void \
-read_only_data_section () \
+read_only_data_section (void) \
{ \
if (in_section != read_only_data) \
{ \
@@ -79,10 +84,11 @@ read_only_data_section () \
xcoff_read_only_section_name); \
in_section = read_only_data; \
} \
-} \
- \
+}
+
+#define PRIVATE_DATA_SECTION_FUNCTION \
void \
-private_data_section () \
+private_data_section (void) \
{ \
if (in_section != private_data) \
{ \
@@ -90,10 +96,11 @@ private_data_section () \
xcoff_private_data_section_name); \
in_section = private_data; \
} \
-} \
- \
+}
+
+#define READ_ONLY_PRIVATE_DATA_SECTION_FUNCTION \
void \
-read_only_private_data_section () \
+read_only_private_data_section (void) \
{ \
if (in_section != read_only_private_data) \
{ \
@@ -101,10 +108,11 @@ read_only_private_data_section () \
xcoff_private_data_section_name); \
in_section = read_only_private_data; \
} \
-} \
- \
+}
+
+#define TOC_SECTION_FUNCTION \
void \
-toc_section () \
+toc_section (void) \
{ \
if (TARGET_MINIMAL_TOC) \
{ \