1. 26 Jan, 2005 18 commits
    • re PR middle-end/16585 (current_function_has_computed_jump incorrectly changed in make_edges) · f7aa1423
      	PR middle-end/16585
      	* cfgbuild.c (make_edges): Do not clear or set
      	current_function_has_computed_jump.
      	* function.h (struct function): Remove the has_computed_jump field.
      	(current_function_has_computed_jump): Do not define.
      	* sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
      	in a computed jump.  Ignore current_function_has_computed_jump.
      
      From-SVN: r94269
      Steven Bosscher committed
    • mt_allocator.h (struct __per_type_pool_policy<,, [...]): Scale _M_chunk_size too… · b929615a
      mt_allocator.h (struct __per_type_pool_policy<,, [...]): Scale _M_chunk_size too with sizeof(_Tp)...
      
      2005-01-26  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/ext/mt_allocator.h
      	(struct __per_type_pool_policy<,, false>::_S_get_pool,
      	struct __per_type_pool_policy<,, true>::_S_get_pool): Scale
      	_M_chunk_size too with sizeof(_Tp), otherwise the allocator
      	breaks down as soon as sizeof(_Tp) >~ _S_chunk_size / 128;
      	reduce to 64 the multiplier for _M_max_bytes (safer wrt
      	_Binmap_type being a short); trivial reformattings.
      	* testsuite/ext/mt_allocator/check_allocate_big_per_type.cc: New.
      
      From-SVN: r94268
      Paolo Carlini committed
    • re PR middle-end/19515 (Violation of C99 6.7.8 §21 for unions) · 6f642f98
              PR middle-end/19515
              * expr.c (categorize_ctor_elements): New argument p_must_clear.
              (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
              fully initialized.
              (mostly_zeros_p): Update for new categorize_ctor_elements argument.
              * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
              objects into static storage if they have more than one non-zero value.
              * tree.h (categorize_ctor_elements): Update decl.
      
      From-SVN: r94266
      Richard Henderson committed
    • re PR middle-end/19616 (missed tail call) · ead553a1
      	PR middle-end/19616
      	* tree.h (CALL_EXPR_TAILCALL): Add comment.
      	* calls.c (check_sibcall_argument_overlap_1): Revert the change
      	to this function from 2004-07-10.
      	* tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
      	the current function for tail call optimizations if the address
      	of one of it its arguments is taken.
      
      From-SVN: r94265
      Steven Bosscher committed
    • * cse.c (fold_rtx): Call equiv_constant only when necessary. · 75335440
      From-SVN: r94260
      Kazu Hirata committed
    • function.c (expand_function_end): If current_function_calls_alloca... · 40184445
      	* function.c (expand_function_end): If current_function_calls_alloca,
      	emit stack restore in a place that is reached when the function falls
      	through at the end.
      
      From-SVN: r94259
      Bernd Schmidt committed
    • acinclude.m4 ([GLIBCXX_ENABLE_C99]): Add ac_c99_complex to the final test for… · 02a65d23
      acinclude.m4 ([GLIBCXX_ENABLE_C99]): Add ac_c99_complex to the final test for enable_c99, thus robustifying it...
      
      2005-01-26  Paolo Carlini  <pcarlini@suse.de>
      
      	* acinclude.m4 ([GLIBCXX_ENABLE_C99]): Add ac_c99_complex
      	to the final test for enable_c99, thus robustifying it; remove
      	duplicate final test on ac_99_math.
      	* configure: Regenerate.
      
      	* include/std/std_complex.h: Remove usages of the dead
      	_GLIBCXX_BUGGY_COMPLEX macro.
      
      	* testsuite/26_numerics/cmath/19322.cc: Protect with
      	_GLIBCXX_USE_C99_MATH instead of the stronger _GLIBCXX_USE_C99,
      	since only C99 math facilities are involved.
      	* testsuite/26_numerics/cmath/c99_classification_macros_c++.cc:
      	Likewise.
      
      From-SVN: r94257
      Paolo Carlini committed
    • Fix PR number on Honza's checkin · 97bd954f
      From-SVN: r94256
      Steven Bosscher committed
    • Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy rule to avoid… · 144023ad
      Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy rule to avoid matching inappropriate suffix rule.
      
      * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
      rule to avoid matching inappropriate suffix rule.
      
      From-SVN: r94255
      Alexandre Oliva committed
    • re PR target/19421 (ICE with soft-float on m68k) · e4cf29ae
      	PR tree-optimization/19421
      	* tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
      
      From-SVN: r94254
      Jan Hubicka committed
    • cris.h (LIB_SPEC): Use -lsyslinux, not -lsyssim. · fe04ce06
      	* config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
      	-lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
      	of doubling.
      	(STARTFILE_SPEC): Add crti.o, before crtbegin.o.
       	<sim*>: Always use crt1.o, regardless of N in simN.
      	<!sim>: Drop support for -pg and -p variants; always use crt0.o.
      	(ENDFILE_SPEC): Add crtn.o, after crtend.o.
      	(CRT_CALL_STATIC_FUNCTION): Remove.
      	* config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
      	use crt1.o, regardless of N in simN.
      	<!sim>: Drop support for -pg and -p variants; always use crt0.o.
      	(LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
      	(CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
      	case isystem setting.
      	(MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
      
      From-SVN: r94251
      Hans-Peter Nilsson committed
    • gimple-low.c (block_may_fallthru): Correct handling of SWITCH_EXPR--may fall… · 6a03afdf
      gimple-low.c (block_may_fallthru): Correct handling of SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
      
      2005-01-25  Ian Lance Taylor  <ian@airs.com>
      
      	* gimple-low.c (block_may_fallthru): Correct handling of
      	SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
      
      From-SVN: r94250
      Ian Lance Taylor committed
    • re PR java/19070 (internal compiler error: in generate_bytecode_conditional, at… · ca91607b
      re PR java/19070 (internal compiler error: in generate_bytecode_conditional, at java/jcf-write.c:1271)
      
              * testsuite/libjava.jacks/jacks.xfail: Update for PR java/19070,
              remove other passing tests and add new XFAILs.
      
      From-SVN: r94246
      Ranjit Mathew committed
    • cris.h (CPP_SPEC): Adjust the various mtune= handlers to match indentation... · c555b47f
      	* config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
      	handlers to match indentation; nested under the mtune=* handler.
      	Similar for mcpu= and march=.
      
      From-SVN: r94245
      Hans-Peter Nilsson committed
    • linux.h (LIB_SPEC): Remove -rpath-link. · 9841a1a7
      	* config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
      	* config/mips/linux64.h (LIB_SPEC): Likewise.
      	* config/mn10300/linux.h (LIB_SPEC): Likewise.
      	* config/sh/linux.h (LIB_SPEC): Likewise.
      
      From-SVN: r94244
      Daniel Jacobowitz committed
    • Daily bump. · 4c064e89
      From-SVN: r94241
      GCC Administrator committed
    • frv.c (frv_legitimize_tls_address): New. · bef8809e
      	* config/frv/frv.c (frv_legitimize_tls_address): New.
      	(TARGET_HAVE_TLS): Define.
      	(FRV_SYMBOL_REF_TLS_P): Define.
      	(frv_override_options): Handle new register classes.
      	(frv_legitimate_address_p): Reject tls addresses.
      	(frv_legitimize_address): Handle TLS addresses.
      	(gen_inlined_tls_plt): New.
      	(gen_tlsmoff): New.
      	(frv_legitimize_tls_address): New.
      	(unspec_got_name): Add TLS entries.
      	(got12_operand): Add R_FRV_TLSMOFF12 case.
      	(frv_emit_move): Fixup TLS addresses.
      	(frv_emit_movsi): Legitimize TLS addresses.
      
      	* config/frv/frv.h (MASK_BIG_TLS): New.
      	(TARGET_BIG_TLS): New.
      	(HAVE_AS_TLS): Define.
      	(TARGET_SWITCHES): Add -mTLS and -mtls options.
      	(enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
      	(REG_CLASS_NAMES): Same.
      	(REG_CLASS_CONTENTS): Same.
      	(CONSTRAINT_LEN): New.
      	(REG_CLASS_FROM_CONSTRAINT): New.
      	(PREDICATE_CODES): Add symbolic_operand.
      
      	* config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
      	UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
      	UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
      	UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
      	R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
      	R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
      	R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
      	GR9_REG, GR14_REG, LRREG.
      	(type): Add load_or_call attribute.
      	("load_or_call"): New reservation.
      	("call_gettlsoff"): New.
      	("tls_indirect_call"): New.
      	("tls_load_gottlsoff12"): New.
      	("tlsoff_hilo"): New.
      	("tls_tlsdesc_ldd"): New.
      	("tls_tlsoff_ld"): New.
      	("tls_lddi"): New.
      
      	* config/frv/frv-protos.h (symbolic_operand): Protoize.
      
              * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
              * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
              * config/frv/frv.c (TLS_BIAS): Define.
              (frv_output_dwarf_dtprel): New.
      
      From-SVN: r94237
      Aldy Hernandez committed
  2. 25 Jan, 2005 22 commits