aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-06-11alias.c (get_alias_set): Use the element alias-set for arrays.Richard Guenther4-6/+27
2008-06-11 Richard Guenther <rguenther@suse.de> * alias.c (get_alias_set): Use the element alias-set for arrays. (record_component_aliases): For arrays and vectors do nothing. * c-common.c (strict_aliasing_warning): Handle the cases of alias set zero explicitly. * Makefile.in (dfp.o-warn): Add -Wno-error. From-SVN: r136679
2008-06-11config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64 tune_32 tune_64.Joseph Myers4-13/+76
* config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64 tune_32 tune_64. (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64 tune_32 tune_64 to supported_defaults. Allow values not supporting 64-bit mode for arch_32, cpu_32 and tune_32 for x86_64. Do not override cpu_32 or cpu_64 values from target name. (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default with_cpu_64 to generic for 64-bit-supporting configurations, not with_cpu. Remove FIXMEs. * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32, --with-arch-64, --with-tune-32, --with-tune-64): Document. * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define. (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64, arch_32 and arch_64. From-SVN: r136674
2008-06-11builtins.c (get_memory_rtx): Accept byte-addressable bitfields.Eric Botcazou5-5/+75
* builtins.c (get_memory_rtx): Accept byte-addressable bitfields. Use DECL_SIZE_UNIT to retrieve the size of the field. Co-Authored-By: Olivier Hainque <hainque@adacore.com> From-SVN: r136673
2008-06-11lock_error, once_flag: Remove empty directories.Matthias Klose1-0/+5
2008-06-11 Matthias Klose <doko@ubuntu.com> * testsuite/30_threads/lock_error, testsuite/30_threads/once_flag: Remove empty directories. From-SVN: r136671
2008-06-11arm.c (arm_init_neon_builtins): Move initialization with function calls ↵Joseph Myers2-72/+144
after declarations. * config/arm/arm.c (arm_init_neon_builtins): Move initialization with function calls after declarations. Lay out neon_float_type_node before further use. From-SVN: r136660
2008-06-11tls.m4: Fix typos.Bernhard Reutner-Fischer4-4/+12
config: * tls.m4: Fix typos. libgcc: * configure: Regenerate. From-SVN: r136658
2008-06-11tree-flow.h (may_point_to_global_var): Declare.Richard Guenther4-14/+25
2008-06-11 Richard Guenther <rguenther@suse.de> * tree-flow.h (may_point_to_global_var): Declare. * tree-ssa-alias.c (may_point_to_global_var): New function. * tree-ssa-sink.c (is_hidden_global_store): Use it. From-SVN: r136657
2008-06-11revert another accidental check-inSa Liu1-2/+1
From-SVN: r136655
2008-06-11re PR libgomp/36471 (omp_get_ancestor_thread_num_8 has no implicit type.)Jakub Jelinek2-2/+6
PR libgomp/36471 * omp_lib.f90.in (omp_get_ancestor_thread_num_8, omp_get_team_size_8): Fix pastos. From-SVN: r136654
2008-06-11Revert the accidental check-in that casued build error on SPU.Sa Liu1-1/+1
From-SVN: r136653
2008-06-11re PR c++/36408 (ICE with statement expression in template)Jakub Jelinek2-1/+7
PR c++/36408 * semantics.c (stmt_expr_value_expr): Don't crash on empty STATEMENT_LIST. From-SVN: r136651
2008-06-11re PR libgomp/36469 (bootstrap broken on HPUX PA)Jakub Jelinek5-2/+18
PR libgomp/36469 * configure.ac: Add AC_CHECK_FUNCS (strtoull). * configure: Regenerated. * config.h.in: Regenerated. * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not defined. From-SVN: r136650
2008-06-11cpp.c: Add copyright notice.Jerry DeLisle3-0/+41
2008-06-10 Jerry DeLisle <jvdelisle@gcc.gnu.org> * cpp.c: Add copyright notice. * cpp.h: Add copyright notice. From-SVN: r136649
2008-06-11configure.ac: Teach that fido supports .debug_line.Kazu Hirata3-2/+9
* configure.ac: Teach that fido supports .debug_line. * configure: Regenerate. From-SVN: r136648
2008-06-11c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file debug hook.Tom Tromey2-2/+10
* c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file debug hook. From-SVN: r136647
2008-06-11Daily bump.GCC Administrator1-1/+1
From-SVN: r136645
2008-06-11dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.Joseph Myers19-27/+165
gcc: * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined. (encode_decimal64, decode_decimal64, encode_decimal128, decode_decimal128): Reverse order of 32-bit parts of value if host and target endianness differ. libdecnumber: * dconfig.h: New. * decContext.c, decExcept.c, decExcept.h, decLibrary.c, decNumber.c, decNumberLocal.h, decRound.c, dpd/decimal128.c, dpd/decimal32.c, dpd/decimal64.c: Include dconfig.h not config.h. * dpd/decimal128Local.h (decimal128SetSign, decimal128ClearSign, decimal128FlipSign): Use WORDS_BIGENDIAN not FLOAT_WORDS_BIG_ENDIAN. * bid/host-ieee128.c: Include dconfig.h. (__host_to_ieee_128, __ieee_to_host_128): Swap 64-bit halves of value if WORDS_BIGENDIAN. libgcc: * Makefile.in (DECNUMINC): Remove -I$(MULTIBUILDTOP)../../libdecnumber. * gstdint.h: New. From-SVN: r136641
2008-06-10value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.Vinodha Ramasamy3-16/+46
2008-06-10 Vinodha Ramasamy <vinodha@google.com> * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type. Avoid division by 0. (tree_mod_pow2_value_transform): Likewise. (tree_ic_transform): Likewise. (tree_stringops_transform): Likewise. (tree_mod_subtract_transform): Likewise. * tree-inline-c (copy_bb): Corrected int type to gcov_type. (copy_edges_for_bb): Likewise. (initialize_cfun): Likewise. From-SVN: r136639
2008-06-10i386.md (*btdi_rex64): Change operand 1 predicate to nonmemory_operand.Uros Bizjak5-4/+145
* config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to nonmemory_operand. Add "N" operand constraint. (*btsi): Ditto. (*jcc_btdi_mask_rex64): New instruction and split pattern. (*jcc_btsi_mask): Ditto. (*jcc_btsi_mask_1): Ditto. testsuite/ChangeLog: * gcc.target/i386/bt-mask-1.c: New test. * gcc.target/i386/bt-mask-2.c: Ditto. From-SVN: r136636
2008-06-10rs6000.c (build_opaque_vector_type): Set TYPE_CANONICAL for copied element type.Joseph Myers2-0/+6
* config/rs6000/rs6000.c (build_opaque_vector_type): Set TYPE_CANONICAL for copied element type. From-SVN: r136632
2008-06-10utils.c (create_subprog_decl): If this is for the 'main' entry point ↵Olivier Hainque2-1/+17
according to the asm name... * utils.c (create_subprog_decl): If this is for the 'main' entry point according to the asm name, redirect main_identifier_node. From-SVN: r136619
2008-06-10Object.m (compare): Add type id.Kai Tietz5-6/+17
2008-06-10 Kai Tietz <kai.tietz@onevision.com> * Object.m (compare): Add type id. * objc/Object.h: Likewise. * archive.c (objc_read_class): Use size_t to extend version to be size of pointer scalar width. * sendmsg.c (rtx): Undefine it before redefinition. (__objc_print_dtable_stats): Cast arguments to long as intended. From-SVN: r136617
2008-06-10re PR target/36473 (Generate bit test (bt) instructions)Uros Bizjak7-13/+190
PR target/36473 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]: Add m_CORE2 and m_GENERIC. * config/i386/predicates.md (bt_comparison_operator): New predicate. * config/i386/i386.md (*btdi_rex64): New instruction pattern. (*btsi): Ditto. (*jcc_btdi_rex64): New instruction and split pattern. (*jcc_btsi): Ditto. (*jcc_btsi_1): Ditto. (*btsq): Fix Intel asm dialect operand order. (*btrq): Ditto. (*btcq): Ditto. testsuite/ChangeLog: PR target/36473 * testsuite/gcc.target/i386/bt-1.c: New test. * testsuite/gcc.target/i386/bt-2.c: Ditto. From-SVN: r136615
2008-06-10Daily bump.GCC Administrator1-1/+1
From-SVN: r136609
2008-06-09* gcc.c-torture/execute/builtins/lib/chk.c: Only include sys/types.h for ↵Andy Hutchinson2-0/+7
unix to check for uClibc. From-SVN: r136605
2008-06-09re PR testsuite/36285 (gcc.dg/compat/struct-by-value-xxx improper test for ↵Andy Hutchinson4-6/+18
AVR target) PR testsuite/36285 * gcc.dg/compat/struct-return-10_y.c: Remove test_va. * gcc.dg/compat/vector-defs.h: Add check for availability of 8 byte double. * gcc.dg/compat/struct-layout-1_test.h: Change bitfield to match integer size. From-SVN: r136604
2008-06-09re PR middle-end/36447 (simplify_subreg ICE with right shift more than ↵Andy Hutchinson2-0/+7
length type AVR) PR middle-end/36447 * simplify-rtx.c (simplify_subreg): Add check for shift count greater than size. From-SVN: r136602
2008-06-09pr34856.c: Condition use of -maltivec on powerpc_altivec_ok.Joseph Myers2-1/+7
* gcc.dg/pr34856.c: Condition use of -maltivec on powerpc_altivec_ok. Use -w on other powerpc*-*-linux*. From-SVN: r136601
2008-06-09md.texi: Synchronize with later constraints.md change.Richard Sandiford28-543/+917
gcc/ * doc/md.texi: Synchronize with later constraints.md change. * longlong.h (umul_ppmm): Replace the MIPS asm implementation with a C implementation. * config/mips/mips.c (mips_legitimize_move): Remove MFHI and MFLO handling. (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT. (mips_split_doubleword_move): Use special MTHI and MFHI instructions when moving to and from MD_REGNUM. (mips_output_move): Don't handle moves from GPRs to HI_REGNUM. Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC. Handle byte and halfword moves. (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS separately. * config/mips/constraints.md (h): Turn into NO_REGS. (l, x): Update documentation. * config/mips/mips.md (UNSPEC_MFHILO): Delete. (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New. (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber. (HILO): New mode iterator. (MOVE128): Add TI. (any_div): New code iterator. (u): Extend code attribute to div and udiv. (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use d_operand in the splitters. Remove redundant CONST_INT checks. (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si) (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si) (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits accordingly, using normal moves instead of unspecs to move LO into a GPR. Use d_operand and lo_operand instead of *_REG_P checks. (<u>mulsidi3): Handle expansion in C code. (<u>mulsidi3_32bit_internal): Rename to... (<u>mulsidi3_32bit): ...this. (<u>mulsidi3_32bit_r4000): Fix insn separator. (*<u>mulsidi3_64bit): Rename to... (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO to set LO and HI to the multiplication result. Use a normal move for MFLO and an unspec for MFHI. (*<u>mulsidi3_64bit_parts): Replace with... (<u>mulsidi3_64bit_hilo): ...this new instruction. (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000. (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split and extend it to TARGET_FIX_R4000. Store the destination in a GPR instead of HI. Split the instruction into a separate multiplication and MFHI if !TARGET_FIX_R4000. (<su>muldi3_highpart): Likewise. (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative and the "=h" clobber. (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise. (<u>mulditi3): New expander. (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns. (madsi): Remove "=h" clobber. (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits. Force the modulus result to be a GPR and split the instruction into a division followed by an MFHI after reload. (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction. (*lea_high64): Use d_operand in the define_peephole2. Likewise the MIPS16 HIGH define_split. (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type of acc<->gpr moves to "multi". (*movdi_64bit): Replace the single "x" alternative with alternatives for moving into and out of "a". (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move. (*movsi_internal): Extend the "d<-A" alternative to "d<-a". (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives. Use d_operand in the splitters. Remove redundant CONST_INT checks. (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move. (movti): New expander. (*movti, *movti_mips16): New insns. (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete. (mfhi<GPR:mode>_<HILO:mode>): New pattern. (mthi<GPR:mode>_<HILO:mode>): Likewise. * config/mips/predicates.md (fpr_operand): Delete. (d_operand): New predicate. gcc/testsuite/ * gcc.dg/torture/mips-hilo-1.c: Delete. * gcc.target/mips/pr35232.c: Likewise. * gcc.target/mips/fix-vr4130-1.c: Use modulus to create an mfhi. * gcc.target/mips/fix-vr4130-3.c: Likewise. * gcc.target/mips/int-moves-1.c: New test. * gcc.target/mips/int-moves-2.c: Likewise. * gcc.target/mips/fix-r4000-1.c: Likewise. * gcc.target/mips/fix-r4000-2.c: Likewise. * gcc.target/mips/fix-r4000-3.c: Likewise. * gcc.target/mips/fix-r4000-4.c: Likewise. * gcc.target/mips/fix-r4000-5.c: Likewise. * gcc.target/mips/fix-r4000-6.c: Likewise. * gcc.target/mips/fix-r4000-7.c: Likewise. * gcc.target/mips/fix-r4000-8.c: Likewise. * gcc.target/mips/fix-r4000-9.c: Likewise. * gcc.target/mips/fix-r4000-10.c: Likewise. * gcc.target/mips/fix-r4000-11.c: Likewise. * gcc.target/mips/fix-r4000-12.c: Likewise. * gcc.target/mips/timode-1.c: Likewise. * gcc.target/mips/timode-2.c: Likewise. From-SVN: r136600
2008-06-09Fix config.gcc shell script lossageMichael Meissner2-2/+8
From-SVN: r136596
2008-06-09cygming.h (TARGET_SUBTARGET64_DEFAULT): New.Kai Tietz2-0/+8
2008-06-09 Kai Tietz <kai.tietz@onevision.com> * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New. From-SVN: r136590
2008-06-09install.texi (*-*-solaris2*): Remove obsolete contents.Eric Botcazou2-29/+20
* doc/install.texi (*-*-solaris2*): Remove obsolete contents. (sparc-sun-solaris2*): Likewise. From-SVN: r136585
2008-06-09decl.c (components_to_record): Adjust the packedness for the qualified union ↵Eric Botcazou5-1/+69
as well. * decl.c (components_to_record): Adjust the packedness for the qualified union as well. From-SVN: r136583
2008-06-09* doc/install.texi: Update requirements to build the Ada compiler.Arnaud Charlet2-1/+5
From-SVN: r136580
2008-06-09Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle checks non fatal.Arnaud Charlet2-1/+6
* Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle checks non fatal. From-SVN: r136578
2008-06-09df-scan.c (struct df_scan_problem_data): Remove the mw_link_pool alloc pool.Steven Bosscher3-8/+10
2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com> * df-scan.c (struct df_scan_problem_data): Remove the mw_link_pool alloc pool. (df_scan_free_internal): Don't free it. (df_scan_alloc): Don't allocate it. * df.h (struct df_link): Update comment. From-SVN: r136576
2008-06-09Daily bump.GCC Administrator1-1/+1
From-SVN: r136574
2008-06-08re PR c++/35242 (ICE with invalid specialization of variadic template)Paolo Carlini5-2/+32
/cp 2008-06-08 Paolo Carlini <paolo.carlini@oracle.com> PR c++/35242 * pt.c (maybe_process_partial_specialization): Check the tree returned by push_template_decl for error_mark_node. * parser.c (cp_parser_class_head): Likewise, check the tree returned by the latter. /testsuite 2008-06-08 Paolo Carlini <paolo.carlini@oracle.com> PR c++/35242 * g++.dg/cpp0x/vt-35242.C: New. From-SVN: r136569
2008-06-08* except.h: Correct checks for when SJLJ exceptions must be used.Nathan Sidwell2-8/+19
From-SVN: r136568
2008-06-08invoke.texi (Wenum-compare): Mention that it is enabled by default.Manuel López-Ibáñez2-1/+7
2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org> * doc/invoke.texi (Wenum-compare): Mention that it is enabled by default. From-SVN: r136567
2008-06-08Update the copyright years and put the licensing text directly into the ↵Bruce Korb2-9/+23
template file. Update the copyright years and put the licensing text directly into the template file. The license needs to be version dependent, so burn it in directly. From-SVN: r136566
2008-06-08re PR tree-optimization/36218 (VRP causes stack overflow while building libgcj)Joseph Myers10-27/+73
PR tree-optimization/36218 * Makefile.def (flags_to_pass): Add LDFLAGS_FOR_BUILD. * Makefile.tpl (EXTRA_BUILD_FLAGS): Define. (all prefix="build-"): Pass them to build-system sub-makes. * Makefile.in: Regenerate. config: * config/mh-mingw (LDFLAGS): Define. gcc: * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running configure for the build system. (BUILD_LDFLAGS): Define. * configure: Regenerate. * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@. From-SVN: r136563
2008-06-08re PR target/36424 (avr-gcc use don't saved registers in ISR with -O3 ↵Anatoly Sokolov4-0/+28
('-frename-registers' ) optimization) PR target/36424 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define. * config/avr/avr.c (avr_hard_regno_rename_ok): New function. * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. From-SVN: r136562
2008-06-08Remove commentary fixes. Regenerate fixincl.x just to show there is no ↵Bruce Korb2-395/+82
difference. From-SVN: r136561
2008-06-08re PR fortran/36459 (Wrong interface use for PROCEDURE)Janus Weil4-2/+36
2008-06-08 Janus Weil <janus@gcc.gnu.org> PR fortran/36459 * decl.c (match_procedure_decl): Correctly recognize if the interface is an intrinsic procedure. 2008-06-08 Janus Weil <janus@gcc.gnu.org> PR fortran/36459 * gfortran.dg/proc_decl_16.f90: New. From-SVN: r136555
2008-06-08re PR fortran/35830 (ICE with PROCEDURE(<interface>) containing array formal ↵Tobias Burnus6-0/+112
arguments) 2008-06-08 Tobias Burnus <burnus@net-b.de> PR fortran/35830 * resolve.c (resolve_symbol): Copy more attributes for PROCEDUREs with interfaces. 2008-06-08 Tobias Burnus <burnus@net-b.de> PR fortran/35830 * proc_decl_13.f90: New. * proc_decl_14.f90: New. * proc_decl_15.f90: New. From-SVN: r136554
2008-06-08Daily bump.GCC Administrator1-1/+1
From-SVN: r136551
2008-06-08re PR fortran/36420 (Fortran 2008: g0 edit descriptor)Jerry DeLisle4-0/+47
2008-06-07 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/36420 PR fortran/36421 PR fortran/36422 * gfortran.dg/fmt_g0_1.f08: New test. * gfortran.dg/fmt_g0_2.f08: New test. * gfortran.dg/fmt_g0_3.f08: New test. From-SVN: r136547
2008-06-08Fix ChangeLogJerry DeLisle1-1/+2
From-SVN: r136546
2008-06-07re PR fortran/36420 (Fortran 2008: g0 edit descriptor)Jerry DeLisle5-11/+55
2008-06-07 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/36420 PR libfortran/36421 PR libfortran/36422 * io/io.h: Add prototype for write_real. * io/transfer.c (formatted_transfer_scalar): For FMT_G and width zero, use write_real. * io/format.c: Add zero width error message. (parse_format_list): Use error message for FMT_A if followed by FMT_ZERO. Use zero width error message for FMT_G if mode is READ or if -std=f95 or f2003. (fmormat0): Fix typo in comment. * io/write.c (write_a): Set wlen to len if FMT_G and length is zero. (write_l): Add wlen variable and use it if FMT_G and width is zero. (write_decimal): If FMT_G, set m to -1 to flag processor dependent formatting. (write_real): Remove static declaration. From-SVN: r136545