Commit Graph

45835 Commits

Author SHA1 Message Date
Jakub Jelinek
5bbcd587a2 gcc.c (print_multi_os_directory): New variable.
* gcc.c (print_multi_os_directory): New variable.
	(option_map): Support --print-multi-os-directory.
	(struct prefix_list): Add os_multilib field.
	(multilib_os_dir): New variable.
	(static_specs): Add multilib_options.
	(find_a_file): Add multilib argument.  Search in GCC or OS multilib
	subdirs if non-zero.
	(read_specs, execute): Update callers.
	(find_file): Likewise.  Don't prefix name with multilib_dir, instead
	pass 1 as multilib option.
	(display_help): Include --print-multi-os-directory.
	(add_prefix): Add os_multilib argument.  Initialize pl->os_multilib.
	(process_command): Update callers.  Handle --print-multi-os-directory.
	(do_spec_1) ['D']: Use multilib_os_directory if pl->os_multilib is
	set.
	(main): Update find_a_file and add_prefix callers.
	Handle print_multi_os_directory.
	(struct mdswitchstr): New.
	(mdswitches, n_mdswitches): New variables.
	(used_arg): Add MULTILIB_DEFAULT switches too if they are not
	present on the command line nor their mutually incompatible
	switches.
	(default_arg): Optimize.
	(set_multilib_dir): Compute multilib_os_dir.  Initialize mdswitches
	array.
	(print_multilib_info): Only print GCC multilib dir name, not OS
	multilib dirname.
	* genmultilib: Add osdirnames parameter.  Output multilib_options
	variable.  If osdirnames is specified, output dirnames as
	dirname:osdirname.
	* mklibgcc.in: Use MULTILIB_OSDIRNAMES, --print-multi-directory
	and --print-multi-os-directory instead of SHLIB_SLIBDIR_SUFFIXES
	to compute libgcc_s soname and install path.
	* Makefile.in (libgcc.mk): Pass MULTILIB_OSDIRNAMES instead of
	SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
	(s_mlib): Pass MULTILIB_OSDIRNAMES or nothing as last genmultilib
	argument.

	* config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Set.
	(SHLIB_SLIBDIR_SUFFIXES): Remove.
	* config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64,
	ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_COMMON): Remove.
	(STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between -m32
	and -m64.
	* config/sparc/t-sol2-64 (MULTILIB_OSDIRNAMES): Set.
	(SHLIB_SLIBDIR_SUFFIXES): Remove.
	* config/sparc/sol2-bi.h (STARTFILE_ARCH64_SPEC): Remove.
	(STARTFILE_ARCH_SPEC): Remove.
	* config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Set.
	(SHLIB_SLIBDIR_SUFFIXES): Remove.
	* config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
	* config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Set.
	(SHLIB_SLIBDIR_SUFFIXES): Remove.

From-SVN: r57786
2002-10-03 22:35:14 +02:00
Jan Hubicka
c07f146f07 * predict.c (choose_function_section): Avoid choice for linkonce functions.
From-SVN: r57785
2002-10-03 19:43:00 +00:00
Nathanael Nerode
aba8a49486 Makefile.tpl: Make SET_LIB_PATH substitution more autoconfy.
2002-10-03  Nathanael Nerode  <neroden@gcc.gnu.org>

	* Makefile.tpl: Make SET_LIB_PATH substitution more autoconfy.
	* configure.in: Make SET_LIB_PATH substitution more autoconfy.
	* Makefile.in: Regenerate.

From-SVN: r57783
2002-10-03 19:06:16 +00:00
Nathanael Nerode
fe3d5b7ff1 Makefile.tpl: Make RPATH_ENVVAR substitution more autoconfy.
2002-10-03  Nathanael Nerode  <neroden@gcc.gnu.org>

	* Makefile.tpl: Make RPATH_ENVVAR substitution more autoconfy.
	* configure.in: Make RPATH_ENVVAR substitution more autoconfy.
	* Makefile.in: Regenerate.

From-SVN: r57782
2002-10-03 18:50:19 +00:00
Tom Tromey
3db03e43f9 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (awt_java_source_files): Added new files.

From-SVN: r57781
2002-10-03 18:22:40 +00:00
Michael Koch
8e3cce3234 InetAddress.java (class InetAddress): Removed final keyword.
2002-10-03  Michael Koch  <konqueror@gmx.de>

	* java/net/InetAddress.java
	(class InetAddress): Removed final keyword.
	(equals): Fixed typo.
	(getByAddress): New method.

From-SVN: r57779
2002-10-03 17:17:39 +00:00
Richard Earnshaw
bfc1eae300 re PR libstdc++/3584 (arm-specific atomic operations not atomic)
PR libstdc++/3584
* config/cpu/arm/atomicity.h (__exchange_and_add): Don't try to use
ASM sequences that don't give us atomic addition operations.  Instead
just add a comment explaining why it doesn't work.
(__atomic_add): Just use __exchange_and_add.
(__test_and_set, __always_swap): Delete.

From-SVN: r57778
2002-10-03 15:58:29 +00:00
Michael Koch
e37383993d Autoscroll.java: New file, merge from Classpath.
2002-10-03  Michael Koch  <konqueror@gmx.de>

	* java/awt/dnd/Autoscroll.java:
	New file, merge from Classpath.
	* java/awt/dnd/DragSourceAdapter.java:
	(dragExit): Fixed typos in argument type.
	(dragDropEnd): Fixed typos in argument type.
	* java/awt/dnd/DragSourceDropEvent.java:
	New file, merge from Classpath.
	* java/awt/dnd/DropTarget.java:
	Added stubs, merge from Classpath.
	* java/awt/dnd/DropTargetAdapter.java:
	New file, merge from Classpath.
	* java/awt/dnd/DropTargetContext.java:
	New file, merge from Classpath.
	* java/awt/dnd/DropTargetDragEvent.java:
	New file, merge from Classpath.
	* java/awt/dnd/DropTargetDropEvent.java:
	New file, merge from Classpath.
	* java/awt/dnd/DropTargetEvent.java:
	New file, merge from Classpath.
	* java/awt/dnd/DropTargetListener.java:
	New file, merge from Classpath.
	* java/awt/dnd/MouseDragGestureRecognizer.java:
	New file, merge from Classpath.
	* java/awt/dnd/peer/DropTargetContextPeer.java:
	New file, merge from Classpath.

From-SVN: r57777
2002-10-03 14:40:43 +00:00
Michael Koch
a8e8f5c359 2002-10-03 Michael Koch <konqueror@gmx.de>
* java/net/DatagramPacket.java
	(setLength): Fixed typo and be HTML-aware.
	* java/net/InetSocketAddress.java
	(InetSocketAddress): Correct initialization of hostname, fixed typo.
	(equals): Added comment about equality of InetSocketAddress objects.
	* java/net/ServerSocket.java
	(accept): Added checks.
	(isClosed): New stubbed method.
	* java/net/SocketOptions.java: Reindention.
	* java/net/SocketPermission
	(SocketPermission): Documentation fixed.

From-SVN: r57776
2002-10-03 14:30:48 +00:00
Jan Hubicka
4c9c9a3da5 * i386.md (lea to mul peep2): Fix condition.
From-SVN: r57775
2002-10-03 13:15:53 +00:00
Andrew Haley
cd8dbeeff3 Array_3.java (baz): New.
2002-10-03  Andrew Haley  <aph@redhat.com>

	* libjava.lang/Array_3.java (baz): New.
	(main): Call baz.

From-SVN: r57774
2002-10-03 13:12:01 +00:00
Michael Koch
e832ab3c91 2002-09-30 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java
	(receive): Check with SecurityManager AFTER the packet is received,
	check if connected to multicast address, documentation added.
	(send): Only check SecurityManager if connected, check address of
	packet to send.
	(connect): Implemented, documentation added.
	* java/net/Inet6Address.java: New file (not added yet to Makefile.am).
	* java/net/InetSocketAddress.java
	(whole file): Reindented.
	(hostname): New attribute.
	(InetSocketAddress): Initialize new attribute.
	(getAddress): Documentation added.
	(getHostName): Documentation added.
	(getPort): Documentation added.
	(hashCode): Documentation added.
	(isUnresolved): Documentation added.
	(toString): Conform to output of JDK 1.4.1, documentation added.
	* java/net/MulticastSocket.java
	(joinGroup): Removed FIXME, documentation added.
	(leaveGroup): Removed FIXME, documentation added.
	(send): Documentation added.
	* java/net/Socket.java
	(inputShutdown): New variable.
	(outputShutdown): New variable.
	(Socket): Initialize new variables.
	(getRemoteSocketAddress): Check if connected.
	(shutdownInput): Set new variable.
	(shutdownOutput): Set new variable.
	(isConnected): New method.
	(isClosed): New method.
	(isInputShutdown): New method.
	(isOutputShutdown): New method.
	* java/net/URLStreamHandler.java
	(URLStreamHandler): New method.
	(openConnection): Added documentation.
	(parseURL): Added documentation.
	(getHostAddress): New method.
	(getDefaultPort): New method.

From-SVN: r57772
2002-10-03 11:23:33 +00:00
GCC Administrator
3eacc81d00 Daily bump.
From-SVN: r57771
2002-10-03 07:17:09 +00:00
Andreas Jaeger
f6c772fef4 Add forgotten ChangeLog entry.
From-SVN: r57764
2002-10-03 08:59:13 +02:00
John David Anglin
f50df1d58f pa-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete macro.
* pa-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete macro.
	* pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Define.

From-SVN: r57758
2002-10-03 04:05:54 +00:00
Matt Austern
69788039ff Fixed ChangLog entries that went in the wrong place.
From-SVN: r57753
2002-10-02 21:46:13 +00:00
Tom Tromey
593bbdc115 ActivationDesc.java, [...]: New versions from Classpath.
* java/rmi/activation/ActivationDesc.java,
	java/rmi/activation/ActivationGroupDesc.java,
	java/rmi/activation/ActivationGroupID.java,
	java/rmi/activation/ActivationID.java: New versions from
	Classpath.

From-SVN: r57752
2002-10-02 21:21:37 +00:00
Richard Henderson
d631b80aa7 re PR rtl-optimization/7124 (-O2 -march=athlon produces ICE)
PR opt/7124
        * config/i386/i386.c (ix86_register_move_cost): Increase cost
        for secondary_memory_needed pairs.

From-SVN: r57751
2002-10-02 13:35:49 -07:00
Janis Johnson
a6ad79e790 MAINTAINERS: Add myself as web pages co-maintainer.
2002-10-02  Janis Johnson  <janis187@us.ibm.com>

	* MAINTAINERS: Add myself as web pages co-maintainer.

From-SVN: r57750
2002-10-02 20:02:13 +00:00
Matt Austern
b930e4282a class.c (check_field_decls): Changed warning about const member variables so that it doesn't get issued for...
* class.c (check_field_decls): Changed warning about const member
        variables so that it doesn't get issued for a class aggregate.

From-SVN: r57749
2002-10-02 20:02:10 +00:00
Mark Mitchell
2282d28d48 re PR c++/7188 (Segfault with template class and recursive (incorrect) initalizer list.)
PR c++/7188.
	* cp-tree.def (CTOR_INITIALIZER): Use one slot, not two.
	* cp-tree.h (emit_base_init): Rename to ....
	(emit_mem_initializers): ... this.
	(expand_member_init): Change prototype.
	* init.c (perform_member_init): Compute explicit, rather than
	requiring it as a parameter.
	(sort_member_init): Rename to ...
	(sort_mem_initializers): ... this.  Process bases and data members
	together.
	(sort_base_init): Remove.
	(emit_base_init): Rename to ...
	(emit_mem_initializers): ... this.
	(expand_aggr_vbase_init_1): Remove.
	(construct_virtual_bases): Rename to ...
	(construct_virtual_base): ... this.
	(expand_member_init): Rework handling of base initializers.
	* method.c (do_build_copy_constructor): Use
	finish_mem_initializers.
	* parse.y (member_init): Adjust calls to expand_member_init.
	* pt.c (tsubst_expr): Simplify CTOR_INITIALIZER case.
	(tsubst_initializer_list): Use expand_member_init.
	* semantics.c (finish_mem_intiailizers): Simplify.

	PR c++/7188.
	* g++.dg/template/meminit1.C: New test.
	* g++.dg/warn/Wreorder-1.C: Likewise.
	* g++.old-deja/g++.mike/warn3.C: Tweak.
	* lib/prune.exp: Ingore "in copy constructor".

From-SVN: r57748
2002-10-02 20:01:38 +00:00
Nathanael Nerode
854ef3909d vms.texi: Blow away false include file section.
2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>

	* doc/vms.texi: Blow away false include file section.

From-SVN: r57747
2002-10-02 19:17:30 +00:00
Nathanael Nerode
6a8a90589c Makefile.tpl: Eliminate reference to all-gui, all-libproc.
2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>

	* Makefile.tpl: Eliminate reference to all-gui, all-libproc.
	* Makefile.in: Regenerate.

From-SVN: r57746
2002-10-02 19:12:43 +00:00
Roger Sayle
f963b5d977 re PR rtl-optimization/6627 (-fno-align-functions regression from 2.95)
PR optimization/6627
	* toplev.c (force_align_functions_log): New global variable.
	* flags.h (force_align_functions_log): Add extern prototype.
	* varasm.c (assemble_start_function): Use it to force minimum
	function alignment.
	* config/i386/i386.h (FUNCTION_BOUNDARY): Set the correct
	minimum function alignment to one byte.
	(TARGET_PTRMEMFUNC_VBIT_LOCATION): Store the virtual bit in
	the least significant bit of vtable member function pointers.
	* tree.h (enum ptrmemfunc_vbit_where_t): Move definition to
	here from cp/cp-tree.h.

	* cp/cp-tree.h (enum ptrmemfunc_vbit_where_t): Delete definition
	from here, and move it to tree.h.
	* cp/decl.c (cxx_init_decl_processing): If storing the vbit
	in function pointers, ensure that force_align_functions_log
	is atleast one.

	* java/lang.c (java_init): If storing the vbit in function
	pointers, ensure that force_align_functions_log is atleast
	one to aid compatability with g++ vtables.

From-SVN: r57745
2002-10-02 18:46:45 +00:00
Zack Weinberg
327d975a3a MAINTAINERS: Add myself and Nathan Sidwell <nathan@codesourcery.com> as VxWorks maintainers.
* MAINTAINERS: Add myself and Nathan Sidwell
	<nathan@codesourcery.com> as VxWorks maintainers.

From-SVN: r57743
2002-10-02 17:51:40 +00:00
Andreas Jaeger
3a3f686886 baseline_symbols.txt: New file.
* config/abi/x86_64-unknown-linux-gnu/baseline_symbols.txt:
	New file.

From-SVN: r57742
2002-10-02 18:46:38 +02:00
Matt Austern
0246d49e5b decl.c (walk_vtables_r): Fixed typo that caused result to never get a nonzero value.
* cp/decl.c (walk_vtables_r): Fixed typo that caused result to
	never get a nonzero value.

From-SVN: r57741
2002-10-02 16:00:33 +00:00
Jan Hubicka
200bcf7efc i386.c (print_operand_address): Use RIP addressing for offsetted label refs too.
* i386.c (print_operand_address): Use RIP addressing for offsetted
	label refs too.

From-SVN: r57740
2002-10-02 15:02:50 +00:00
Andreas Jaeger
e5ec43ac7b Enable tests on x86-64.
From-SVN: r57737
2002-10-02 10:26:51 +02:00
GCC Administrator
7217543f1e Daily bump.
From-SVN: r57736
2002-10-02 07:17:13 +00:00
Nathanael Nerode
a5ae8f192b Fix bogus date.
From-SVN: r57730
2002-10-02 06:27:54 +00:00
Nathanael Nerode
f5e0c73c6c Makefile.def: Remove order dependency comments.
2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>

	* Makefile.def: Remove order dependency comments.
	* Makefile.tpl: Add explicit install-install dependencies.
	* Makefile.in: Regenerate.

From-SVN: r57729
2002-10-02 06:27:24 +00:00
Andreas Jaeger
eae853b7d5 * include/private/gcconfig.h (HBLKSIZE): Define for x86-64.
From-SVN: r57728
2002-10-02 08:25:37 +02:00
Nathanael Nerode
34c6040cc2 Makefile.tpl: Remove material now in src-release.
2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>

	* Makefile.tpl: Remove material now in src-release.  (Finally!)

	* Makefile.in: Regenerate.

From-SVN: r57727
2002-10-02 06:22:33 +00:00
Andreas Jaeger
af50f4c807 * src/x86/ffi64.c (ffi_prep_cif_machdep): Remove debug output.
From-SVN: r57726
2002-10-02 08:21:54 +02:00
Nathanael Nerode
39a744bbe4 Really this time. :sigh:
2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>

	* Makefile.tpl: Add configure-target (for src-release in src)
	* Makefile.in: Regenerate.

From-SVN: r57725
2002-10-02 05:14:00 +00:00
Nathanael Nerode
d0f6c8235e Makefile.tpl: Add configure-target (for src-release in src)
2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>

	* Makefile.tpl: Add configure-target (for src-release in src)
	* Makefile.in: Regenerate.

From-SVN: r57724
2002-10-02 05:11:25 +00:00
David S. Miller
88d0be174e re PR middle-end/7151 ([sparc] ICE when compiling for UltraSPARC)
2002-09-30  David S. Miller  <davem@redhat.com>

	PR middle-end/7151
	* config/sparc/sparc.md (movdi_insn_sp32_v9): Accept 'e' regs.
	(movdi reg/reg split): Match only on sparc32, and v9 when int regs.

From-SVN: r57723
2002-10-01 20:49:09 -07:00
Roger Sayle
f10aac290a * unroll.c (loop_iterations): Revert 2002-09-08 change.
From-SVN: r57720
2002-10-02 02:48:10 +00:00
Richard Henderson
69bd00e681 real.c (real_to_decimal): Crop trailing zeros for DIGITS < 0.
* real.c (real_to_decimal): Crop trailing zeros for DIGITS < 0.
        (real_to_hexadecimal): Likewise.
        * print-rtl.c (print_rtx): If we are linked with real.c, don't
        dump the XWINT fields of a floating point CONST_DOUBLE.

From-SVN: r57719
2002-10-01 19:38:02 -07:00
Richard Henderson
ebc4cdc135 Fix dg-options typo.
From-SVN: r57718
2002-10-01 18:55:10 -07:00
Mark Mitchell
d881ff2579 decl.c (cp_finish_decl): Make sure array types are laid out, even if the array bounds are unknown.
* decl.c (cp_finish_decl): Make sure array types are laid out,
	even if the array bounds are unknown.

From-SVN: r57717
2002-10-02 01:16:22 +00:00
Phil Edwards
db1a6d8676 Makefile.am (check-abi): Add @ to rule.
2002-10-01  Phil Edwards  <pme@gcc.gnu.org>

	* Makefile.am (check-abi):  Add @ to rule.
	* Makefile.in:  Regenerated.

From-SVN: r57715
2002-10-02 01:05:13 +00:00
Jason Thorpe
3b5742ab58 * config/vax/elf.h (FUNCTION_PROFILER): Fix __mcount call.
From-SVN: r57713
2002-10-02 00:57:53 +00:00
Steve Ellcey
2e88ae2267 class.c (build_vtbl_initializer): Change build_c_cast to build1.
* cp/class.c (build_vtbl_initializer): Change build_c_cast
	to build1.

From-SVN: r57712
2002-10-01 22:47:09 +00:00
Jason Thorpe
b6aa31c56a Oops, this file missed in previous checkin.
2002-10-01  Matt Thomas  <matt@3am-software.com>
            Jason Thorpe  <thorpej@wasabisystems.com>

* config.gcc (vax-*-netbsdelf*): Enable configuration.
* config/elfos.h (PCC_BITFIELD_TYPE_MATTERS): Define only
if not already defined.
* config/vax/elf.h: New file.
* config/vax/netbsd-elf.h: New file.
* config/vax/vax.c: Include "debug.h".
(vax_output_function_prologue): Add dwarf2 support.  Use
MAIN_NAME_P when checking for VMS_TARGET stack adjust.
* config/vax/vax.h (CONST_OK_FOR_LETTER_P): Add cases for
'J' [0..63], 'K' [-128..127], 'L' [-32768..32767],
'M' [0..255], 'N' [0..65535], and, 'O' [-63..-1].
(VAX_ISTREAM_SYNC): Remove.
(INITIALIZE_TRAMPOLINE): Use gen_sync_istream.
(JUMP_TABLES_IN_TEXT_SECTION): Define.
(ASM_OUTPUT_REG_POP): Use reg_names for the stack pointer.
(ASM_OUTPUT_ADDR_VEC_ELT): Use ASM_GENERATE_INTERNAL_LABEL
and assemble_name.
(ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
(PRINT_OPERAND_PUNCT_VALID_P): Accept '|'.
(PRINT_OPERAND): Output REGISTER_PREFIX for '|'.
(INCOMING_RETURN_ADDR_RTX): Define.
* config/vax/vax.md (VUNSPEC_BLOCKAGE)
(VUNSPEC_SYNC_ISTREAM): Define.
(blockage): Use VUNSPEC_BLOCKAGE.
(sync_istream): New insn.


2002-10-01  Richard Henderson  <rth@redhat.com>

* config/vax/vax.md (call_pop, *call_pop, call_value_pop)
(*call_value_pop, call, call_value): Add dwarf2 EH support.
(*call): New insn.

From-SVN: r57711
2002-10-01 22:24:02 +00:00
Mark Mitchell
a1d1a0f9b0 * gcc.dg/empty1.C: Fix typo.
From-SVN: r57710
2002-10-01 22:23:55 +00:00
Richard Henderson
fd1e5d25e3 calls.c (precompute_register_parameters): Force non-legitimate constants into pseudos.
* calls.c (precompute_register_parameters): Force non-legitimate
        constants into pseudos.
	* gcc.dg/tls/opt-3.c: New.

From-SVN: r57709
2002-10-01 13:49:39 -07:00
Nick Clifton
78872ad9bd (spe_evrlwi): Add missing third operand to assembler template.
From-SVN: r57707
2002-10-01 20:39:03 +00:00
Richard Henderson
3c655f42e4 dwarf2out.c (loc_descriptor_from_tree): Relax requirement for TLS debug info to !DECL_EXTERNAL.
* dwarf2out.c (loc_descriptor_from_tree): Relax requirement
        for TLS debug info to !DECL_EXTERNAL.

From-SVN: r57706
2002-10-01 13:24:52 -07:00