From: kenner@vlsi1.ultra.nyu.edu (Richard Kenner)
To: rth@redhat.com
Cc: gcc@gcc.gnu.org
Subject: Re: Problem in split_basic_block
Date: Wed, 06 Aug 2003 23:42:00 -0000 [thread overview]
Message-ID: <10308062258.AA03807@vlsi1.ultra.nyu.edu> (raw)
> Suggestions?
Provide a test case.
Apply the patch below, then configure for
--target=ia64-hp-openvms8_0 --enable-sjlj-exceptions
Then try to compile the Ada library module a-calend.adb with -gnatpg.
But see the patch I subsequently posted since the above is a lot of work.
*** gcc/config.gcc Fri Jul 25 11:29:12 2003
--- gcc/config.gcc Thu Jul 17 20:12:15 2003
***************
*** 1277,1282 ****
--- 1277,1303 ----
c_target_objs="ia64-c.o"
cxx_target_objs="ia64-c.o"
;;
+ ia64*-hp-*vms*)
+ tm_file="${tm_file} elfos.h ia64/sysv4.h ia64/elf.h ia64/vms.h"
+ tmake_file=ia64/t-vms
+ xmake_file=ia64/x-vms
+ target_cpu_default="0"
+ if test x$gas = xyes
+ then
+ target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
+ fi
+ exeext=.exe
+ # This removes the cpu type and manufacturer components and
+ # replaces "." with "_" in the operating system version.
+ case $host in *-*-*vms*)
+ target_alias=`echo $host \
+ | sed 's/.*-.*-\(.*\)$/\1/' | sed 's/\./_/g'`
+ ;;
+ esac
+ install_headers_dir=install-headers-cp
+ prefix=/gnu
+ local_prefix=/gnu
+ ;;
ip2k-*-elf)
tm_file="elfos.h ${tm_file}"
;;
*** /dev/null Fri Jul 25 12:42:42 2003
--- gcc/gcc/config/ia64/t-vms Thu Jul 17 19:36:54 2003
***************
*** 0 ****
--- 1,43 ----
+ LIB1ASMSRC = ia64/lib1funcs.asm
+
+ # We use different names for the DImode div/mod files so that they won't
+ # conflict with libgcc2.c files. We used to use __ia64 as a prefix, now
+ # we use __ as the prefix. Note that L_divdi3 in libgcc2.c actually defines
+ # a TImode divide function, so there is no actual overlap here between
+ # libgcc2.c and lib1funcs.asm.
+ LIB1ASMFUNCS = __divtf3 __divdf3 __divsf3 \
+ __divdi3 __moddi3 __udivdi3 __umoddi3 \
+ __divsi3 __modsi3 __udivsi3 __umodsi3 __save_stack_nonlocal \
+ __nonlocal_goto __restore_stack_nonlocal __trampoline
+
+ STMP_FIXPROTO =
+ STMP_FIXINC =
+
+ LIB2FUNCS_EXTRA =
+
+ # VMS_EXTRA_PARTS is defined in x-vms and represent object files that
+ # are only needed for VMS targets, but can only be compiled on a VMS host
+ # (because they need DEC C).
+ EXTRA_PARTS = $(VMS_EXTRA_PARTS)
+
+ # Effectively disable the crtbegin/end rules using crtstuff.c
+ T = disable
+
+ # Assemble startup files.
+ vcrt0.o: $(CRT0_S) $(GCC_PASSES)
+ ./decc -c /names=as_is $(srcdir)/config/ia64/vms-crt0.c -o vcrt0.o
+
+ pcrt0.o: $(CRT0_S) $(GCC_PASSES)
+ ./decc -c /names=as_is $(srcdir)/config/ia64/vms-psxcrt0.c -o pcrt0.o
+
+ LIB2ADDEH = $(srcdir)/unwind-sjlj.c
+
+ # ??? Hack to get -P option used when compiling lib1funcs.asm, because Intel
+ # assembler does not accept # line number as a comment.
+ # ??? This breaks C++ pragma interface/implementation, which is used in the
+ # C++ part of libgcc2, hence it had to be disabled. Must find some other way
+ # to support the Intel assembler.
+ #LIBGCC2_DEBUG_CFLAGS = -g1 -P
+
+ # genattrtab generates very long string literals.
+ insn-attrtab.o-warn = -Wno-error
*** /dev/null Fri Jul 25 12:42:34 2003
--- gcc/gcc/config/ia64/vms.h Thu Jul 17 19:36:55 2003
***************
*** 0 ****
--- 1,108 ----
+ /* Output variables, constants and external declarations, for GNU compiler.
+ Copyright (C) 2003
+ Free Software Foundation, Inc.
+
+ This file is part of GNU CC.
+
+ GNU CC is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ GNU CC is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with GNU CC; see the file COPYING. If not, write to
+ the Free Software Foundation, 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+ #define TARGET_OBJECT_SUFFIX ".obj"
+ #define TARGET_EXECUTABLE_SUFFIX ".exe"
+
+ #define TARGET_OS_CPP_BUILTINS() \
+ do { \
+ builtin_define_std ("vms"); \
+ builtin_define_std ("VMS"); \
+ builtin_define ("__IA64"); \
+ builtin_assert ("system=vms"); \
+ builtin_define ("__IEEE_FLOAT"); \
+ } while (0)
+
+ /* By default, allow $ to be part of an identifier. */
+ #define DOLLARS_IN_IDENTIFIERS 2
+
+ #undef TARGET_ABI_OPEN_VMS
+ #define TARGET_ABI_OPEN_VMS 1
+
+ #undef TARGET_NAME
+ #define TARGET_NAME "OpenVMS/IA64"
+ #undef TARGET_VERSION
+ #define TARGET_VERSION fprintf (stderr, " (%s)", TARGET_NAME);
+
+ /* "long" is 32 bits, but 64 bits for Ada. */
+ #undef LONG_TYPE_SIZE
+ #define LONG_TYPE_SIZE 32
+ #define ADA_LONG_TYPE_SIZE 64
+
+ /* Pointer is 32 bits but the hardware has 64-bit addresses, sign extended. */
+ #undef POINTER_SIZE
+ #define POINTER_SIZE 32
+ #define POINTERS_EXTEND_UNSIGNED 0
+
+ #undef STARTFILE_SPEC
+ #define STARTFILE_SPEC "%{!shared:%{mvms-return-codes:vcrt0.o%s} \
+ %{!mvms-return-codes:pcrt0.o%s}}"
+
+ #ifdef ENDFILE_SPEC
+ #undef ENDFILE_SPEC
+ #endif
+
+ #ifdef LINK_SPEC
+ #undef LINK_SPEC
+ #endif
+
+ #ifdef LIB_SPEC
+ #undef LIB_SPEC
+ #endif
+ #define LIB_SPEC ""
+
+ #ifdef ASM_SPEC
+ #undef ASM_SPEC
+ #endif
+ #define ASM_SPEC \
+ "%{!mgnu-as:-N so} %{mgnu-as:-x} %{mconstant-gp:-M const_gp}\
+ %{mauto-pic:-M no_plabel} %{!mvms_upcase:-N vms_upcase}"
+
+ /* Define the names of the division and modulus functions. */
+ #define DIVSI3_LIBCALL "OTS$DIV_I"
+ #define DIVDI3_LIBCALL "OTS$DIV_L"
+ #define UDIVSI3_LIBCALL "OTS$DIV_UI"
+ #define UDIVDI3_LIBCALL "OTS$DIV_UL"
+ #define MODSI3_LIBCALL "OTS$REM_I"
+ #define MODDI3_LIBCALL "OTS$REM_L"
+ #define UMODSI3_LIBCALL "OTS$REM_UI"
+ #define UMODDI3_LIBCALL "OTS$REM_UL"
+
+ #define NAME__MAIN "__gccmain"
+ #define SYMBOL__MAIN __gccmain
+
+ #define MD_EXEC_PREFIX "/gnu/lib/gcc-lib/"
+ #define MD_STARTFILE_PREFIX "/gnu/lib/gcc-lib/"
+
+ /* Specify the list of include file directories. */
+ #define INCLUDE_DEFAULTS \
+ { \
+ { "/gnu/lib/gcc-lib/include", 0, 0, 0 }, \
+ { "/gnu_gxx_include", 0, 1, 1 }, \
+ { "/gnu_cc_include", 0, 0, 0 }, \
+ { "/gnu/include", 0, 0, 0 }, \
+ { 0, 0, 0, 0 } \
+ }
+
+ #define LONGLONG_STANDALONE 1
+
+ /* Maybe same as HPUX? Needs to be checked. */
+ #define JMP_BUF_SIZE (8 * 76)
next reply other threads:[~2003-08-06 22:52 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-06 23:42 Richard Kenner [this message]
2003-08-06 23:47 ` Zack Weinberg
2003-08-06 23:56 ` Douglas B Rupp
2003-08-06 23:57 ` Zack Weinberg
2003-08-07 0:16 ` Douglas B Rupp
2003-08-07 0:40 ` Zack Weinberg
2003-08-06 23:57 ` Douglas B Rupp
2003-08-07 0:43 ` Zack Weinberg
2003-08-07 0:38 ` Douglas B Rupp
2003-08-07 1:05 ` Zack Weinberg
2003-08-07 20:59 ` Richard Henderson
2003-08-08 23:41 ` Richard Henderson
2003-09-01 13:18 ` Olivier Hainque
-- strict thread matches above, loose matches on Subject: below --
2003-08-10 16:35 Richard Kenner
2003-08-08 23:53 Richard Kenner
2003-08-08 3:04 Richard Kenner
2003-08-10 8:06 ` Jim Wilson
2003-08-07 21:08 Richard Kenner
2003-08-07 22:45 ` Richard Henderson
2003-08-07 20:30 Richard Kenner
2003-08-07 19:30 Nathanael Nerode
2003-08-07 13:10 Richard Kenner
2003-08-07 7:01 Richard Kenner
2003-08-07 19:33 ` Geoff Keating
2003-08-07 5:32 Richard Kenner
2003-08-01 23:07 Richard Kenner
2003-08-06 22:41 ` Richard Henderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10308062258.AA03807@vlsi1.ultra.nyu.edu \
--to=kenner@vlsi1.ultra.nyu.edu \
--cc=gcc@gcc.gnu.org \
--cc=rth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).