OSDN Git Service
steven [Tue, 1 Feb 2005 22:50:12 +0000 (22:50 +0000)]
PR tree-optimization/19217
* tree-cfg.c (verify_expr): Use the data field to see if TP was
seen inside a PHI node. Do not do the ADDR_EXPR check if it was.
(verify_stmts): Pass (void*)1 as data to verify_expr to signal
that it is walking a PHI node.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94570
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Tue, 1 Feb 2005 22:45:22 +0000 (22:45 +0000)]
* doc/extend.texi (Nested Functions): Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94569
138bc75d-0d04-0410-961f-
82ee72b054a4
janis [Tue, 1 Feb 2005 21:36:12 +0000 (21:36 +0000)]
* g++.old-deja/g++.other/init5.C: Remove xfail for powerpc-linux.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94567
138bc75d-0d04-0410-961f-
82ee72b054a4
janis [Tue, 1 Feb 2005 21:35:18 +0000 (21:35 +0000)]
* gcc.dg/tree-ssa/
20040204-1.c: Remove powerpc from xfail list.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94566
138bc75d-0d04-0410-961f-
82ee72b054a4
janis [Tue, 1 Feb 2005 21:33:28 +0000 (21:33 +0000)]
* g++.dg/eh/simd-2.C: Check for AltiVec HW support at runtime.
* g++.dg/eh/check-vect.h: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94565
138bc75d-0d04-0410-961f-
82ee72b054a4
janis [Tue, 1 Feb 2005 21:31:20 +0000 (21:31 +0000)]
* gcc.dg/vect/vect-77.c: Replace xfail selector with expression.
* gcc.dg/vect/vect-78.c: Ditto.
* gcc.dg/vect/vect.exp (check_effective_target_lp64_or_vect_no_align):
Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94564
138bc75d-0d04-0410-961f-
82ee72b054a4
janis [Tue, 1 Feb 2005 21:28:30 +0000 (21:28 +0000)]
* g++.dg/conversion/simd1.C: Expect warning.
* g++.dg/ext/attribute-test-1.C: Ditto.
* g++.dg/ext/attribute-test-2.C: Ditto.
* g++.dg/ext/attribute-test-3.C: Ditto.
* g++.dg/ext/attribute-test-4.C: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94563
138bc75d-0d04-0410-961f-
82ee72b054a4
janis [Tue, 1 Feb 2005 21:27:16 +0000 (21:27 +0000)]
* gcc.dg/ppc64-toc.c: Don't explicitly use -m64.
* gcc.dg/ppc-eabi.c: Don't explicity use -m32.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94562
138bc75d-0d04-0410-961f-
82ee72b054a4
janis [Tue, 1 Feb 2005 21:25:31 +0000 (21:25 +0000)]
* gcc.dg/ppc64-abi-3.c: Add xfail for error checks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94561
138bc75d-0d04-0410-961f-
82ee72b054a4
sayle [Tue, 1 Feb 2005 21:20:34 +0000 (21:20 +0000)]
* jcf-write.c (generate_bytecode_insns): Implement RSHIFT_EXPR
of unsigned types using iushr and lushr JVM bytecodes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94560
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Tue, 1 Feb 2005 20:57:22 +0000 (20:57 +0000)]
PR 19696
* optabs.c (expand_copysign_absneg): Export.
* optabs.h (expand_copysign_absneg): Declare.
* config/rs6000/rs6000.md (copysigntf3): New.
* gcc.c-torture/execute/ieee/copysign1.c: Special case sizeof
long double for ibm double-double format.
* gcc.c-torture/execute/ieee/copysign2.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94559
138bc75d-0d04-0410-961f-
82ee72b054a4
dnovillo [Tue, 1 Feb 2005 20:30:07 +0000 (20:30 +0000)]
PR tree-optimization/19633
* tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
* tree-ssa-alias.c (init_alias_info): Initialize.
(merge_pointed_to_info): Set.
(add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
(dump_points_to_info_for): Show value of pt_null.
(struct count_ptr_d): Declare.
(find_ptr_dereference): Remove.
(ptr_is_dereferenced_by): Remove.
(count_ptr_derefs): New local function.
(count_uses_and_derefs): New local function.
(compute_points_to_and_addr_escape): Call it. If the number
of dereferences is greater than zero, mark the pointer as
dereferenced. If there are fewer dereferences than uses of
the pointer, the pointer's value escapes.
testsuite/ChangeLog
PR tree-optimization/19633
* testsuite/gcc.dg/pr19633-1.c: New test.
* testsuite/gcc.dg/pr19633.c: Tweak to make pointer point
to NULL or a symbol.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94558
138bc75d-0d04-0410-961f-
82ee72b054a4
dnovillo [Tue, 1 Feb 2005 20:26:25 +0000 (20:26 +0000)]
PR tree-optimization/19670
* tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
here...
(verify_use): ... set it here, instead.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94557
138bc75d-0d04-0410-961f-
82ee72b054a4
green [Tue, 1 Feb 2005 19:22:47 +0000 (19:22 +0000)]
2005-01-31 Anthony Green <green@redhat.com>
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (getOption):
Support IP_MULTICAST_LOOP.
(setOption): Support IP_MULTICAST_LOOP.
* gnu/java/net/natPlainSocketImplPosix.cc (setOption): Add
SO_REUSEADDR support.
(getOption): Support SO_REUSEADDR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94555
138bc75d-0d04-0410-961f-
82ee72b054a4
rmathew [Tue, 1 Feb 2005 18:38:12 +0000 (18:38 +0000)]
PR java/19738
* gjavah.c (jni_print_float): Do not emit floating-point
initialiser for a static final field.
(jni_print_double): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94553
138bc75d-0d04-0410-961f-
82ee72b054a4
janis [Tue, 1 Feb 2005 18:16:43 +0000 (18:16 +0000)]
* doc/sourcebuild.texi (Test directives): Fix formatting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94552
138bc75d-0d04-0410-961f-
82ee72b054a4
janis [Tue, 1 Feb 2005 17:54:45 +0000 (17:54 +0000)]
* doc/sourcebuild.texi (Test directives): Describe selector
expressions.
* lib/gcc-dg.exp (selector_opd, selector_list, selector_expression):
New procs.
(dg-process-target (local override)): Handle selector expressions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94551
138bc75d-0d04-0410-961f-
82ee72b054a4
janis [Tue, 1 Feb 2005 17:37:25 +0000 (17:37 +0000)]
* gcc.test-framework/README: Describe tests in source directory.
* gcc.test-framework/test-framework.awk: Handle dg- tests.
* gcc.test-framework/test-framework.exp: Handle dg- tests.
* gcc.test-framework/dg-bogus-exp-P.c: New test.
* gcc.test-framework/dg-bogus-exp-XF.c: New test.
* gcc.test-framework/dg-do-assemble-exp-P.c: New test.
* gcc.test-framework/dg-do-compile-exp-P.c: New test.
* gcc.test-framework/dg-do-link-exp-P.c: New test.
* gcc.test-framework/dg-do-run-exp-P.c: New test.
* gcc.test-framework/dg-dot-run-exp-P.c: New test.
* gcc.test-framework/dg-dot-run-exp-U.c: New test.
* gcc.test-framework/dg-dox-run-exp-XF.c: New test.
* gcc.test-framework/dg-error-exp-P.c: New test.
* gcc.test-framework/dg-error-exp-XP.c: New test.
* gcc.test-framework/dg-excess-errors-exp-XF.c: New test.
* gcc.test-framework/dg-excess-errors-exp-XP.c: New test.
* gcc.test-framework/dg-output-exp-P.c: New test.
* gcc.test-framework/dg-output-exp-XF.c: New test.
* gcc.test-framework/dg-warning-exp-P.c: New test.
* gcc.misc-tests/dg-1.c: Remove.
* gcc.misc-tests/dg-2.c: Remove.
* gcc.misc-tests/dg-3.c: Remove.
* gcc.misc-tests/dg-4.c: Remove.
* gcc.misc-tests/dg-5.c: Remove.
* gcc.misc-tests/dg-6.c: Remove.
* gcc.misc-tests/dg-7.c: Remove.
* gcc.misc-tests/dg-8.c: Remove.
* gcc.misc-tests/dg-9.c: Remove.
* gcc.misc-tests/dg-10.c: Remove.
* gcc.misc-tests/dg-11.c: Remove.
* gcc.misc-tests/dg-12.c: Remove.
* gcc.misc-tests/dg-test.exp: Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94550
138bc75d-0d04-0410-961f-
82ee72b054a4
janis [Tue, 1 Feb 2005 17:31:33 +0000 (17:31 +0000)]
* gcc.test-framework/test-framework.awk: Change recording and
printing of passes and failures.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94549
138bc75d-0d04-0410-961f-
82ee72b054a4
janis [Tue, 1 Feb 2005 17:28:46 +0000 (17:28 +0000)]
2005-02-01 Janis Johnson <janis187@us.ibm.com>
* gcc.test-framework: New directory.
* gcc.test-framework/README: New.
* gcc.test-framework/test-framework.exp: New.
* gcc.test-framework/test-framework.awk: New.
* gcc.test-framework/gen_directive_tests: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94548
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Tue, 1 Feb 2005 17:13:08 +0000 (17:13 +0000)]
Revert:
2005-01-31 Mark Mitchell <mark@codesourcery.com>
* gjavah.c (print_field_info): Mark static data members of
floating-point type with "__extension__".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94547
138bc75d-0d04-0410-961f-
82ee72b054a4
segher [Tue, 1 Feb 2005 15:36:42 +0000 (15:36 +0000)]
2005-02-01 Segher Boessenkool <segher@kernel.crashing.org>
* config.gcc (powerpc64-*-linux*): Default to -m64 also for
specific 64-bit CPUs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94545
138bc75d-0d04-0410-961f-
82ee72b054a4
phython [Tue, 1 Feb 2005 15:18:30 +0000 (15:18 +0000)]
2005-02-01 James A. Morrison <phython@gcc.gnu.org>
* (lex.l): Undef LINEMAP_POSITION_FOR_COLUMN before defining it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94544
138bc75d-0d04-0410-961f-
82ee72b054a4
phython [Tue, 1 Feb 2005 15:16:58 +0000 (15:16 +0000)]
2005-02-01 James A. Morrison <phython@gcc.gnu.org>
* parse.y: Reformat comments.
* treetree.c: Likewise.
* treetree.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94543
138bc75d-0d04-0410-961f-
82ee72b054a4
phython [Tue, 1 Feb 2005 15:07:42 +0000 (15:07 +0000)]
2005-02-01 James A. Morrison <phython@gcc.gnu.org>
* lib/treelang.exp: Fix comment typos.
(treelang_target_compile): Don't append libs=-ltreelang to options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94542
138bc75d-0d04-0410-961f-
82ee72b054a4
rearnsha [Tue, 1 Feb 2005 14:07:02 +0000 (14:07 +0000)]
PR target/16201
* arm.c (arm_eliminable_register): New function.
(adjacent_mem_locations): Don't allow eliminable registers. Use
HOST_WIDE_INT for address offsets.
* arm-protos.h (arm_eliminable_register): Add prototype.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94540
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Tue, 1 Feb 2005 13:30:34 +0000 (13:30 +0000)]
2005-02-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/cpp_type_traits.h: Rename _M_type fields to
__value, except for __enable_if, _M_type -> __type, consistently
with the other traits.
* include/bits/stl_algobase.h: Tweak consistently.
* include/bits/stl_tree.h: Likewise.
* include/bits/valarray_array.h: Likewise.
* include/c_std/std_cmath.h: Likewise.
* include/debug/safe_iterator.h: Likewise.
* include/std/std_complex.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94538
138bc75d-0d04-0410-961f-
82ee72b054a4
steven [Tue, 1 Feb 2005 10:03:15 +0000 (10:03 +0000)]
PR optimization/15242
* params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
* basic-block.h (duplicate_computed_gotos): Add prototype.
* bb-reorder.c (duplicate_computed_gotos): New function to
duplicate sufficiently small blocks ending in a computed jump.
* passes.c (rest_of_compilation): Call duplicate_computed_gotos
if not optimizing for size.
* cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
never do tail merging for blocks ending in a computed jump.
* doc/invoke.texi: Document the max-goto-duplication-insns param.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94531
138bc75d-0d04-0410-961f-
82ee72b054a4
steven [Tue, 1 Feb 2005 09:06:22 +0000 (09:06 +0000)]
2005-02-01 Paul Thomas <paulthomas2@wanadoo.fr>
PR libgfortran/19363
PR libgfortran/19691
* libgfortran.h (isfinite): Work around broken isfinite(x) in Cygwin.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94530
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Tue, 1 Feb 2005 07:22:19 +0000 (07:22 +0000)]
Patch from Richard Sandiford <rsandifo@redhat.com>
* reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
from inheriting a subreg equivalence with a non-spill register.
* tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94529
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Tue, 1 Feb 2005 06:58:27 +0000 (06:58 +0000)]
* parser.c (cp_parser_primary_expression): Don't complain about
floating-point literals in integral constant expressions when
!pedantic.
* gjavah.c (print_field_info): Mark static data members of
floating-point type with "__extension__".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94527
138bc75d-0d04-0410-961f-
82ee72b054a4
bkoz [Tue, 1 Feb 2005 06:56:30 +0000 (06:56 +0000)]
2005-01-31 Brad Spencer <spencer@infointeractive.com>
* crossconfig.m4: Repair Solaris cross bits for strtold and strtof.
* configure: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94526
138bc75d-0d04-0410-961f-
82ee72b054a4
aoliva [Tue, 1 Feb 2005 06:33:35 +0000 (06:33 +0000)]
* config/frv/frv.c (movcc_fp_destination_operand): New.
(gpr_or_memory_operand): Fix typo in comment.
(gpr_or_memory_operand_with_scratch): New.
* config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
* config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
movcc_fp_destination_operand.
(reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
Legitimize memory addresses using a scratch register.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94523
138bc75d-0d04-0410-961f-
82ee72b054a4
aoliva [Tue, 1 Feb 2005 06:07:14 +0000 (06:07 +0000)]
* parser.c (cp_parser_template_id): Revert comment patch too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94521
138bc75d-0d04-0410-961f-
82ee72b054a4
aoliva [Tue, 1 Feb 2005 05:56:08 +0000 (05:56 +0000)]
gcc/cp/ChangeLog:
PR c++/18757
PR c++/19366
PR c++/19499
* parser.c (cp_parser_template_id): Revert 2004-12-09's patch.
Issue an error when creating the template id.
* pt.c (fn_type_unification): Return early if the explicit
template arg list is an error_mark_node.
gcc/testsuite/ChangeLog:
* g++.dg/parse/typename7.C: Adjust error messages.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94520
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Tue, 1 Feb 2005 05:28:23 +0000 (05:28 +0000)]
* tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
bitmap a sparse bitmap instead of a simple bitmap.
(mark_def_sites_initialize_block): Corresponding changes.
(ssa_mark_def_sites_initialize_block): Likewise.
(ssa_mark_phi_uses): Likewise.
(mark_def_site, ssa_mark_def_sites): Likewise.
(mark_def_site_blocks): Likewise.
(rewrite_ssa_into_ssa): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94519
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Tue, 1 Feb 2005 03:52:37 +0000 (03:52 +0000)]
* tree-ssa-dom.c (record_cond): Pass correct variable type
for last argument to htab_find_slot_with_hash.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94517
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Tue, 1 Feb 2005 03:48:52 +0000 (03:48 +0000)]
* fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
effects when optimizing 0 % X. Do not try to optimize X % 0.
* gcc.c-torture/execute/
20050131-1.c: New test.
* gcc.dg/wcaselabel.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94516
138bc75d-0d04-0410-961f-
82ee72b054a4
wilson [Tue, 1 Feb 2005 03:06:26 +0000 (03:06 +0000)]
Fix typo in Richard Henderson's IA-64 vector patch.
* config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
1_mmalua.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94515
138bc75d-0d04-0410-961f-
82ee72b054a4
echristo [Tue, 1 Feb 2005 03:02:51 +0000 (03:02 +0000)]
2005-02-01 Eric Christopher <echristo@redhat.com>
* config/mips/mips.c (override_options): Warn if -mint64
is used.
* doc/invoke.texi (MIPS Options): Document that -mint64 is
deprecated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94514
138bc75d-0d04-0410-961f-
82ee72b054a4
rmathew [Tue, 1 Feb 2005 02:36:29 +0000 (02:36 +0000)]
PR java/9157
* parse.y (build_string_concatenation): Remove redundant if.
(patch_conditional_expr): Attempt to patch_string() the condition
of a ?: as well, in addition to its other operands.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94513
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Tue, 1 Feb 2005 01:01:34 +0000 (01:01 +0000)]
* decl.c (build_enumerator): Do not issue duplicate error messages
about invalid enumeration constants.
* parser.c (cp_parser_non_integral_constant_expression): Always
set parser->non_integral_constant_expression_p.
(cp_parser_primary_expression): Add cast_p parameter. Issue
errors about invalid uses of floating-point literals in
cast-expressions.
(cp_parser_postfix_expression): Add cast_p parameter.
(cp_parser_open_square_expression): Pass it.
(cp_parser_parenthesized_expression_list): Add cast_p parameter.
(cp_parser_unary_expression): Likewise.
(cp_parser_new_placement): Pass it.
(cp_parser_direct_new_declarator): Likewise.
(cp_parser_new_initializer): Likewise.
(cp_parser_cast_expression): Add cast_p parameter.
(cp_parser_binary_expression): Likewise.
(cp_parser_question_colon_clause): Likewise.
(cp_parser_assignment_expression): Likewise.
(cp_parser_expression): Likewise.
(cp_parser_constant_expression): If an integral constant
expression is invalid, return error_mark_node.
(cp_parser_expression_statement): Pass cast_p.
(cp_parser_condition): Likewise.
(cp_parser_iteration_statement): Likewise.
(cp_parser_jump_statement): Likewise.
(cp_parser_mem_initializer): Likewise.
(cp_parser_template_argument): Likewise.
(cp_parser_parameter_declaration): Likewise.
(cp_parser_initializer): Likewise.
(cp_parser_throw_expression): Likewise.
(cp_parser_attribute_list): Likewise.
(cp_parser_simple_cast_expression): Likewise.
(cp_parser_functional_cast): Likewise.
(cp_parser_late_parsing_default_args): Likewise.
(cp_parser_sizeof_operand): Save/restore
non_integral_constant_expression_p.
* include/std/std_limits.h (numeric_limits<float>::has_denorm):
Add required cast.
(numeric_limits<double>::has_denorm): Likewise.
(numeric_limits<long double>::has_denorm): Likewise.
* g++.dg/other/warning1.C: Adjust error messags.
* g++.dg/parse/constant5.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94512
138bc75d-0d04-0410-961f-
82ee72b054a4
kazu [Tue, 1 Feb 2005 00:41:56 +0000 (00:41 +0000)]
* cse.c (get_cse_reg_info): Update a comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94511
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Tue, 1 Feb 2005 00:16:23 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94509
138bc75d-0d04-0410-961f-
82ee72b054a4
kazu [Tue, 1 Feb 2005 00:14:47 +0000 (00:14 +0000)]
* cse.c (cse_reg_info): Remove hash_next, next, regno. Add
timestamp.
(cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
(cached_regno): Initialize to INVALID_REGNUM.
(cse_reg_info_table_size,
cse_reg_info_table_first_uninitialized,
cse_reg_info_timestamp): New.
(REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
get_cse_reg_info.
(init_cse_reg_info, get_cse_reg_info_1): New.
(get_cse_reg_info): Cache the last look-up.
(new_basic_block): Update the code to clear mappings from
registers to cse_reg_info entries.
(cse_main): Call init_cse_reg_info.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94506
138bc75d-0d04-0410-961f-
82ee72b054a4
steven [Tue, 1 Feb 2005 00:09:40 +0000 (00:09 +0000)]
gcc/
PR c/19333
* c-decl.c (start_decl): Do not warn about arrays of elements with
an incomplete type here.
(grokdeclarator): Do it here by making a pedwarn an error.
* c-typeck.c (push_init_level): If there were previous errors with
the constructor type, do not warn about braces for initializers.
(process_init_element): Likewise for excess initializer elements.
testsuite/
PR c/19333
* testsuite/gcc.c-torture/compile/
20011130-1.c: Reorder to make
the test case valid.
* testsuite/gcc.dg/
20030815-1.c: Remove invalid tests.
* testsuite/gcc.dg/array-7.c: Adjust expected result.
* testsuite/gcc.dg/pr18596-3.c: Likewise.
* testsuite/gcc.dg/noncompile/
20000901-1.c: Likewise.
* testsuite/gcc.dg/noncompile/init-2.c: Likewise.
* testsuite/gcc.dg/noncompile/init-4.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94505
138bc75d-0d04-0410-961f-
82ee72b054a4
dalej [Mon, 31 Jan 2005 23:18:49 +0000 (23:18 +0000)]
2005-01-31 Dale Johannesen <dalej@apple.com>
* doc/extend.texi (nested functions): Fix linkage description.
Clarify that static is not allowed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94499
138bc75d-0d04-0410-961f-
82ee72b054a4
kazu [Mon, 31 Jan 2005 22:43:36 +0000 (22:43 +0000)]
* cse.c (delete_trivially_dead_insn): Don't iterate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94498
138bc75d-0d04-0410-961f-
82ee72b054a4
pinskia [Mon, 31 Jan 2005 22:29:27 +0000 (22:29 +0000)]
2005-01-31 Andrew Pinski <pinskia@physics.uc.edu>
* config/rs6000/rs6000.md (copysignsf3): New expand.
(copysigndf3): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94497
138bc75d-0d04-0410-961f-
82ee72b054a4
mrs [Mon, 31 Jan 2005 22:05:07 +0000 (22:05 +0000)]
* parser.c (cp_lexer_new_main): Get the first token, first, before
doing anything.
Radar
3929334
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94494
138bc75d-0d04-0410-961f-
82ee72b054a4
steven [Mon, 31 Jan 2005 21:14:44 +0000 (21:14 +0000)]
* recog.c (constrain_operands): Only look for earlyclobber operand
conflicts if an '&' constraint was seen.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94493
138bc75d-0d04-0410-961f-
82ee72b054a4
espie [Mon, 31 Jan 2005 18:51:26 +0000 (18:51 +0000)]
Thx to Eric Botcazou, Andrew Pinski and Mark Kettenis for this one.
Turns out OpenBSD was mistakenly including an embedded system fragment,
and thus outputting stabs debug by default.
Once the only needed definition is saved from that file, we happily compile
with default dwarf2. The rest of the toolchain is happy, and any recent
gdb works very well with that...
This obviously improves the stability of the compiler, since dwarf2 output
is so much more well-tested than stabs on elf platforms...
2005-01-31 Marc Espie <espie@openbsd.org>
* config.gcc: Don't include embedded systems fragment, switches default
debugging format to ELF.
* config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
longer pick it up there.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94488
138bc75d-0d04-0410-961f-
82ee72b054a4
dalej [Mon, 31 Jan 2005 18:11:19 +0000 (18:11 +0000)]
2005-01-31 Dale Johannesen <dalej@apple.com>
* config/rs6000/darwin.md (movsf_low_di): Make work.
(movdf_low_di): Make work.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94487
138bc75d-0d04-0410-961f-
82ee72b054a4
dalej [Mon, 31 Jan 2005 18:03:46 +0000 (18:03 +0000)]
2005-01-31 Dale Johannesen <dalej@apple.com>
* config/rs6000/darwin-tramp.asm (__trampoline_setup):
Make work for 64 bit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94486
138bc75d-0d04-0410-961f-
82ee72b054a4
dalej [Mon, 31 Jan 2005 18:00:52 +0000 (18:00 +0000)]
2005-01-31 Roger Sayle <roger@eyesopen.com>
Dale Johannesen <dalej@apple.com>
PR middle-end/19650
* fold-const.c (fold_binary_op_with_conditional_arg):
Make types match original operands, before STRIP_NOPS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94485
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Mon, 31 Jan 2005 16:22:01 +0000 (16:22 +0000)]
2005-01-31 Paolo Carlini <pcarlini@suse.de>
Gabriel Dos Reis <gdr@integrable-solutions.net>
* include/bits/cpp_type_traits.h: Add types to the structs thus
making type_traits.h redundant; exploit new __truth_type and
__traitor helpers.
* include/bits/type_traits.h: Remove.
* include/Makefile.am: Update.
* include/Makefile.in: Regenerate.
* include/backward/tempbuf.h: Include cpp_type_traits.h instead.
* include/bits/basic_string.h (replace(iterator, iterator,
_InputIterator, _InputIterator), _S_construct(_InIterator,
_InIterator, const _Alloc&)): Use __is_integer instead.
* include/bits/stl_bvector.h (vector(_InputIterator,
_InputIterator, const allocator_type&), assign(_InputIterator,
_InputIterator), insert(iterator, _InputIterator, _InputIterator)):
Likewise.
* include/bits/stl_construct.h (_Destroy(_ForwardIterator,
_ForwardIterator)): Use __is_scalar.
* include/bits/stl_deque.h (deque(_InputIterator, _InputIterator,
const allocator_type&), assign(_InputIterator, _InputIterator),
insert(iterator, _InputIterator, _InputIterator)): Use __is_integer.
* include/bits/stl_list.h (assign(_InputIterator, _InputIterator),
insert(iterator, _InputIterator, _InputIterator)): Likewise.
* include/bits/stl_tempbuf.h (_Temporary_buffer(_ForwardIterator,
_ForwardIterator)): Use __is_scalar.
* include/bits/stl_uninitialized.h (uninitialized_copy(_InputIterator,
_InputIterator, _ForwardIterator), uninitialized_fill(_ForwardIterator,
_ForwardIterator, const _Tp&), uninitialized_fill_n(_ForwardIterator,
_Size, const _Tp&)): Likewise.
* include/bits/stl_vector.h (vector(_InputIterator, _InputIterator,
const allocator_type&), assign(_InputIterator, _InputIterator),
insert(iterator, _InputIterator, _InputIterator)): Use __is_integer.
* include/debug/debug.h (__valid_range(const _InputIterator&,
const _InputIterator&)): Use __is_integer.
* include/ext/slist (assign(_InputIterator, _InputIterator)): Likewise.
* include/std/std_string.h: Include cpp_type_traits.h instead.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94484
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Mon, 31 Jan 2005 16:16:16 +0000 (16:16 +0000)]
* decl.c (start_decl): Add missing parentheses.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94483
138bc75d-0d04-0410-961f-
82ee72b054a4
amodra [Mon, 31 Jan 2005 13:37:37 +0000 (13:37 +0000)]
* config/rs6000/linux-unwind.h (struct gcc_vregs): New.
(struct gcc_regs): Rename from gcc_pt_regs. Add more regs.
(struct gcc_sigcontext): Delete. Merge contents to..
(struct gcc_ucontext): ..here.
(get_sigcontext): Delete.
(get_regs): New function, like get_sigcontext but return regs ptr.
64-bit version finds regs from r1 to support vdso.
(ppc_linux_aux_vector): New function.
(ppc_fallback_frame_state): Modify for get_regs. Restore fprs
and vector regs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94481
138bc75d-0d04-0410-961f-
82ee72b054a4
dorit [Mon, 31 Jan 2005 11:51:01 +0000 (11:51 +0000)]
2005-01-31 Ira Rosen <irar@il.ibm.com>
* tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
sizetype.
(vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
redundant fold. Fix misalignment for MINUS_EXPR.
(vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
(vect_analyze_pointer_ref_access): Likewise.
(vect_get_memtag_and_dr): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94480
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Mon, 31 Jan 2005 09:16:02 +0000 (09:16 +0000)]
* config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
(absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
absnegdf2_i387, absnegxf2_i387): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94473
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Mon, 31 Jan 2005 09:10:01 +0000 (09:10 +0000)]
* gcc.c-torture/execute/ieee/copysign1.c: Special case sizeof
long double for intel double extended format.
* gcc.c-torture/execute/ieee/copysign2.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94472
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Mon, 31 Jan 2005 09:02:25 +0000 (09:02 +0000)]
PR 19696
* optabs.c (expand_copysign_absneg): New.
(expand_copysign_bit): Split out from ...
(expand_copysign): ... here. Use expand_copysign_absneg.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94471
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Mon, 31 Jan 2005 06:16:54 +0000 (06:16 +0000)]
PR c++/19555
* cp-tree.h (DECL_USE_TEMPLATE): Expand documentation.
* decl.c (duplicate_decls): Do not discard
DECL_IMPLICIT_INSTANTIATION when merging declarations.
(start_decl): Do not SET_DECL_TEMPLATE_SPECIALIZATION for
variables that do not have DECL_USE_TEMPLATE.
PR c++/19555
* g++.dg/template/static10.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94469
138bc75d-0d04-0410-961f-
82ee72b054a4
sayle [Mon, 31 Jan 2005 06:04:07 +0000 (06:04 +0000)]
PR middle-end/19697
* config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
constant as the second operand and a register as the third.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94468
138bc75d-0d04-0410-961f-
82ee72b054a4
dannysmith [Mon, 31 Jan 2005 05:49:07 +0000 (05:49 +0000)]
PR target/19704
* config/i386/i386.c (ix86_function_ok_for_sibcall): Also check
that dllimport'd functions do not use all call-clobbered registers
to pass parameters.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94467
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Mon, 31 Jan 2005 04:07:41 +0000 (04:07 +0000)]
PR c++/19395
* decl.c (grokdeclarator): Refactor code so that qualified names
are never allowed as the declarator in a typedef.
PR c++/19367
* name-lookup.c (do_nonmember_using_decl): Avoid overloading
builtin declarations.
PR c++/19395
* g++.dg/parse/error24.C: New test.
PR c++/19367
* g++.dg/lookup/builtin1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94466
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Mon, 31 Jan 2005 04:00:55 +0000 (04:00 +0000)]
PR 19696
* optabs.c (expand_absneg_bit): Split out from expand_unop and
expand_abs_nojump and generalize. Use operand_subword and
emit_no_conflict_block. Support large modes.
(expand_abs_nojump): Use it. Use HONOR_SIGNED_ZEROS to fall
back to maximum.
(expand_unop): Likewise. Use HONOR_SIGNED_ZEROS to fall back
negation to subtraction.
(expand_copysign): Check that the format has signed zeros.
Use operand_subword and emit_no_conflict_block. Support large modes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94465
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Mon, 31 Jan 2005 01:17:11 +0000 (01:17 +0000)]
PR c++/19457
* call.c (convert_like_real): Inline call to
dubious_conversion_warnings here.
* cp-tree.h (dubious_conversion_warnings): Remove.
* semantics.c (finish_unary_op_expr): Copy INTEGER_CSTs before
setting TREE_NEGATED_INT.
* typeck.c (dubious_conversion_warnings): Remove.
PR c++/19349
* name-lookup.c (pushdecl_namespace_level): Avoid accessing free'd
memory.
PR c++/19457
* g++.dg/warn/conv3.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94463
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Mon, 31 Jan 2005 00:16:26 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94457
138bc75d-0d04-0410-961f-
82ee72b054a4
dberlin [Sun, 30 Jan 2005 21:37:52 +0000 (21:37 +0000)]
I swear this was in there when i committed, but apparently not
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94449
138bc75d-0d04-0410-961f-
82ee72b054a4
dberlin [Sun, 30 Jan 2005 19:08:37 +0000 (19:08 +0000)]
2005-01-30 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/19624
* Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
* tree-ssa-pre.c: Add cfgloop.h.
Update comment.
(pre_stats): New member, constified.
(inserted_exprs): New static variable.
(NECESSARY): New macro.
(create_expression_by_pieces): Fold the expression, and
mark it as defaulting to not necessary. Also put in
inserted_exprs.
(fully_constant_expression): New function.
(insert_into_preds_of_block): Modify to not insert phis when we
are playing with induction variables.
Push phis onto the inserted_exprs vector, and mark them as not
necessary by default.
(insert_aux): Call fully_constant_expression on eprime.
If all edges produce the same value, mark it constant.
(mark_operand_necessary): New function.
(remove_dead_inserted_code): New function.
(init_pre): Init loop optimizer to get loop info.
(fini_pre): Free loop_optimizer, and inserted_exprs vec.
(execute_pre): Commit edge inserts, then remove dead code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94448
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Sun, 30 Jan 2005 18:34:03 +0000 (18:34 +0000)]
* options.c (gfc_init_options): Zero flag_errno_math.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94447
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Sun, 30 Jan 2005 18:27:23 +0000 (18:27 +0000)]
* rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
* varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94446
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Sun, 30 Jan 2005 17:55:12 +0000 (17:55 +0000)]
PR 19700 testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94443
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Sun, 30 Jan 2005 17:48:01 +0000 (17:48 +0000)]
PR target/19700
* config/i386/i386.c (ix86_expand_copysign): New.
(ix86_split_copysign_const): New.
(ix86_split_copysign_var): Rename from ix86_split_copysign,
rearrange op1/nmask operands.
* config/i386/i386-protos.h: Update.
* config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
(copysigndf3): Likewise.
(copysignsf3_const, copysigndf3_const): New.
(copysignsf3_var): Rename from copysignsf3, split out splitter
and fix split predicate for X constraint.
(copysigndf3_var): Similarly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94442
138bc75d-0d04-0410-961f-
82ee72b054a4
kazu [Sun, 30 Jan 2005 15:36:13 +0000 (15:36 +0000)]
* optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
doc/tm.texi, doc/tree-ssa.texi: Update copyright.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94441
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Sun, 30 Jan 2005 14:09:58 +0000 (14:09 +0000)]
2005-01-30 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/19642
* config/locale/generic/c_locale.h (__convert_from_v): Switch only
LC_NUMERIC, and only when actually != "C".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94440
138bc75d-0d04-0410-961f-
82ee72b054a4
bdavis [Sun, 30 Jan 2005 13:16:19 +0000 (13:16 +0000)]
2005-01-30 Bud Davis <bdavis@gfortran.org>
PR fortran/19647
* io/inquire.c (inquire_via_unit): Use correct variable for
pad.
* gfortan.dg/inquire_7.f90
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94439
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Sun, 30 Jan 2005 03:14:44 +0000 (03:14 +0000)]
PR target/19690
* config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
of # and * in constraints.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94433
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Sun, 30 Jan 2005 02:33:27 +0000 (02:33 +0000)]
PR middle-end/19689
* expr.c (store_field): Don't strip sub-mode cast when the input
data is even smaller.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94429
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Sun, 30 Jan 2005 02:13:46 +0000 (02:13 +0000)]
PR middle-end/19687
* expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
union being empty.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94421
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Sun, 30 Jan 2005 00:27:01 +0000 (00:27 +0000)]
* combine.c (make_field_assignment): Fix argument order
to gen_int_mode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94420
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sun, 30 Jan 2005 00:16:18 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94417
138bc75d-0d04-0410-961f-
82ee72b054a4
sayle [Sat, 29 Jan 2005 19:25:17 +0000 (19:25 +0000)]
2005-01-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
PR tree-optimization/15791
* fold-const.c (extract_array_ref): New function.
(fold): Fold comparisons between &a[i] and &a[j] or
semantically equivalent trees.
* gcc.dg/tree-ssa/pr15791-1.c: New testcase.
* gcc.dg/tree-ssa/pr15791-2.c: Likewise.
* gcc.dg/tree-ssa/pr15791-3.c: Likewise.
* gcc.dg/tree-ssa/pr15791-4.c: Likewise.
* gcc.dg/tree-ssa/pr15791-5.c: Likewise.
* g++.dg/tree-ssa/pr15791-1.C: Likewise.
* g++.dg/tree-ssa/pr15791-2.C: Likewise.
* g++.dg/tree-ssa/pr15791-3.C: Likewise.
* g++.dg/tree-ssa/pr15791-4.C: Likewise.
* g++.dg/tree-ssa/pr15791-5.C: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94414
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Sat, 29 Jan 2005 18:55:10 +0000 (18:55 +0000)]
* gcse.c (insert_expr_in_table): Revamp handling of available
and anticipatable occurrence lists to avoid unnecessary list
walking.
(insert_set_in_table): Similarly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94413
138bc75d-0d04-0410-961f-
82ee72b054a4
pbrook [Sat, 29 Jan 2005 17:46:34 +0000 (17:46 +0000)]
2005-01-29 Paul Brook <paul@codesourcery.com>
PR fortran/18565
* check.c (real_or_complex_check): New function.
(gfc_check_fn_c, gfc_check_fn_r, gfc_check_fn_rc): New functions.
* intrinsic.c (add_functions): Use new check functions.
* intrinsic.h (gfc_check_fn_c, gfc_check_fn_r, gfc_check_fn_rc):
Add prototypes.
testsuite/
* gfortran.dg/double_complex_1.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94412
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Sat, 29 Jan 2005 16:12:45 +0000 (16:12 +0000)]
* c-common.c (fix_string_type): Just use c_build_qualified_type to
build string type.
(c_build_qualified_type): Build qualified array types with
TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
* c-decl.c (c_make_fname_decl): Build unqualified array type
before qualified type.
(grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
type is qualified, not just if type itself is. Don't apply
qualifiers to array type when declarator is processed. Apply
qualifiers to field type whether or not it is an array type.
Don't handle array types specially for applying qualifiers to
variables.
* c-typeck.c (composite_type): Build unqualified element type and
array type when forming composite of array types.
(common_pointer_type, comptypes, comp_target_types,
type_lists_compatible_p, build_indirect_ref, build_array_ref,
convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
types.
(type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
(args2) in variables a1 and a2.
testsuite:
* gcc.dg/Wwrite-strings-1.c, gcc.dg/array-quals-2.c,
gcc.dg/lvalue-3.c: New tests.
* gcc.dg/concat.c: Update expected messages.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94411
138bc75d-0d04-0410-961f-
82ee72b054a4
pbrook [Sat, 29 Jan 2005 15:45:17 +0000 (15:45 +0000)]
2005-01-29 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/19595
* io/transfer.c (data_transfer_init): eor requires advance="NO".
testsuite/
* gfortran.dg/eor_1.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94410
138bc75d-0d04-0410-961f-
82ee72b054a4
pbrook [Sat, 29 Jan 2005 15:35:50 +0000 (15:35 +0000)]
2005-01-29 Steven G. Kargl <kargls@comcast.net>
PR fortran/19589
* expr.c (gfc_check_assign): Check for conformance of logical operands
testsuite/
* gfortran.dg/logical_data_1.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94409
138bc75d-0d04-0410-961f-
82ee72b054a4
kazu [Sat, 29 Jan 2005 12:16:36 +0000 (12:16 +0000)]
* lang-specs.h, objc-act.c, objc-act.h, objc-lang.c: Update
copyright.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94408
138bc75d-0d04-0410-961f-
82ee72b054a4
kazu [Sat, 29 Jan 2005 12:08:04 +0000 (12:08 +0000)]
* cse.c (n_elements_made, max_elements_made): Remove.
(insert): Don't touch n_elements_made.
(cse_main): Don't touch n_elements_made or max_elements_made.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94407
138bc75d-0d04-0410-961f-
82ee72b054a4
hp [Sat, 29 Jan 2005 04:22:08 +0000 (04:22 +0000)]
* configure.in (noconfigdirs) <crisv32-*-*>: Match like cris-*-*.
<crisv32-*-*, cris-*-*>: Only disable target-newlib and
target-libgloss when not *-*-elf and *-*-aout.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94404
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Sat, 29 Jan 2005 02:07:18 +0000 (02:07 +0000)]
PR c++/19253
* parser.c (cp_parser_diagnose_invalid_type_name): Commit to
tentative parses.
PR c++/19253
* g++.dg/template/crash33.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94403
138bc75d-0d04-0410-961f-
82ee72b054a4
mmitchel [Sat, 29 Jan 2005 00:47:57 +0000 (00:47 +0000)]
PR c++/19667
* g++.dg/template/crash32.C: New test.
PR c++/19667
* pt.c (redeclare_class_template): Robustify.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94402
138bc75d-0d04-0410-961f-
82ee72b054a4
bryce [Sat, 29 Jan 2005 00:43:50 +0000 (00:43 +0000)]
2004-01-28 Jeroen Frijters <jeroen@frijters.net>
PR libgcj/19649
* java/util/Date.java
(Date(int,int,int), Date(int,int,int,int,int)): Delegate to other
constructor.
(Date(int,int,int,int,int,int)): Fixed to handle out-of-range
arguments.
(getTimezoneOffset): Inverted sign.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94401
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sat, 29 Jan 2005 00:16:44 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94399
138bc75d-0d04-0410-961f-
82ee72b054a4
ciceron [Fri, 28 Jan 2005 22:08:16 +0000 (22:08 +0000)]
PR target/15384
* config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
configuration part of dp-bit.c to be lost.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94390
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Fri, 28 Jan 2005 21:00:19 +0000 (21:00 +0000)]
2005-01-28 Paolo Carlini <pcarlini@suse.de>
* include/tr1/type_traits (is_function): Minor consistency tweaks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94385
138bc75d-0d04-0410-961f-
82ee72b054a4
geoffk [Fri, 28 Jan 2005 18:57:59 +0000 (18:57 +0000)]
* testsuite/lib/libstdc++.exp (libstdc++_init): Search the path
for the compiler. Don't set cxxflags.
(v3_target_compile): Search for libv3test.a relative to $objdir.
(lsearch_all_inline): New.
(lsearch_all_inline_not): New.
(v3-list-tests): Rewrite to not need generated files.
* testsuite/Makefile.am (IGNORE_WCHAR_T): New.
(IGNORE_THREAD): New.
(TESTS_TO_IGNORE): New.
(site.exp): Set tests_to_ignore, cxxflags.
* aclocal.m4: Regenerate.
* Makefile.in: Regenerate.
* libmath/Makefile.in: Likewise.
* libsupc++/Makefile.in: Likewise.
* po/Makefile.in: Likewise.
* src/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94384
138bc75d-0d04-0410-961f-
82ee72b054a4
sayle [Fri, 28 Jan 2005 17:49:47 +0000 (17:49 +0000)]
* expmed.c (expand_mult_highpart_optab): When attempting to use
a non-widening multiplication in a wider mode, the operands need
to be converted (zero or sign extended) to that mode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94383
138bc75d-0d04-0410-961f-
82ee72b054a4