1. 05 Nov, 2003 14 commits
  2. 04 Nov, 2003 16 commits
    • mips-protos.h (mips_global_pic_constant_p): Delete. · 108b61d5
      	* config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
      	(mips_delegitimize_address): Delete.
      	(mips_gotoff_global, mips_load_got_page): Declare.
      	(mips_load_got_global, mips_rewrite_small_data): Declare.
      
      	* config/mips/mips.h (FIND_BASE_TERM): Remove definition.
      	(DANGEROUS_FOR_LA25_P): Use global_got_operand.
      	(PREDICATE_CODES): Add global_got_operand, local_got_operand and
      	small_data_pattern.  Remove CONST from const_arith_operand's entry.
      
      	* config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
      	(UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
      	(mips_constant_type): Delete.
      	(mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
      	SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
      	(NUM_SYMBOL_TYPES): New macro.
      	(mips_address_type): Remove ADDRESS_INVALID.
      	(machine_function): Add has_gp_insn_p.
      	(mips_constant_info): Delete.
      	(mips_address_info): Add the address type as an extra field.  Replace
      	the c field with symbol_type.
      	(mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
      	(TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
      	(mips_reloc_offset_ok_p, mips_classify_constant): Delete.
      	(mips_split_const, mips_symbolic_constant_p): New functions.
      	(mips_symbolic_address_p): Take the symbol type and mode as arguments.
      	(mips_classify_address): Return true if the address is valid, storing
      	its type in INFO.  Use mips_symbolic_constant_p.  Use mips_lo_relocs[]
      	to test whether a LO_SUM address is allowed.
      	(mips_symbol_insns): Return 0 for general mips16 symbols.
      	Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
      	Handle the new SYMBOL_GOTOFF_*s.
      	(mips_address_insns): Update call to mips_classify_address.
      	(mips_const_insns): Be more fussy about HIGH constants.  Remove use
      	of mips_classify_constant.  Be more accurate about CONSTs.
      	(mips_global_pic_constant_p): Delete.
      	(const_arith_operand): Only accept CONST_INTs.
      	(call_insn_operand): Remove call to mips_classify_constant.
      	Let mips_symbolic_constant_p check for invalid offsets.
      	(move_operand): Check for general_operands first.  Only accept symbolic
      	constants if they satisfy mips_symbolic_constant_p and cannot be split.
      	(symbolic_constant): Use mips_symbolic_constant_p.
      	(global_got_operand, local_got_operand): New predicates.
      	(stack_operand): Update call to mips_classify_address.
      	(mips_legitimate_address_p): Likewise.
      	(mips_reloc, mips_lui_reloc): Delete.
      	(mips_force_temporary): Only use the given temporary if no_new_pseudos.
      	Use emit_move_insn.
      	(mips_split_symbol, mips_unspec_address): New functions.
      	(mips_unspec_offset_high): New function.
      	(mips_load_got): Replace reloc argument with a symbol_type.
      	Use mips_unspec_address to create the address and put it in a
      	LO_SUM with the base register.
      	(mips_load_got16, mips_load_got32): Delete.
      	(mips_emit_high, mips_legitimize_symbol): Delete.
      	(mips_gotoff_global): New function.
      	(mips_load_got_page, mips_load_got_global): New functions.
      	(mips_legitimize_symbol): Inline handling of LO_SUM splits.
      	(mips_legitimize_const_move): Likewise.  Remove HIGH handling.
      	Inline code to handle constants plus invalid offsets.  Use
      	mips_split_symbol to legitimize constant pool addresses.
      	(mips_delegitimize_address): Delete.
      	(mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
      	a cost of 1 insn.  Give the rest a cost of CONSTANT_POOL_ADDRESS.
      	(mips_subword): Pass memrefs through mips_rewrite_small_data.
      	(mips_output_move): Remove use of mips_classify_constant.
      	(mips_expand_call): Use mips_unspec_offset_high to calculate the
      	high part of the GOT address for calls to global functions.
      	(override_options): Initialize mips_split_p[], mips_lo_relocs[]
      	and mips_hi_relocs[].
      	(print_operand): Use print_operand_reloc to handle '%h' and '%R'.
      	Remove use of mips_classify_constant.
      	(mips_reloc_string): Delete.
      	(print_operand_reloc): New function.
      	(print_operand_address): Update call to mips_classify_address.
      	(mips_rewrite_small_data_p, small_data_pattern_1): New functions.
      	(small_data_pattern): New predicate.
      	(mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
      	(mips_function_has_gp_insn): New function.
      	(mips_global_pointer): Use it.
      	(mips_gp_insn): Delete.
      	(mips_expand_prologue): When compiling for n32/n64 abicalls, use a
      	single loadgp pattern to initialize $gp.  Pass it the offset of _gp
      	from the start of the current function.
      	(mips16_gp_pseudo_reg): Revert last patch.
      
      	* config/mips/mips.md (RELOC_*): Delete.
      	(UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
      	(got): New insn attribute.
      	(type): Set to "load" if got == load.
      	(length): Set to 4 if got == load, 8 if got == xgot_high.
      	(lui[sd]i): Delete.
      	(*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
      	(*got_disp[sd]i, *got_page[sd]i): Likewise.
      	(*low[sd]i): Change constraints to "d".  Add a new define_split to
      	rewrite small data constants into LO_SUMs.
      	(loadgp): New insns.
      
      From-SVN: r73259
      Richard Sandiford committed
    • * Makefile.in: Remove many duplicate variables. · 487e9fff
      From-SVN: r73258
      Rainer Orth committed
    • * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests. · bdc960c8
      From-SVN: r73257
      Rainer Orth committed
    • v850.md (mulhisi3): Expand the const_int case separately to avoid trying to sign extend the const. · 15bb534e
      * config/v850/v850.md (mulhisi3): Expand the const_int case
      separately to avoid trying to sign extend the const.
      
      From-SVN: r73256
      DJ Delorie committed
    • Remove extra ^M characters introduced in previous commit. · 104da10b
      From-SVN: r73251
      Arnaud Charlet committed
    • re PR ada/12806 (Program_Error sinput.adb:397) · 12e0c41c
      	* sysdep.c: Problem discovered during IA64 VMS port.
      	[VMS] #include <unixio.h> to get proper prototypes.
      
      	* adaint.c:
      	Issues discovered/problems fixed during IA64 VMS port.
      	[VMS] #define _POSIX_EXIT for proper semantics.
      	[VMS] #include <unixio.h> for proper prototypes.
      	[VMS] (fork): #define IA64 version.
      	(__gnat_os_exit): Remove unnecessary VMS specific code.
      
      	* 3vtrasym.adb: Minor reformatting
      	Use terminology encoded/decoded name, rather than C++ specific notion
      	of mangling (this is the terminology used throughout GNAT).
      
      	* einfo.h: Regenerated
      
      	* einfo.ads, einfo.adb: Add new flag Is_Thread_Body
      
      	* exp_ch6.adb:
      	(Expand_N_Subprogram_Body): Handle expansion of thread body procedure
      
      	* par-prag.adb: Add dummy entry for Thread_Body pragma
      
      	* rtsfind.ads:
      	Add entries for System.Threads entities for thread body processing
      
      	* sem_attr.adb:
      	(Analyze_Pragma, Access attributes): Check these are not applied to a
      	thread body, since this is not permitted
      
      	* sem_prag.adb: Add processing for Thread_Body pragma.
      	Minor comment fix.
      
      	* sem_res.adb:
      	(Resolve_Call): Check for incorrect attempt to call a thread body
      	 procedure with a direct call.
      
      	* snames.ads, snames.adb: Add entry for Thread_Body pragma
      	Add names associated with thread body expansion
      
      	* snames.h: Add entry for Thread_Body pragma
      
      	* s-thread.adb: Add entries for thread body processing
      	These are dummy bodies so far
      
      	* s-thread.ads: Add documentation on thread body handling.
      	Add entries for thread body processing.
      
      	* sem_ch10.adb:
      	(Build_Limited_Views): Return after posting an error in case of limited
      	with_clause on subprograms, generics, instances or generic renamings
      	(Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
      	on subprograms, generics, instances or generic renamings
      
      	* raise.c (setup_to_install): Correct mistake in last revision; two
      	arguments out of order.
      
      	* trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
      	gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
      	notice, missed in previous change.
      	Remove trailing blanks and other style errors introduced in previous
      	change.
      
      	* decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
      	rid of the wrapper for a LJM type, ensuring we don't do that if the
      	field is addressable.  This avoids potential low level type view
      	mismatches later on, for instance in a by-reference argument passing
      	process.
      
      	* decl.c (gnat_to_gnu_field): No longer check for BLKmode being
      	aligned at byte boundary.
      
      	* decl.c (components_to_record): Do not delete the empty variants from
      	the end of the union type.
      
      	* exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
      	operation for a derived type, an explicit declaration may use a local
      	subtype of Boolean.
      
      	* make.adb (Gnatmake): Allow main sources on the command line with a
      	library project when it is only for compilation (no binding or
      	linking).
      
      	Part of PR ada/12806:
      
      	* ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
      	tree, not integer.
      
      	* decl.c:
      	(gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
      	not integer.
      
      	* targtyps.c, decl.c, misc.c,
      	gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
      	routines to work around change in FP sizing semantics in GCC.
      
      	* utils.c:
      	(build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
      
      	* gigi.h: (enumerate_modes): New function.
      
      	* Make-lang.in: (ada/misc.o): Add real.h.
      
      	* misc.c: (enumerate_modes): New function.
      
      From-SVN: r73250
      Arnaud Charlet committed
    • emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant addresses to be shared. · 21e9fc47
      	* emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
      	addresses to be shared.
      	(force_const_mem): Return a copy of the pool entry.
      
      From-SVN: r73248
      Richard Sandiford committed
    • Makefile.in (GCC_CFLAGS): Remove @WERROR@ again. · 7807fcd9
      	* Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
      
      Change previous ChangeLog entry to point to me as asked for by Kaveh.
      
      From-SVN: r73246
      Andreas Jaeger committed
    • re PR libstdc++/12790 (basic_filebuf doesn't handle stateful encodings) · 5e93f39f
      
      
      2003-11-03  Petur Runolfsson  <peturr02@ru.is>
      
      	PR libstdc++/12790
      	* include/bits/fstream.tcc: Delete _M_last_overflowed.
      	(basic_filebuf::basic_filebuf): Initialize _M_state_last.
      	(basic_filebuf::open, basic_filebuf::close): Assign
      	_M_state_beg to _M_state_cur and _M_state_last.
      	(basic_filebuf::close): Call _M_terminate_output to handle
      	unshift and flushing.
      	(basic_filebuf::underflow): Assign _M_state_last, throw
      	exception instead of calling abort when codecvt::max_length()
      	is bad.
      	(basic_filebuf::seekoff): Use _M_state_last when calling
      	codecvt::length(), pass correct state to _M_seek.
      	(basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
      	(basic_filebuf::_M_seek): Add __state_type parameter,
      	set _M_state_cur correctly, store the resulting state in
      	the return value and use _M_terminate_output to handle
      	flushing and unshift.
      	(basic_filebuf::_M_terminate_output): Flush contents of
      	output buffer, if any, then call codecvt::unshift as
      	needed and output the result.
      	(basic_filebuf::sync): Move here, don't modify _M_writing
      	or _M_reading.
      
      	* include/std/std_fstream.h
      	(basic_filebuf::_M_state_last): Declare it.
      	(basic_filebuf::_M_last_overflowed): Delete.
      	(basic_filebuf::_M_seek): Add __state_type parameter.
      	(basic_filebuf::sync): Declare only.
      	(basic_filebuf::_M_output_unshift): Delete.
      	(basic_filebuf::_M_terminate_output): Declare it.
      
      	* testsuite/testsuite_character.h:
      	Define character class and state class plus char_traits and
      	codecvt specializations for same for testing support for
      	stateful encodings.
      
      	* testsuite/27_io/basic_filebuf/close/12790-1.cc,
      	* testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
      	* testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
      	* testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
      	* testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
      	* testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
      	* testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
      	* testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
      	* testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
      	* testsuite/27_io/basic_filebuf/open/12790-1.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
      	* testsuite/27_io/basic_filebuf/sync/char/1.cc,
      	* testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
      	New tests.
      
      	* testsuite/27_io/basic_filebuf/3.cc,
      	* testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
      	* testsuite/27_io/basic_fstream/3.cc,
      	* testsuite/27_io/basic_ifstream/3.cc,
      	* testsuite/27_io/basic_ofstream/3.cc:
      	Use streamoff as off_type and fpos<state_type> as pos_type.
      
      	* testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
      	* testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
      	Check that sync does *not* set _M_writing to false.
      
      From-SVN: r73245
      Petur Runolfsson committed
    • natClass.cc (newInstance): Throw InstantiationException if class has no null-argument constructor. · 99f8b250
              * java/lang/natClass.cc (newInstance): Throw InstantiationException
              if class has no null-argument constructor.
      
      From-SVN: r73244
      Bryce McKinlay committed
    • stubs.c (sqrtf, sqrtl): Reorder so they appear before they're used. · 1b9e6d64
      2003-11-01  Anthony Green  <green@redhat.com>
      
              * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
              they're used.
      
      From-SVN: r73243
      Anthony Green committed
    • locale_facets.h (time_get::_M_extract_name): Add ctype argument. · 4c411e4f
      
      2003-11-03  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/bits/locale_facets.h (time_get::_M_extract_name): Add
      	ctype argument.
      	* include/bits/locale_facets.tcc: Same, use it to allow
      	capitalized names.
      
      	* include/bits/fstream.tcc: Spacing tweak.
      	* include/bits/istream.tcc: Same.
      	* include/bits/ostream.tcc: Same.
      
      From-SVN: r73242
      Benjamin Kosnik committed
    • locale_facets.h (time_get::_M_extract_name): Add ctype argument. · e0f05105
      
      2003-11-03  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/bits/locale_facets.h (time_get::_M_extract_name): Add
      	ctype argument.
      	* include/bits/locale_facets.tcc: Same, use it to allow
      	capitalized names.
      
      	* include/bits/fstream.tcc: Spacing tweak.
      	* include/bits/istream.tcc: Same.
      	* include/bits/ostream.tcc: Same.
      
      From-SVN: r73241
      Benjamin Kosnik committed
    • * libjava.compile/InnerExcept.java: New File. · 1b64e33f
      From-SVN: r73240
      Jeff Sturm committed
    • Makefile.in (cpp.dvi): New target split from cpp.info. · 63069342
      2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Makefile.in (cpp.dvi): New target split from cpp.info.
      	(gcc.dvi):  New target split from gcc.info.
      	(gccint.dvi): New target split from gccint.info.
      	(cppinternals.dvi): New target split from cppinternals.info
      	(gccinstall.info): New specific rule.
      	(gccinstall.dvi): Likewise.
      	(dvi): Move targets to $(docobjdir).
      	($(docobjdir)/%.dvi): New implicit rule.
      
      ada/
      2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (dvi): Move targets to $(docobjdir).
      	(gnat_ug_vms.dvi): Simplify rule and adjust target.
      	(gnat_ug_wnt.dvi): Likewise.
      	(gnat_ug_unx.dvi): Likewise.
      	(gnat_ug_vxw.dvi): Likewise.
      	(gnat_rm.dvi): Likewise.
      	(gnat-style.dvi): Likewise.
      
      f/
      2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (dvi): Move targets to $(docobjdir).
      	(g77.dvi): Simplify rule.
      	(g77.info): Sinplify rule.
      	(g77.1): Delete.
      	(g77.pod): New intermediate rule.
      
      java/
      2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (dvi): Move targets to $(docobjdir).
      	(gcj.dvi): Simplify rule and adjust target.
      	(gcj.info): Simplify rule.
      	(gcj.pod): New intermediate rule.
      	(gcjh.pod): Likewise.
      	(jv-scan.pod): Likewise.
      	(jcf-dump.pod): Likewise.
      	(gij.pod): Likewise.
      	(jv-convert.pod): Likewise.
      	(rmic.pod): Likewise.
      	(rmiregistry.pod): Likewise.
      	(gcj.1): Delete.
      	(gcjh.1): Delete.
      	(jv-scan.1): Delete.
      	(jcf-dump.1): Delete.
      	(gij.1): Delete.
      	(jv-convert.1): Delete.
      	(rmic.1): Delete.
      	(rmiregistry.1): Delete.
      
      treelang/
      2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* Make-lang.in (dvi): Move targets to $(docobjdir).
      	(treelang.dvi): Simplify rule and adjust target.
      	(treelang.info): Simplify rule.
      	(parse.o): Correct dependencies.
      	(TREE_EXE): Delete doubled suffix append.
      
      From-SVN: r73238
      Kelley Cook committed
    • Daily bump. · b1c512e7
      From-SVN: r73236
      GCC Administrator committed
  3. 03 Nov, 2003 10 commits