aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2004-03-18c-decl.c (grokdeclarator): Do not complain about redeclaring visible ↵Mark Mitchell6-1/+38
"static" identifiers "extern" in a... * c-decl.c (grokdeclarator): Do not complain about redeclaring visible "static" identifiers "extern" in a local scope. * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and post-increments/decrements. * gcc.dg/local1.c: New test. * gcc.dg/debug/dwarf2/c99-typedef1.c: New test. From-SVN: r79634
2004-03-18xtensa.c (current_function_arg_words): Delete.Bob Wilson2-3/+7
* config/xtensa/xtensa.c (current_function_arg_words): Delete. (xtensa_builtin_saveregs): Use current_function_args_info.arg_words. (xtensa_va_start): Remove assignment to current_function_arg_words. From-SVN: r79632
2004-03-18* be.po, da.po, el.po, es.po, ja.po, nl.po, sv.po, tr.po: Update.Joseph Myers9-65565/+78226
From-SVN: r79630
2004-03-18alias.c (record_set): Detect the case where a register is assigned a new ↵Richard Sandiford2-5/+21
value that has the same base... * alias.c (record_set): Detect the case where a register is assigned a new value that has the same base term as the old one. From-SVN: r79629
2004-03-18doloop.c: Removed.Zdenek Dvorak10-912/+612
* doloop.c: Removed. * loop-doloop.c: New file. * Makefile.in (doloop.o): Remove. (loop-doloop.o): New. * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare. * cfgloopanal.c (get_loop_level): New function. * loop-iv.c (iv_number_of_iterations): Handle case when loop is leaved immediatelly. * loop.c (strength_reduce): Do not call doloop optimization. * loop.h (LOOP_BCT): Removed. * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT. (rest_of_handle_loop2): Call doloop_optimize_loops. (rest_of_compilation): Test for optimizations moved to rest_of_handle_loop2. From-SVN: r79625
2004-03-18Fixed some stack size allocation in G5's mixed mode.Fariborz Jahanian3-3/+15
Oked by David Edelsohn. From-SVN: r79624
2004-03-18[multiple changes]Arnaud Charlet30-548/+1425
2004-03-18 Arnaud Charlet <charlet@act-europe.fr> * 5atpopsp.adb: Remove RTEMS from list of platforms using this file. Code clean up: * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb, 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use Specific.Set instead of direct call to e.g pthread_setspecific. 2004-03-18 Thomas Quinot <quinot@act-europe.fr> * adaint.c: Update comments. * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and GNATLIB_SHARED for FreeBSD. 2004-03-18 Jose Ruiz <ruiz@act-europe.fr> * init.c [VxWorks]: Do not fix the stack size for the environment task. When needed (stack checking) the stack size is retrieved from the VxWorks kernel. * Makefile.in: Flag -nostdinc is required when building the run time for avoiding looking for files in the base compiler. Add the VxWorks specific version of the package body for System.Stack_checking.Operations (5zstchop.adb). * Make-lang.in: Add the object file for System.Stack_Checking.Operations. * Makefile.rtl: Add object file for the package System.Stack_Checking.Operations. * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files. * s-stache.ads, s-stache.adb: Move the operations related to stack checking from this package to package System.Stack_Checking.Operations. This way, stack checking operations are only linked in the final executable when using the -fstack-check flag. 2004-03-18 Doug Rupp <rupp@gnat.com> * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads). Reorganize ifeq's. * 5qsystem.ads, 5xcrtl.ads: New files. 2004-03-18 Vincent Celier <celier@gnat.com> * prj.adb (Reset): Reset hash table Files_Htable * prj-env.adb (Source_Paths, Object_Paths): New tables. (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace the procedures Add_To_Path_File. (Set_Ada_Paths): Accumulate source and object dirs in the tables, making sure that each directory is present only once and, for object dirs, when a directory already present is added, the duplicate is removed and the directory is always put as the last in the table. Write the path files at the end of these accumulations. * prj-nmsc.adb (Record_Source): Add source file name in hash table Files_Htable for all sources. * prj-proc.adb (Process): Remove restrictions between not directly related extending projects. 2004-03-18 Emmanuel Briot <briot@act-europe.fr> * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode. (Find_Sources): Minor speed optimization. * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New parameter Trusted_Mode. 2004-03-18 Sergey Rybin <rybin@act-europe.fr> * scn.adb (Determine_License): Take into account a degenerated case when the source contains only comments. 2004-03-18 Ed Schonberg <schonberg@gnat.com> * sem_warn.adb (Check_References): For a warning on a selected component that does not come from source, locate an uninitialized component of the record type to produce a more precise error message. From-SVN: r79623
2004-03-18predict.c (propagate_freq): Compute correctly frequency of EXIT_BLOCK.Jan Hubicka2-1/+6
* predict.c (propagate_freq): Compute correctly frequency of EXIT_BLOCK. From-SVN: r79621
2004-03-18Daily bump.GCC Administrator1-1/+1
From-SVN: r79612
2004-03-17builtins.c (apply_args_size): Use reg_raw_mode.Eric Christopher2-87/+25
2004-03-17 Eric Christopher <echristo@redhat.com> * builtins.c (apply_args_size): Use reg_raw_mode. (apply_result_size): Ditto. From-SVN: r79609
2004-03-17* gcc.dg/torture/builtin-convert-1.c: New test.Kaveh R. Ghazi2-0/+120
From-SVN: r79591
2004-03-17re PR target/14577 (Switching sh-rtems to ELF)Ralf Corsepius2-1/+18
2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de> PR target/14577 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff. From-SVN: r79590
2004-03-17t-linux64 (bispecs): Don't add -mlong-double-128 for 32-bit builds when ↵Jakub Jelinek2-2/+10
defaulting to 32-bit. * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for 32-bit builds when defaulting to 32-bit. From-SVN: r79587
2004-03-17cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info array.Jan Hubicka2-2/+11
* cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info array. From-SVN: r79585
2004-03-17Patch for pending SB-1 DFA scheduler.James E Wilson7-101/+116
* config/mips/mips.md (zero_extendsidi2): Add length attribute. (hazard_nop): Change type to nop. (type): Split arith into arith, shift, slt, clz. Delete darith. Fix all uses. Change arith to multi if more than one insn emitted. * config/mips/5400.md (ir_vr54_arith): Likewise. * config/mips/5500.md (ir_vr55_arith): Likewise. * config/mips/7000.md (rm7_int_other): Likewise. * config/mips/9000.md (rm9k_int): Likewise. * config/mips/sr71k.md (ir_sr70_arith): Likewise. From-SVN: r79583
2004-03-17dwarf2out.c (subrange_type_die): Define new variable "subtype" to hold the ↵Joel Brobecker2-4/+10
subtype tree instead of recomputing... * dwarf2out.c (subrange_type_die): Define new variable "subtype" to hold the subtype tree instead of recomputing it several times. From-SVN: r79577
2004-03-17Fix stuff accidentally committed in previous patchMark Mitchell1-6/+6
From-SVN: r79574
2004-03-17mn10300.c (notice_update_cc): Don't handle CC_INVERT.Kazu Hirata3-9/+7
* config/mn10300/mn10300.c (notice_update_cc): Don't handle CC_INVERT. * config/mn10300/mn10300.md (cc): Remove "invert". From-SVN: r79573
2004-03-17builtins.c (integer_valued_real_p): Add builtin rint.Kaveh R. Ghazi5-0/+17
* builtins.c (integer_valued_real_p): Add builtin rint. (fold_builtin): Likewise. * convert.c (convert_to_real): Likewise. testsuite: * gcc.dg/torture/builtin-integral-1.c: Also check for `rint'. From-SVN: r79572
2004-03-17convert.c (convert_to_real): Fix typos in `long double' builtins.Kaveh R. Ghazi2-3/+8
* convert.c (convert_to_real): Fix typos in `long double' builtins. From-SVN: r79571
2004-03-17re PR c++/14481 (strange warning when assigning to bitfield)Mark Mitchell4-6/+30
PR c++/14481 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly generated COMPOUND_EXPRs. PR c++/14481 * g++.dg/warn/Wunused-7.C: New test. From-SVN: r79570
2004-03-17* config/h8300/t-rtems (h8300-*-rtems*): New.Ralf Corsepius2-0/+11
From-SVN: r79568
2004-03-17Fix typo in copyright year.Kaveh Ghazi1-1/+1
From-SVN: r79566
2004-03-17* gcc.dg/torture/builtin-integral-1.c: New test.Kaveh R. Ghazi2-0/+61
From-SVN: r79565
2004-03-17Daily bump.GCC Administrator1-1/+1
From-SVN: r79561
2004-03-16jcf-jump.c (options): New --print-constants option.Per Bothner3-1/+10
* jcf-jump.c (options): New --print-constants option. * gcj.texi (Invoking jcf-dump): Document --print-constants. From-SVN: r79558
2004-03-16cppopts.texi (fwide-exec-charset): Fix typo.Eric Christopher2-3/+7
2004-03-16 Eric Christopher <echristo@redhat.com> * doc/cppopts.texi(fwide-exec-charset): Fix typo. From-SVN: r79557
2004-03-16i386-protos.h: Add a prototype for ix86_reverse_condition.Kazu Hirata5-9/+28
* config/i386/i386-protos.h: Add a prototype for ix86_reverse_condition. * config/i386/i386.c (ix86_reverse_condition): New. * config/i386/i386.h (REVERSE_CONDITION): Use ix86_reverse_condition. * config/i386/i386.md: Use ix86_reverse_condition instead of REVERSE_CONDITION. From-SVN: r79556
2004-03-16jcf-dump.c (flag_print_constant_pool): Default to off.Per Bothner2-29/+55
* jcf-dump.c (flag_print_constant_pool): Default to off. (print_constant_terse_with_index): New helper function. (various places): Check flag_print_constant_pool where missing. (main): If verbose set flag_print_constant_pool. (HANDLE_INNERCLASSES_ATTRIBUTE): Null inner class name is anonymous. From-SVN: r79555
2004-03-16re PR c++/14586 (Bogus warning in templates about taking address of a ↵Mark Mitchell11-17/+91
temporary in a template) PR c++/14586 * cp-tree.h (build_new_op): Change prototype. (build_x_binary_op): Likewise. * call.c (build_new_op): Add overloaded_p parameter. * decl2.c (grok_array_decl): Adjust call to build_new_op. * parser.c (cp_parser_binary_expression): Note that uses of overloaded operators prevents an expression from being considered an integral constant. * pt.c (tsubst_copy_and_build): Adjust calls to build_new_op and/or build_x_binary_op. * semantics.c (finish_call_expr): Likewise. * typeck.c (rationalize_conditional_expr): Likewise. (build_x_indirect_ref): Likewise. (build_x_binary_op): Likewise. (build_x_unary_op): Likewise. (build_x_compound_expr): Likewise. (build_modify_expr): Likewise. * typeck2.c (build_x_arrow): Likewise. PR c++/14586 * g++.dg/parse/non-dependent3.C: New test. From-SVN: r79553
2004-03-16* dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.J. Brobecker2-4/+14
From-SVN: r79549
2004-03-16re PR bootstrap/12974 (gcc-3.4/4.0-20031105 bootstrap failure [MinGW])Nathanael Nerode2-0/+6
2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org> PR bootstrap/12974 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly. From-SVN: r79547
2004-03-16c-common.c (c_common_type_for_mode): Build vector types on demand.Paolo Bonzini36-311/+276
gcc/ChangeLog 2004-03-16 Paolo Bonzini <bonzini@gnu.org> * c-common.c (c_common_type_for_mode): Build vector types on demand. (handle_mode_attribute): Deprecate using the mode attribute to create vector types. Fix indentation. (vector_type_node_list): Remove. (handle_vector_size_attribute): Create vector types on demand. Strip a NON_LVALUE_EXPR from the attribute if there is one. * c-typeck.c (comptypes): Make vector types compatible if they have the same underlying mode. (convert_for_assignment): Use comptypes to convert between vector types. * tree.c (build_common_tree_nodes_2): Do not create vector types. * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary vector types. * tree.h: Remove vector types. * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise. * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise. (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node, V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals. * doc/extend.texi (Vector Types): Document how to use the vector_size attribute to create vectors, rather than mode. * config/arm/mmintrin.h: Use vector_size attribute, not mode. * config/i386/emmintrin.h: Likewise. * config/i386/mmintrin.h: Likewise. * config/i386/xmmintrin.h: Likewise. * config/sh/ushmedia.h: Likwise. testsuite/ChangeLog 2004-03-16 Paolo Bonzini <bonzini@gnu.org> * g++.dg/eh/simd-1.C: Use vector_size attribute, not mode. * g++.dg/eh/simd-2.C: Likewise. * g++.dg/init/array10.C: Likewise. * gcc.c-torture/compile/simd-1.c: Likewise. * gcc.c-torture/compile/simd-2.c: Likewise. * gcc.c-torture/compile/simd-3.c: Likewise. * gcc.c-torture/compile/simd-4.c: Likewise. * gcc.c-torture/compile/simd-6.c: Likewise. * gcc.c-torture/execute/simd-1.c: Likewise. * gcc.c-torture/execute/simd-2.c: Likewise. * gcc.dg/compat/vector-defs.h: Likewise. * gcc.dg/20020531-1.c: Likewise. * gcc.dg/altivec-3.c: Likewise. * gcc.dg/altivec-4.c: Likewise. * gcc.dg/altivec-varargs-1.c: Likewise. * testsuite/gcc.dg/compat/vector-defs.h: Likewise. * gcc.dg/i386-mmx-3.c: Likewise. * gcc.dg/i386-sse-4.c: Likewise. * gcc.dg/i386-sse-5.c: Likewise. * gcc.dg/i386-sse-8.c: Likewise. * gcc.dg/simd-1.c: Likewise. * gcc.dg/20030218-1.c: Likewise. Plus, do not declare __ev64_opaque__ since the machine description provides it. Index: c-common.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/c-common.c,v retrieving revision 1.487 diff -u -r1.487 c-common.c --- c-common.c 26 Feb 2004 01:24:37 -0000 1.487 +++ c-common.c 10 Mar 2004 10:25:28 -0000 @@ -1874,38 +1874,12 @@ if (mode == TYPE_MODE (build_pointer_type (integer_type_node))) return unsignedp ? make_unsigned_type (mode) : make_signed_type (mode); - switch (mode) + if (VECTOR_MODE_P (mode)) { - case V16QImode: From-SVN: r79544
2004-03-16compat.exp (skip_list): New global variable.Eric Botcazou2-0/+29
* lib/compat.exp (skip_list): New global variable. Use it to hold the user defined COMPAT_SKIPS list if any. (compat-obj): Add the members of skip_list to optall. From-SVN: r79540
2004-03-16union-by-value-1_main.c, [...]: New files.Eric Botcazou10-0/+584
* gcc.dg/compat/union-by-value-1_main.c, union-by-value-1_x.c, union-by-value-1_y.c, union-check.h, union-defs.h, union-init.h, union-return-1_main.c, union-return-1_x.c, union-return-1_y.c: New files. From-SVN: r79539
2004-03-16mixed-struct-check.h, [...]: Add 4 mixed structure types.Eric Botcazou10-0/+488
* gcc.dg/compat/mixed-struct-check.h, mixed-struct-defs.h, mixed-struct-init.h: Add 4 mixed structure types. struct-by-value-21_main.c, struct-by-value-21_x.c, struct-by-value-21_y.c, struct-return-21_main.c, struct-return-21_x.c, struct-return-21_y.c: New files. From-SVN: r79538
2004-03-16freebsd-spec.h, [...]: Update copyright.Kazu Hirata15-14/+28
* config/freebsd-spec.h, config/arc/arc-protos.h, config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h, config/arm/linux-gas.h, config/arm/semi.h, config/cris/cris-protos.h, config/i386/xm-djgpp.h, config/ia64/freebsd.h, config/mips/7000.md, config/mips/9000.md, config/ns32k/ns32k-protos.h, config/sparc/pbd.h: Update copyright. From-SVN: r79537
2004-03-16re PR target/14577 (Switching sh-rtems to ELF)Ralf Corsepius2-5/+10
2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de> PR target/14577 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff. From-SVN: r79536
2004-03-16combine.c (combine_simplify_rtx): Remove the "last" parameter and its ↵Paolo Bonzini2-16/+26
documentation. 2004-03-16 Paolo Bonzini <bonzini@gnu.org> * combine.c (combine_simplify_rtx): Remove the "last" parameter and its documentation. Adjust recursive calls. (simplify_logical): Always perform the only simplification controlled by "last", if the simplified expression is actually different. (try_combine): Do not pass the "last" parameter to combine_simplify_rtx. From-SVN: r79534
2004-03-16re PR target/14599 (ieee/20000320-1.c fails for -mips16 using -O2 and above)Richard Sandiford3-9/+21
PR target/14599 * config/mips/mips.md (UNSPEC_GP): New constant. * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain an UNSPEC instead of (reg $gp). (mips16_gp_pseudo_reg): Change accordingly. (print_operand): Print $gp directly when handling CONST_GP_P. From-SVN: r79527
2004-03-16config.gcc, linux.h: Implement with-cpu for m68k-linux.Richard Zidlicky4-6/+62
* config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux. * longlong.h: Make code 68060 clean when compiling for m68060. From-SVN: r79524
2004-03-16m68k.md: Fix constraints for bitfield instructions.Richard Zidlicky3-25/+30
2004-03-16 Richard Zidlicky <rz@linux-m68k.org> * config/m68k/m68k.md: Fix constraints for bitfield instructions. * doc/md.texi: Clarify description of "i" constraint. From-SVN: r79523
2004-03-15Patch for SB-1 DFA scheduler work.James E Wilson7-44/+55
* config/mips/mips.md (type): Split load into load, fpload, fpidxload. Split store into store, fpstore, fpidxstore. Fix all uses. * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore): Likewise. * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise. * config/mips/7000.md (rm7_ld, rm7_st): Likewise. * config/mips/9000.md (rm9k_load, rm9k_store): Likewise. * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload, ir_sr70_fstore): Likewise. From-SVN: r79522
2004-03-15re PR middle-end/14535 (exception throwing in virtual function doesn't turn ↵Richard Henderson3-2/+53
on the local destructors) PR middle-end/14535 * except.c (collect_one_action_chain): Record action for cleanup outer of exception spec. * g++.dg/eh/spec7.C: New. From-SVN: r79521
2004-03-16Daily bump.GCC Administrator1-1/+1
From-SVN: r79518
2004-03-15host-darwin.c (darwin_rs6000_gt_pch_use_address): Fix the check for abort ↵Ian Lance Taylor2-8/+16
and only do the mmap if we can. 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com> * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address): Fix the check for abort and only do the mmap if we can. From-SVN: r79512
2004-03-15sparc.h: Rework comments about the code model in 64-bit environment and the ↵Eric Botcazou3-47/+58
mode 'Pmode'. * config/sparc/sparc.h: Rework comments about the code model in 64-bit environment and the mode 'Pmode'. * doc/invoke.texi (SPARC options): Rework description of the different code models supported in 64-bit environment. From-SVN: r79509
2004-03-15defaults.h (REVERSIBLE_CC_MODE): Define.Kazu Hirata3-2/+10
* defaults.h (REVERSIBLE_CC_MODE): Define. * jump.c (reversed_comparison_code_parts): Don't check if REVERSIBLE_CC_MODE is defined. From-SVN: r79507
2004-03-15c-incpath.c, [...]: Update copyright.Kazu Hirata46-44/+74
gcc/ * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c, et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h, hosthooks.h, params.h, ra-colorize.c, web.c, config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c, config/avr/avr-protos.h, config/avr/avr.md, config/fr30/fr30-protos.h, config/fr30/fr30.md, config/h8300/fixunssfsi.c, config/i386/darwin.h, config/i386/freebsd.h, config/i386/freebsd64.h, config/ia64/hpux.h, config/ia64/unwind-ia64.c, config/ip2k/libgcc.S, config/m32r/xm-m32r.h, config/mmix/mmix-modes.def, config/ns32k/netbsd.h, config/ns32k/ns32k.md, config/pa/pa64-hpux.h, config/pa/pa64-regs.h, config/rs6000/aix41.h, config/rs6000/aix43.h, config/rs6000/host-darwin.c, config/sparc/aout.h, config/sparc/freebsd.h, config/sparc/litecoff.h, config/vax/vax-protos.h, doc/hostconfig.texi, doc/include/gcc-common.texi: Update copyright. gcc/cp/ * cp-lang.c, ptree.c: Update copyright. From-SVN: r79506
2004-03-15re PR java/14581 (gcj internal error: Segmentation fault involving switch ↵Andrew Haley2-1/+8
to a final var) 2004-03-15 Andrew Haley <aph@redhat.com> PR java/14581 * parse.y (java_complete_lhs): Check that final variable has an initializer. From-SVN: r79505