This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem in split_basic_block


    > 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]