diff options
author | David Edelsohn <edelsohn@gnu.org> | 2004-01-06 19:49:26 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2004-01-06 14:49:26 -0500 |
commit | 72b385617a4c45f7fb10f5fb423f211ecefbbadf (patch) | |
tree | 2e4f681382361f5b172c0925c3fc52479a16c51d | |
parent | 0aaae060e16d2ed5979ba0d0004114e6bafe8d13 (diff) | |
download | gcc-72b385617a4c45f7fb10f5fb423f211ecefbbadf.zip gcc-72b385617a4c45f7fb10f5fb423f211ecefbbadf.tar.gz gcc-72b385617a4c45f7fb10f5fb423f211ecefbbadf.tar.bz2 |
xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each function into a separate macro.
* 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.
From-SVN: r75482
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/config/rs6000/xcoff.h | 30 |
2 files changed, 28 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ff3143..9d11ef7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2004-01-06 David Edelsohn <edelsohn@gnu.org> + + * 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. + 2004-01-06 Jan Hubicka <jh@suse.cz> * invoke.texi: Remove typo in last change. diff --git a/gcc/config/rs6000/xcoff.h b/gcc/config/rs6000/xcoff.h index 9bc7c1f..36c2aa8 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) \ { \ |