aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2019-12-30 21:31:18 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2019-12-30 21:31:18 +0000
commit4e6bcaa6622f03a709bf0472ffda2f2bd2e17682 (patch)
treecaf7288c39870bf7276582cef1ca866ac6bc69f8 /gcc
parentbd8efb667b8b8d63a58ac7443ec7a7d3aad8c31e (diff)
downloadgcc-4e6bcaa6622f03a709bf0472ffda2f2bd2e17682.zip
gcc-4e6bcaa6622f03a709bf0472ffda2f2bd2e17682.tar.gz
gcc-4e6bcaa6622f03a709bf0472ffda2f2bd2e17682.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/vx-common.h20
2 files changed, 19 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e698103..a11d8ab 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 c76dccf..ed3e425 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 */