aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-01-24Daily bump.GCC Administrator1-1/+1
From-SVN: r131772
2008-01-24Revert this patch, as it is not a regression.Ben Elliston2-6/+1
2008-01-24 Ben Elliston <bje@au.ibm.com> PR other/22232 * fixproto: Escape "." in sed expression that strips leading "./". From-SVN: r131769
2008-01-24re PR other/22232 (Bug in "fixproto" (missing escape))Ben Elliston2-1/+6
PR other/22232 * fixproto: Escape "." in sed expression that strips leading "./". From-SVN: r131768
2008-01-232008-01-23 David Daney <ddaney@avtrex.com>David Daney5-15/+76
* class.c (hide) Rename to... (java_hide_decl) ... this throughout, and make public. * resource.c (Jr_count): Remove. (compile_resource_data): Call java_mangle_resource_name to generate decl name. Make resource decl public and hidden. * mangle.c (java_mangle_resource_name): New function. * java-tree.h (java_hide_decl, java_mangle_resource_name): Declare functions. From-SVN: r131767
2008-01-23cris.h (CC1PLUS_SPEC, [...]): Drop stale and straggling -fforce-addr ↵Hans-Peter Nilsson2-10/+4
comments above. * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop stale and straggling -fforce-addr comments above. From-SVN: r131763
2008-01-23cris.h (CRIS_SUBTARGET_VERSION, [...]): Don't define.Hans-Peter Nilsson4-17/+7
* config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't define. * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define. * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define. From-SVN: r131762
2008-01-23re PR debug/34895 (ICE in force_type_die, at dwarf2out.c:12923)Michael Matz4-5/+32
PR debug/34895 * dwarf2out.c (force_type_die): Use modified_type_die instead of gen_type_die. * g++.dg/debug/pr34895.cc: New testcase. From-SVN: r131761
2008-01-23ipa-struct-reorg.c (create_new_malloc): Use pointer type as malloc result type.Andreas Krebbel2-1/+6
2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com> * ipa-struct-reorg.c (create_new_malloc): Use pointer type as malloc result type. From-SVN: r131760
2008-01-23avr.c (avr_current_arch): New variable.Anatoly Sokolov4-50/+111
* config/avr/avr.c (avr_current_arch): New variable. (avr_arch_types): Add 'avr31' and 'avr51' entries. (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'. (avr_mcu_types): Add 'avr31' and 'avr51' architectures. (avr_override_options): Init 'avr_current_arch'. (base_arch_s): Move from here... * config/avr/avr.h (base_arch_s): ... here. Add new members 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 'mega' to 'have_jmp_call'. (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__" macros. (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' architectures. * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES): (Ditto.). From-SVN: r131759
2008-01-23re PR middle-end/31529 (ICE in cgraph_expand_function with IMA)Richard Guenther5-2/+28
2008-01-23 Richard Guenther <rguenther@suse.de> PR middle-end/31529 * cgraphunit.c (cgraph_reset_node): Always mark the node not reachable if it is not queued already. * gcc.dg/pr31529-1.c: New testcase. * gcc.dg/pr31529-2.c: Likewise. From-SVN: r131758
2008-01-23re PR c++/34829 (placement new with primitive Java types rejected)Jakub Jelinek2-3/+11
PR c++/34829 * g++.dg/ext/pr34829.C (operator new): Use size_t instead of unsigned int for the first argument. From-SVN: r131756
2008-01-23re PR c++/28560 (Trouble with __attribute__ in template parameter)Jason Merrill3-2/+18
PR c++/28560 * decl.c (groktypename): Also ignore attributes on dependent possibly-class types. From-SVN: r131755
2008-01-23cplus-dem.c (demangle_function_name): Changed to return value indicating if ↵Thiago Jung Bauermann2-12/+27
a name was correctly demangled. 2008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com> * cplus-dem.c (demangle_function_name): Changed to return value indicating if a name was correctly demangled. (iterate_demangle_function): Use demangle_function_name return value. From-SVN: r131754
2008-01-23* config.sub, config.guess: Update from upstream sources.Ben Elliston3-4/+12
From-SVN: r131753
2008-01-23bfin-protos.h (WA_RETS, [...]): New macros.Bernd Schmidt3-38/+61
* config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros. * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere. (cputype_selected): New static variable. (bfin_handle_option): Set it if -mcpu is used. (override_option): Select default set of workarounds if no cpu type selected on the command line. (workaround_rts_anomaly): Only run if ENABLE_WA_RETS. From-SVN: r131752
2008-01-23re PR c++/33984 (bit-fields, references and overloads)Jakub Jelinek6-13/+53
gcc/cp/ChangeLog: PR c++/33984 * call.c (reference_binding): For bitfields use the declared bitfield type. (add_builtin_candidates): Likewise. * class.c (layout_class_type): For bitfields copy over the original type quals. gcc/testsuite/ChangeLog: PR c++/33984 * g++.dg/conversion/bitfield7.C: New test. * g++.dg/cpp0x/decltype4.C: Fixed xfail. From-SVN: r131751
2008-01-23Daily bump.GCC Administrator1-1/+1
From-SVN: r131749
2008-01-22gcc/Bernd Schmidt11-8/+176
From Michael Frysinger <michael.frysinger@analog.com> * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526. * config/bfin/elf.h (LIB_SPEC): Use proper linker script for bf547, bf523, bf524, and bf526. * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and bf526. * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF523__ for bf523, __ADSPBF524__ for bf524, __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as __ADSPBF547__ and __ADSPBF54x__ for bf547. * doc/invoke.texi (Blackfin Options): Document that -mcpu now accept bf547, bf523, bf524, and bf526. gcc/testsuite/ From Michael Frysinger <michael.frysinger@analog.com> * gcc.target/bfin/mcpu-bf547.c: New test. * gcc.target/bfin/mcpu-bf523.c: New test. * gcc.target/bfin/mcpu-bf524.c: New test. * gcc.target/bfin/mcpu-bf526.c: New test. From-SVN: r131746
2008-01-22re PR rtl-optimization/34628 (problems with inlining on ARM)Eric Botcazou4-6/+57
PR rtl-optimization/34628 * combine.c (try_combine): Stop and undo after the first combination if an autoincrement side-effect on the first insn has effectively been lost. From-SVN: r131744
2008-01-22re PR c++/34859 (g++ -D__STDC_LIMIT_MACROS -D__STDC_LIMIT_MACROS causes error)Tom Tromey4-2/+29
libcpp PR c++/34859: * macro.c (_cpp_create_definition): Handle __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS. gcc/testsuite PR c++/34859: * gcc.dg/cpp/pr34859.c: New file. From-SVN: r131743
2008-01-22re PR fortran/34875 (read into vector-valued section doesn't transfer any ↵Paul Thomas4-3/+80
values) 2008-01-22 Paul Thomas <pault@gcc.gnu.org> PR fortran/34875 * trans-io.c (gfc_trans_transfer): If the array reference in a read has a vector subscript, use gfc_conv_subref_array_arg to copy back the temporary. 2008-01-22 Paul Thomas <pault@gcc.gnu.org> PR fortran/34875 * gfortran.dg/vector_subscript_3.f90: New test. From-SVN: r131742
2008-01-22re PR target/34529 (Wrong code with altivec stores and offsets)David Edelsohn2-6/+10
PR target/34529 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): Offset addresses are not valid for Altivec or paired float modes. From-SVN: r131741
2008-01-22re PR c++/34912 (ICE with friend in local class)Jason Merrill7-9/+42
PR c++/34912 * friend.c (do_friend): Check for prior declaration of a friend function of a local class. * name-lookup.c (lookup_name_innermost_nonclass_level): No longer static. * name-lookup.h: Declare it. From-SVN: r131740
2008-01-22re PR fortran/34848 (internal compiler error with optional argument of ↵Tobias Burnus4-1/+40
character type and array return type) 2008-01-22 Tobias Burnus <burnus@net-b.de> PR fortran/34848 * interface.c (compare_actual_formal): Fix adding type to missing_arg_type for absent optional arguments. 2008-01-22 Tobias Burnus <burnus@net-b.de> PR fortran/34848 * gfortran.dg/missing_optional_dummy_4.f90 From-SVN: r131738
2008-01-22vect-ifcvt-9.c: Use inline.Kaveh R. Ghazi2-1/+5
* gcc.dg/vect/vect-ifcvt-9.c: Use inline. From-SVN: r131735
2008-01-22Changelog: Insert forgotten entry of commit 131705.Tobias Grosser1-0/+4
2008-01-22 Tobias Grosser <grosser@fim.uni-passau.de> * Changelog: Insert forgotten entry of commit 131705. Commit 131705 was: * MAINTAINERS (Write After Approval): Add myself. From-SVN: r131734
2008-01-22decl.c (components_to_record): Do not reuse the empty union type if there is ↵Eric Botcazou5-3/+43
a representation clause on the record. * decl.c (components_to_record): Do not reuse the empty union type if there is a representation clause on the record. * trans.c (addressable_p): Return true for INTEGER_CST. From-SVN: r131733
2008-01-22re PR c++/34829 (placement new with primitive Java types rejected)Tom Tromey4-2/+32
gcc/testsuite PR c++/34829: * g++.dg/ext/pr34829.C: New file. gcc/cp PR c++/34829: * init.c (build_new_1): Only disallow Java aggregates. From-SVN: r131732
2008-01-22user.cfg.in: Set SHORT_NAMES to YES.Matthias Klose2-1/+5
2008-01-21 Matthias Klose <doko@ubuntu.com> * doc/doxygen/user.cfg.in: Set SHORT_NAMES to YES. From-SVN: r131731
2008-01-22re PR c++/34607 (ICE with invalid for loop after #pragma omp for)Jakub Jelinek7-3/+54
PR c++/34607 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if DECL_INITIAL (decl) is error_mark_node. * semantics.c (finish_omp_for): Don't call c_finish_omp_for if decl or init is error_mark_node. * gcc.dg/gomp/pr34607.c: New test. * g++.dg/gomp/pr34607.C: New test. From-SVN: r131730
2008-01-22re PR c++/34914 (Member pointer to vector rejected)Jakub Jelinek5-4/+30
PR c++/34914 * c-common.c (handle_vector_size_attribute): Only allow integral, scalar float and fixed point types. Handle OFFSET_TYPE the same way as pointer, array etc. types. * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE. * g++.dg/ext/vector10.C: New test. From-SVN: r131729
2008-01-22re PR fortran/34907 (valgrind error indication from testsuite trans-types.c: ↵Tobias Burnus2-1/+6
gfc_typenode_for_spec) 2008-01-22 Tobias Burnus <burnus@net-b.de> PR fortran/34907 * parse.c (parse_spec): Change = into ==. From-SVN: r131728
2008-01-22re PR c++/34918 (Broken diagnostic: 'vector_cst' not supported by dump_expr)Jakub Jelinek4-1/+15
PR c++/34918 * error.c (dump_expr): Handle VECTOR_CST. * g++.dg/other/error23.C: New test. From-SVN: r131727
2008-01-22re PR c++/34917 (ICE with const vector)Jakub Jelinek4-0/+17
PR c++/34917 * tree.c (build_type_attribute_qual_variant): Call build_qualified_type if attributes are equal, but quals are not. * g++.dg/ext/vector12.C: New test. From-SVN: r131726
2008-01-22re PR c++/33959 (ICE in instantiate_class_template, at cp/pt.c:6649)Jason Merrill5-14/+91
PR c++/33959 * pt.c (tsubst_aggr_type): Make sure our context is complete. PR c++/34573 * pt.c (retrieve_local_specialization): Robustify. (tsubst_pack_expansion, tsubst_decl): Remove redundant checks. PR c++/34846 * pt.c (tsubst): Only call retrieve_local_specialization if the original typedef was in a function template. From-SVN: r131724
2008-01-22Missed testcases in earlier commit.Manuel López-Ibáñez2-0/+32
2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR 32102 testsuite/ * gcc.dg/Wstrict-overflow-21.c: New. * g++.dg/warn/Wstrict-aliasing-8.C: New. From-SVN: r131722
2008-01-22Missed testcase in earlier commit.Manuel López-Ibáñez1-0/+6
2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR middle-end/33092 testsuite/ * gcc.dg/pr33092.c: New. From-SVN: r131721
2008-01-22re PR c/32102 (-Wall stomps on -Wstrict-overflow)Manuel López-Ibáñez7-23/+33
2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR 32102 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1. * flags.h (warn_strict_aliasing): Remove. (warn_strict_overflow): Remove. * opts.c (warn_strict_aliasing): Remove. (warn_strict_overflow): Remove. * c-opts.c (c_common_handle_option): -Wall only sets -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized. (c_common_post_options): Give default values to -Wstrict-aliasing and -Wstrict-overflow if they are uninitialized. * common.opt (Wstrict-aliasing): Specify Var and Init. (Wstrict-overflow): Likewise. testsuite/ * gcc.dg/Wstrict-overflow-21.c: New. * g++.dg/warn/Wstrict-aliasing-8.C: New. From-SVN: r131720
2008-01-22re PR tree-optimization/26854 (Inordinate compile times on large routines)Kenneth Zadeck6-123/+77
2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com> PR rtl-optimization/26854 PR rtl-optimization/34400 PR rtl-optimization/34884 * ddg.c (create_ddg_dep_from_intra_loop_link): Use DF_RD->gen. * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted (df_rd_bb_info.expanded_lr_out): Deleted * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag. * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n, df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free): Removed code to allocate, initialize or free expanded_lr_out. (df_rd_bb_local_compute_process_def): Restructured to make more understandable. (df_rd_confluence_n): Removed code to no apply invalidate_by_call sets if the sets are being trimmed. From-SVN: r131719
2008-01-22re PR bootstrap/32287 (gas version style changed causes warnings with configure)H.J. Lu3-24/+11
2008-01-22 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/32287 * configure.ac (ld_vers): Support GNU linker version xx.xx.* (as_vers): Likewise. * configure: Regenerated. From-SVN: r131718
2008-01-22re PR tree-optimization/33092 (Using -O1 -fno-tree-salias results in ICE)Manuel López-Ibáñez5-0/+43
2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR middle-end/33092 * tree-pass.h (pass_build_alias): New pass. * tree-ssa-alias.c (gate_build_alias): New. (pass_build_alias): New. * passes.c (init_optimization_passes): Add pass_build_alias after pass_create_structure_vars. testsuite/ * gcc.dg/pr33092.c: New. From-SVN: r131717
2008-01-2220020926-1.c: Add -m31 option.Andreas Krebbel2-1/+5
2008-01-22 Andreas Krebbel <krebbel1@de.ibm.com> * gcc.target/s390/20020926-1.c: Add -m31 option. From-SVN: r131716
2008-01-22re PR fortran/34915 (-std=f95 rejects len_trim() and index() in init ↵Daniel Franke4-1/+22
expressions) gcc/fortran: 2008-01-22 Daniel Franke <franke.daniel@gmail.com> PR fortran/34915 * expr.c (check_elemental): Fix check for valid data types. gcc/testsuite: 2008-01-22 Daniel Franke <franke.daniel@gmail.com> PR fortran/34915 * gfortran.dg/initialization_18.f90: New test. From-SVN: r131715
2008-01-22s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER): Renamed to ↵Wolfgang Gellerich3-20/+53
S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER. 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com> * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER): Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER. (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER. (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER. (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER. (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant. (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant. (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant. (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant. * config/s390/s390.md (FP_ALL): New mode iterator. (_d): New mode attribute. ("*signbit<mode>2>"): Changed mode of first operand. ("isinf<mode>2"): Changed mode of first operand. ("*TDC_insn"): Adaptation for DFP modes. From-SVN: r131714
2008-01-22re PR fortran/34899 (Continuation lines with <tab><number> not recognized)Tobias Burnus5-8/+49
2008-01-22 Tobias Burnus <burnus@net-b.de> PR fortran/34899 * scanner.c (load_line): Support <tab><digit> continuation * lines. * invoke.texi (-Wtabs): Document this. 2008-01-22 Tobias Burnus <burnus@net-b.de> PR fortran/34899 * gfortran.dg/tab_continuation.f: New. From-SVN: r131713
2008-01-22re PR fortran/34896 (libgomp.fortran/reduction5.f90)Paul Thomas4-0/+39
2008-01-22 Paul Thomas <pault@gcc.gnu.org> PR fortran/34896 * module.c (read_module): Set use_rename attribute. 2008-01-22 Paul Thomas <pault@gcc.gnu.org> PR fortran/34896 * gfortran.dg/use_rename_2.f90: New test. From-SVN: r131712
2008-01-22* tree.c (check_qualified_type): Improve function description.Ben Elliston2-1/+5
From-SVN: r131711
2008-01-21re PR c++/34196 (uninitialized variable warning in dead exception region)Jason Merrill6-3/+84
PR c++/34196 * tree.h (TRY_CATCH_IS_CLEANUP): New macro. * cp/decl.c (wrap_cleanups_r): Set TRY_CATCH_IS_CLEANUP. * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR if it is set. From-SVN: r131710
2008-01-22Daily bump.GCC Administrator1-1/+1
From-SVN: r131708
2008-01-21MAINTAINERS (Write After Approval): Add myself.Tobias Grosser1-0/+1
2008-01-22 Tobias Grosser <grosser@fim.uni-passau.de> * MAINTAINERS (Write After Approval): Add myself. From-SVN: r131705