aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2005-01-27* config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.Jakub Jelinek2-5/+7
From-SVN: r94321
2005-01-27re PR c/18946 (ICE in pushdecl)Jakub Jelinek4-7/+48
PR c/18946 * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node. (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P. (implicitly_declare): Handle error_mark_node. * gcc.dg/noncompile/20050120-1.c: New test. From-SVN: r94320
2005-01-27Makefile.in: Rename GNAT RTEMS specific files.Laurent GUERBY7-4/+12
2005-01-27 Laurent GUERBY <laurent@guerby.net> * Makefile.in: Rename GNAT RTEMS specific files. * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb: Replaced by files below. * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb, s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above. From-SVN: r94319
2005-01-27re PR ada/19488 (RTEMS Ada RTS doesn't compile)Joel Sherrill4-6/+17
2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com> Laurent GUERBY <laurent@guerby.net> PR ada/19488 * 5rosinte.ads: Add No_Key constant. * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style. * gsocket.h: Do not include <sys/socket.h> with RTEMS either. Co-Authored-By: Laurent GUERBY <laurent@guerby.net> From-SVN: r94318
2005-01-27re PR c++/14329 ([4.1 only] badly formatted warnings for SRA replacements ↵Richard Henderson9-22/+98
used uninitialized) PR tree-opt/14329 * tree.h (struct tree_decl): Add debug_expr_is_from. (DECL_DEBUG_EXPR_IS_FROM): New. (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF. * dwarf2out.c (dwarf2out_var_location): Update to match. * tree-outof-ssa.c (create_temp): Likewise. * var-tracking.c (track_expr_p): Likewise. * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR. * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR. * toplev.c (default_tree_printer): Likewise. From-SVN: r94317
2005-01-27frv.c (frv_class_likely_spilled_p): Add GR8_REGS, GR9_REGS, GR89_REGS, ↵Alexandre Oliva2-0/+10
FDPIC_FPTR_REGS, FDPIC_REGS. * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS, GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS. From-SVN: r94316
2005-01-27tree.h (SWITCH_COND, [...]): Add tree checks.Steven Bosscher13-38/+65
* tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW, CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS, ASM_CLOBBERS): Add tree checks. * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE. (SWITCH_STMT_COND, SWITCH_STMT_BODY): New. * c-common.def (SWITCH_STMT): Update to match. * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor macros instead of SWITCH_EXPR ones. * c-dump.c (c_dump_tree): Likewise. * c-gimplify.c (gimplify_switch_stmt): Likewise. * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise. cp/ * decl.c (finish_case_label): Use SWITCH_STMT accessor macros instead of SWITCH_EXPR ones. * pt.c (tsubst_expr): Likewise. * semantics.c (begin_switch_stmt, finish_switch_cond, finish_switch_stmt): Likewise. doc/ * c-tree.texi (SWITCH_STMT): Update accessor macro names. From-SVN: r94315
2005-01-27unwind-dw2.c (execute_stack_op): Add missing cases for DW_OP_shl, DW_OP_shr, ↵Alan Modra2-1/+10
DW_OP_shra, DW_OP_xor. * unwind-dw2.c (execute_stack_op): Add missing cases for DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor. From-SVN: r94314
2005-01-27config.gcc (Obsolete configurations): Remove 'dummy'...Eric Botcazou2-1/+11
* config.gcc (Obsolete configurations): Remove 'dummy', add sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and sparc-*-openbsd*. From-SVN: r94313
2005-01-26re PR tree-optimization/19633 (local address incorrectly thought to escape)Diego Novillo6-20/+102
PR tree-optimization/19633 * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle CALL_EXPRs. (maybe_create_global_var): Do not create .GLOBAL_VAR if there are no call-clobbered variables. * tree-outof-ssa.c (check_replaceable): Return false for calls with side-effects. testsuite/ChangeLog PR tree-optimization/19633 * gcc.dg/pr19633.c: New test. * gcc.dg/tree-ssa/pr19633.c: New test. From-SVN: r94311
2005-01-27dbxout.c (dbxout_symbol_location): Resolve constant pool references even for ↵Ulrich Weigand4-31/+63
variables with NULL DECL_INITIAL. ChangeLog: * dbxout.c (dbxout_symbol_location): Resolve constant pool references even for variables with NULL DECL_INITIAL. testsuite/ChangeLog: * gcc.dg/20041216-1.c: New test. From-SVN: r94303
2005-01-27gimplify.c (shortcut_cond_expr): Re-compute side-effects.Stuart Hastings3-0/+42
2005-01-26 Stuart Hastings <stuart@apple.com> * gcc/gimplify.c (shortcut_cond_expr): Re-compute side-effects. * gcc/testsuite/gcc.c-torture/execute/20050125-1.c: New. From-SVN: r94300
2005-01-27trans-decl.c (gfc_build_label_decl): Set DECL_ARTIFICAL and TREE_USED for ↵Steven Bosscher4-23/+21
all labels. * trans-decl.c (gfc_build_label_decl): Set DECL_ARTIFICAL and TREE_USED for all labels. (gfc_trans_entry_master_switch): Use it instead of building a label by hand. * trans-io.c (add_case): Likewise. * trans-stmt.c (gfc_trans_integer_select): Likewise. From-SVN: r94299
2005-01-27Daily bump.GCC Administrator2-2/+2
From-SVN: r94297
2005-01-26For real this time...Richard Henderson3-3/+28
PR middle-end/18008 * c-decl.c (finish_struct): Set DECL_MODE after resetting a field's type. * expr.c (store_field): Strip conversions to odd-bit-sized types if the destination field width matches. From-SVN: r94294
2005-01-26Revert last change.Richard Henderson4-21/+8
From-SVN: r94291
2005-01-26re PR middle-end/18008 (Duplicate mask on bitfield insertion)Richard Henderson4-4/+32
PR middle-end/18008 * c-decl.c (finish_struct): Set DECL_MODE after resetting a field's type. * expmed.c (store_fixed_bit_field): Create a paradoxical subreg if we don't need the bits above those present in the current mode. * expr.c (store_field): Strip conversions to odd-bit-sized types if the destination field width matches. From-SVN: r94290
2005-01-26iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if either -ffast-math or ↵Richard Sandiford2-1/+7
-funsafe-math-optimizations... * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if either -ffast-math or -funsafe-math-optimizations is in use. From-SVN: r94289
2005-01-26re PR target/19293 (avr-gcc crashes when using shifts with negative shift count)Marek Michalkiewicz3-81/+170
PR target/19293 PR target/19329 * config/avr/avr.c (notice_update_cc): Only set condition code for ashrqi3 if shift count > 0. (out_shift_with_cnt): Handle shift count <= 0 as a no-op. (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift count <= 0 as a no-op, and shift count >= width by copying zero or sign bit to all bits of the result. * config/avr/avr.md (all shifts): Add alternatives for zero shift count, with attribute "length" set to 0 and "cc" set to "none". From-SVN: r94288
2005-01-26re PR ada/19414 (ACATS cxb4003 - valgrind detects wrong code (invalid read))Laurent GUERBY2-0/+9
2005-01-26 Laurent GUERBY <laurent@guerby.net> PR ada/19414 * i-cobol.adb (Valid_Numeric): Handle zero length case. From-SVN: r94287
2005-01-26re PR objc/18862 (ICE on gcc-4.0-20041205/gcc/testsuite/objc.dg/selector-1.m)Alexander Malmberg2-0/+21
2005-01-26 Alexander Malmberg <alexander@malmberg.org> PR objc/18862 * objc.dg/selector-2.m: New test. From-SVN: r94286
2005-01-26re PR objc/18862 (ICE on gcc-4.0-20041205/gcc/testsuite/objc.dg/selector-1.m)Alexander Malmberg2-2/+16
2005-01-26 Alexander Malmberg <alexander@malmberg.org> PR objc/18862 * objc-act.c (build_selector_translation_table): Use input_location in the diagnostic for the GNU runtime or if TREE_PURPOSE (chain) is NULL. From-SVN: r94285
2005-01-26invoke.texi: Document -mTLS.Aldy Hernandez12-0/+143
* doc/invoke.texi: Document -mTLS. * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New. * testsuite/gcc.target/frv/all-tls-initial-exec.c: New. * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New. * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New. * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New. * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New. * testsuite/gcc.target/frv/all-tls-local-exec.c: New. * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New. * configure.ac: Check for a TLS capable gas. * configure: Regenerate. From-SVN: r94283
2005-01-26re PR middle-end/18008 (Duplicate mask on bitfield insertion)Richard Henderson2-11/+48
PR middle-end/18008 * combine.c (make_field_assignment): Simplify store to zero_extract from a source with an overlapping mask. From-SVN: r94282
2005-01-26Fix filename typo.Joern Rennecke1-1/+1
From-SVN: r94275
2005-01-26Add bug number:Joern Rennecke1-0/+1
PR c++/18370 * parse.c (cp_parser_initializer_clause): Initialize *non_constant_p. From-SVN: r94274
2005-01-26frv.md: Add fr400_integer automaton.Aldy Hernandez2-4/+15
* config/frv/frv.md: Add fr400_integer automaton. Don't allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel to TYPE_MACC. From-SVN: r94272
2005-01-26* parse.c (cp_parser_initializer_clause): Initialize *non_constant_p.J"orn Rennecke2-0/+7
From-SVN: r94270
2005-01-26re PR middle-end/16585 (current_function_has_computed_jump incorrectly ↵Steven Bosscher4-32/+17
changed in make_edges) 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
2005-01-26mt_allocator.h (struct __per_type_pool_policy<,, [...]): Scale _M_chunk_size ↵Paolo Carlini3-7/+95
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
2005-01-26re PR middle-end/19515 (Violation of C99 6.7.8 §21 for unions)Richard Henderson5-12/+80
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
2005-01-26re PR middle-end/19616 (missed tail call)Steven Bosscher4-8/+31
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
2005-01-26* cse.c (fold_rtx): Call equiv_constant only when necessary.Kazu Hirata2-2/+7
From-SVN: r94260
2005-01-26function.c (expand_function_end): If current_function_calls_alloca...Bernd Schmidt2-12/+18
* 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
2005-01-26acinclude.m4 ([GLIBCXX_ENABLE_C99]): Add ac_c99_complex to the final test ↵Paolo Carlini6-27/+28
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
2005-01-26Fix PR number on Honza's checkinSteven Bosscher1-3/+3
From-SVN: r94256
2005-01-26Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy rule to ↵Alexandre Oliva2-0/+19
avoid matching inappropriate suffix rule. * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy rule to avoid matching inappropriate suffix rule. From-SVN: r94255
2005-01-26re PR target/19421 (ICE with soft-float on m68k)Jan Hubicka2-0/+6
PR tree-optimization/19421 * tree-inline.c (copy_body_r): Do not walk subtrees after substituting. From-SVN: r94254
2005-01-26cris.h (LIB_SPEC): Use -lsyslinux, not -lsyssim.Hans-Peter Nilsson3-64/+30
* 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
2005-01-26gimple-low.c (block_may_fallthru): Correct handling of SWITCH_EXPR--may fall ↵Ian Lance Taylor2-1/+6
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
2005-01-26re PR java/19070 (internal compiler error: in generate_bytecode_conditional, ↵Ranjit Mathew2-15/+8
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
2005-01-26cris.h (CPP_SPEC): Adjust the various mtune= handlers to match indentation...Hans-Peter Nilsson2-6/+12
* 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
2005-01-26linux.h (LIB_SPEC): Remove -rpath-link.Daniel Jacobowitz5-9/+9
* 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
2005-01-26Daily bump.GCC Administrator2-2/+2
From-SVN: r94241
2005-01-26frv.c (frv_legitimize_tls_address): New.Aldy Hernandez5-8/+481
* 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
2005-01-25acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Map FreeBSD to darwin instead of generic.Loren J. Rittle4-6/+52
* acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Map FreeBSD to darwin instead of generic. Change autoconf report to "darwin or freebsd". * configure: Regenerate. * config/os/bsd/freebsd/ctype_inline.h (ctype<wchar_t>::do_is): Add. (ctype<wchar_t>::do_scan_is): Likewise. (ctype<wchar_t>::do_scan_not): Likewise. From-SVN: r94236
2005-01-26* g++.dg/opt/range-test-2.C: New test.Jakub Jelinek2-0/+98
From-SVN: r94235
2005-01-26re PR rtl-optimization/19579 (-march=i686 generates a bogus program for x86*)Jakub Jelinek4-5/+73
PR rtl-optimization/19579 * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up both A and B, see if they don't clobber registers the other expr uses. * gcc.c-torture/execute/20050124-1.c: New test. From-SVN: r94234
2005-01-25re PR libfortran/19524 (5 times uninitialized var in libgfortran)Tobias Schlüter2-2/+5
PR libfortran/19524 * io/read.c (read_f): Don't free uninitialized pointer. From-SVN: r94232
2005-01-25real.c (do_add): Initialize signalling and canonical members.J"orn Rennecke2-3/+10
* real.c (do_add): Initialize signalling and canonical members. * real.c (real_from_integer): Zero out destination. From-SVN: r94228