From 4e6bcaa6622f03a709bf0472ffda2f2bd2e17682 Mon Sep 17 00:00:00 2001
From: Olivier Hainque <hainque@adacore.com>
Date: Mon, 30 Dec 2019 21:31:18 +0000
Subject: [PATCH] Identify sections in vx-common.h

2019-12-30  Olivier Hainque  <hainque@adacore.com>

        * config/vx-common.h: Minor reorganization and add
        sectioning comments.

From-SVN: r279779
---
 gcc/ChangeLog          |  5 +++++
 gcc/config/vx-common.h | 20 ++++++++++++++------
 2 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e69810374f77..a11d8ab29c14 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-12-30  Olivier Hainque  <hainque@adacore.com>
+
+	* config/vx-common.h: Minor reorganization and add
+	sectioning comments.
+
 2019-12-30  Doug Rupp  <rupp@adacore.com>
 
 	* config/rs6000/vxworks.h (STARTFILE_PREFIX_SPEC): Define.
diff --git a/gcc/config/vx-common.h b/gcc/config/vx-common.h
index c76dccf2c996..ed3e4254e77c 100644
--- a/gcc/config/vx-common.h
+++ b/gcc/config/vx-common.h
@@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License
 along with GCC; see the file COPYING3.  If not see
 <http://www.gnu.org/licenses/>.  */
 
+/* ------------------------- Common SPEC strings -------------------------  */
+
 /* Most of these will probably be overridden by subsequent headers.  We
    undefine them here just in case, and define VXWORKS_ versions of each,
    to be used in port-specific vxworks.h.  */
@@ -39,12 +41,7 @@ along with GCC; see the file COPYING3.  If not see
 #define VXWORKS_ENDFILE_SPEC ""
 #define VXWORKS_CC1_SPEC ""
 
-/* VxWorks cannot have dots in constructor labels, because it uses a
-   mutant variation of collect2 that generates C code instead of
-   assembly.  Thus each constructor label must be a legitimate C
-   symbol.  FIXME: Have VxWorks use real collect2 instead.  */
-#undef NO_DOLLAR_IN_LABEL
-#define NO_DOT_IN_LABEL
+/* ----------------------- Common type descriptions -----------------------  */
 
 /* VxWorks uses wchar_t == unsigned short (UCS2) on all architectures.  */
 #undef WCHAR_TYPE
@@ -58,6 +55,8 @@ along with GCC; see the file COPYING3.  If not see
 #undef WINT_TYPE_SIZE
 #define WINT_TYPE_SIZE 16
 
+/* ---------------------- Debug and unwind info formats ------------------  */
+
 /* Dwarf2 unwind info is supported, unless overriden by a request for a target
    specific format.
 
@@ -83,6 +82,15 @@ along with GCC; see the file COPYING3.  If not see
 #undef XCOFF_DEBUGGING_INFO
 #undef VMS_DEBUGGING_INFO
 
+/* ------------------------ Misc configuration bits ----------------------  */
+
+/* VxWorks cannot have dots in constructor labels, because it uses a
+   mutant variation of collect2 that generates C code instead of
+   assembly.  Thus each constructor label must be a legitimate C
+   symbol.  FIXME: Have VxWorks use real collect2 instead.  */
+#undef NO_DOLLAR_IN_LABEL
+#define NO_DOT_IN_LABEL
+
 /* Kernel mode doesn't have ctors/dtors, but RTP mode does.  */
 #define TARGET_HAVE_CTORS_DTORS false
 #define VXWORKS_OVERRIDE_OPTIONS /* empty */
-- 
GitLab