OSDN Git Service

* config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jan 2004 19:49:26 +0000 (19:49 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jan 2004 19:49:26 +0000 (19:49 +0000)
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

gcc/ChangeLog
gcc/config/rs6000/xcoff.h

index 8ff3143..9d11ef7 100644 (file)
@@ -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.
index 9bc7c1f..36c2aa8 100644 (file)
    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)                              \
     {                                                  \