Commit Graph

52773 Commits

Author SHA1 Message Date
Andrew Cagney
a4cbdc57c8 floatformat.h (struct floatformat): Make "exp_bias" signed.
2003-09-15  Andrew Cagney  <cagney@redhat.com>

	* floatformat.h (struct floatformat): Make "exp_bias" signed.

From-SVN: r71407
2003-09-15 21:28:49 +00:00
Kazu Hirata
d3704c4668 expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
* expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
	(FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
	* config/ia64/ia64.c (ia64_hpux_function_arg_padding):
	Likewise.
	* config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
	Likewise.
	* config/rs6000/rs6000.c (function_arg_padding): Likewise.
	* config/sparc/sparc.c (function_arg_padding): Likewise.

From-SVN: r71406
2003-09-15 20:23:43 +00:00
Daniel Jacobowitz
9c8860c370 floatformat.c (floatformat_is_valid): New function.
* floatformat.c (floatformat_is_valid): New function.
	(get_field, put_field): Correct comments.

From-SVN: r71405
2003-09-15 20:16:32 +00:00
Daniel Jacobowitz
0d66a8212c * floatformat.h (floatformat_is_valid): Add prototype.
From-SVN: r71404
2003-09-15 20:16:22 +00:00
Vladimir Makarov
3d9b02802d haifa-sched.c (schedule_block): Use ready_remove_first instead of choose_ready for non-dfa insn scheduling.
2003-09-15  Vladimir Makarov  <vmakarov@redhat.com>

	* haifa-sched.c (schedule_block): Use ready_remove_first instead
	of choose_ready for non-dfa insn scheduling.

From-SVN: r71403
2003-09-15 18:52:33 +00:00
Nathan Sidwell
3afd2e2007 re PR c++/12184 (ICE with trying to convert an incomplete type)
cp:
	PR c++/12184
	* typeck.c (convert_arguments): Return error_mark_node for an
	incomplete parameter. Make error message more informative.
testsuite:
	PR c++/12184
	* g++.dg/expr/call2.C: New test.

From-SVN: r71402
2003-09-15 14:48:29 +00:00
Andreas Jaeger
2352184a1f invoke.texi (Warning Options): Describe -Wold-style-definition.
2003-09-15  Andreas Jaeger  <aj@suse.de>
            Kaveh R. Ghazi <ghazi@caip.rutgers.edu>

	* doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
	* c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
	* c-parse.in: Warn about old-style parameter definition.
	* c-common.c: Define warn_old_style_defintion.
	* c-common.h: Declare it.
	* c.opt: Add Wold-style-defintion.

From-SVN: r71401
2003-09-15 11:32:36 +02:00
Andreas Jaeger
c034f12167 invoke.texi (Warning Options): Describe -Wold-style-definition.
2003-09-15  Andreas Jaeger  <aj@suse.de>
            Kaveh R. Ghazi <ghazi@caip.rutgers.edu>

	* doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
	* c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
	* c-parse.in: Warn about old-style parameter definition.
	* c-common.c: Define warn_old_style_defintion.
	* c-common.h: Declare it.
	* c.opt: Add Wold-style-defintion.

testsuite:
2003-09-15  Andreas Jaeger  <aj@suse.de>

	* gcc.dg/Wold-style-definition-1.c: New test.

From-SVN: r71400
2003-09-15 11:31:17 +02:00
Andreas Jaeger
863d938c6a altivec.h: Convert () prototypes to ISO C90.
* config/rs6000/altivec.h: Convert () prototypes to ISO C90.
	* config/rs6000/rs6000.c: Likewise.

From-SVN: r71399
2003-09-15 06:53:00 +02:00
Zdenek Dvorak
ec6ec6aaab re PR rtl-optimization/10914 (unswitch loops does not work on powerpc)
2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>

        PR optimization/10914
        * expr.h (get_condition, canonicalize_condition): Declaration changed.
        * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
        and canonicalize_condition calls.
        * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
        delete_null_pointer_checks): Ditto.
        * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
        * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
        * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
        (canonicalize_condition, get_condition): Allow to return comparisons
        of cc mode registers.
        * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
        cc mode registers comparison in condition.

From-SVN: r71398
2003-09-14 18:55:53 -07:00
Mark Mitchell
a7e8c268ed re PR c++/3907 (nested template parm collides with member name)
* coverage.c (create_coverage): Do not call pushlevel/poplevel.
	* langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
	function.
	* langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.

	PR c++/3907
	* class.c (maybe_note_name_used_in_class): Refine test for whether
	or not we are in a class scope.

	* cp-tree.h (language_function): Remove x_expanding_p.
	(expanding_p): Remove.
	(doing_semantic_analysis_p): Remove.
	(scope_kind): Add sk_function_parms, sk_class,
	sk_namespace.
	(innermost_scope_kind): New method.
	* call.c (cxx_type_promotes_to): Use type_decays_to.
	* cp-lang.c (LANG_HOOKS_PUSHLEVEL): Redefine.
	(LANG_HOOKS_POPLEVEL): Likewise.
	* decl.c (cp_binding_level): Remove parm_flag, template_parms_p,
	template_spec_p, namespace_p, is_for_scope, is_try_scope, and
	is_catch_scope.  Add kind and explicit_spec_p.
	(cxx_scope_descriptor): Use a lookup table.
	(find_class_binding_level): Use "kind" field in binding_level, not
	the various flags.
	(pop_binding_level): Likewise.
	(innermost_nonclass_level): Likewise.
	(toplevel_bindings_p): Likewise.
	(namespace_bindings_p): Likewise.
	(template_parm_scope_p): Likewise.
	(innermost_scope_kind): New method.
	(current_tmpl_spec_kind): Use "kind" field in binding_level, not
	the various flags.
	(pushlevel): Remove check for doing_semantic_analysis_p.
	(begin_scope): Simplify.
	(add_decl_to_level): Use "kind" field in binding_level, not
	the various flags.
	(push_local_binding): Likewise.
	(pop_label): Remove check for doing_semantic_analysis_p.
	(poplevel): Use "kind" field in binding_level, not
	the various flags.
	(set_block): Remove check for doing_semantic_analysis_p.
	(pushlevel_class): Use "kind" field in binding_level, not
	the various flags.
	(poplevel_class): Likewise.
	(initial_push_namespace_scope): Likewise.
	(maybe_push_to_top_level): Likewise.
	(set_identifier_type_value_with_scope): Likewise.
	(pop_everything): Likewise.
	(maybe_process_template_type_declaration): Likewise.
	(pushtag): Likewise.
	(pushdecl): Likewise.
	(pushdecl_with_scope): Likewise.
	(check_previous_goto_1): Likewise.
	(define_label): Likewise.
	(finish_case_label): Likewise.
	(lookup_tag): Likewise.
	(unqualified_namespace_lookup): Likewise.
	(lookup_name_real): Likewise.
	(lookup_name_current_level): Likewise.
	(lookup_type_current_level): Likewise.
	(record_builtin_type): Likewise.
	(cp_make_fname_decl): Likewise.
	(maybe_inject_for_scope_var): Likewise.
	(cp_finish_decl): Remove check for doing_semantic_analysis_p.
	(start_function): Use begin_scope, not pushlevel.
	(finish_function): Use "kind" field in binding_level, not
	the various flags.
	(start_method): Use begin_scope, not pushlevel.
	(make_label_decl): Do not check expanding_p.
	(save_function-data): Do not set expanding_p.
	(cxx_push_function_context): Do not clear expanding_p.
	* semantics.c (cxx_expand_function_start): Do not set expanding_p.

	PR c++/3907
	* g++.dg/parse/template12.C: New test.

	* g++.dg/abi/bitfield11.C: New test.
	* g++.dg/abi/bitfield12.C: Likewise.

From-SVN: r71393
2003-09-15 00:59:28 +00:00
Mark Mitchell
29edb15c56 class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for an bit-field whose width exceeds that of its...
* class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for
	an bit-field whose width exceeds that of its type.

	* g++.dg/abi/bitfield11.C: New test.
	* g++.dg/abi/bitfield12.C: Likewise.

From-SVN: r71392
2003-09-15 00:27:16 +00:00
GCC Administrator
bd12da498d Daily bump.
From-SVN: r71390
2003-09-15 00:16:06 +00:00
Mark Mitchell
269083955a class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for an bit-field whose width exceeds that of its...
* class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for
	an bit-field whose width exceeds that of its type.

From-SVN: r71388
2003-09-14 23:50:49 +00:00
Geoffrey Keating
80a1718866 * rtti.c (get_tinfo_decl): Set TREE_PUBLIC for typeinfo decls.
From-SVN: r71387
2003-09-14 20:24:00 +00:00
Kazu Hirata
5565e8744f combine.c (simplify_comparison): Convert (ne (and (lshiftrt (xor X CST) Y) 1) 0) into (eq (and (lshiftrt X Y) 1) 0).
* combine.c (simplify_comparison): Convert
	(ne (and (lshiftrt (xor X CST) Y) 1) 0) into
	(eq (and (lshiftrt X Y) 1) 0).

From-SVN: r71385
2003-09-14 18:31:13 +00:00
Kazu Hirata
83a00410f5 alias.c: Follow spelling conventions.
* alias.c: Follow spelling conventions.
	* cpphash.h: Likewise.
	* fold-const.c: Likewise.
	* cp/ChangeLog: Likewise.
	* cp/parser.c: Likewise.

From-SVN: r71382
2003-09-14 14:49:08 +00:00
Alexandre Oliva
7b9a5a662b c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
* c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
* c-lex.c (cb_line_change): Skip line changing whenever
c-ppoutput.c would.

From-SVN: r71381
2003-09-14 13:56:18 +00:00
Alexandre Oliva
aab68b4aba separate-1.c: Adjust line of error.
* gcc.dg/cpp/separate-1.c: Adjust line of error.  Test for correct
non-expansion of functional macro name without arguments at EOL.
* gcc.dg/cpp/spacing1.c: Revert 2003-08-04's change.  Likewise.

From-SVN: r71380
2003-09-14 13:52:56 +00:00
Steven Bosscher
93bad80ebc ra.c: Convert to ISO C90 prototypes.
2003-09-14  Steven Bosscher  <steven@gcc.gnu.org>

	* ra.c: Convert to ISO C90 prototypes.
	* ra-build.c: Likewise.
	* ra-colorize.c: Likewise.
	* ra-debug.c: Likewise.
	* ra-rewrite.c: Likewise.

From-SVN: r71379
2003-09-14 13:42:33 +00:00
Richard Sandiford
3983d33ea8 * Makefile.in (%.dvi): Remove excess $(docdir).
From-SVN: r71373
2003-09-14 10:28:21 +00:00
Richard Sandiford
975f381876 function.c (STACK_BYTES): Move definition to head of file.
* function.c (STACK_BYTES): Move definition to head of file.
	(assign_parms): Don't pass current_function_pretend_args_size
	directly to SETUP_INCOMING_VARARGS.  For partial register arguments,
	round current_function_pretend_args_size up to STACK_BYTES.  Skip any
	excess before laying out the argument.

From-SVN: r71372
2003-09-14 10:07:51 +00:00
Andreas Jaeger
011d50d946 objc-act.c: Convert to ISO C90 prototypes.
* objc/objc-act.c: Convert to ISO C90 prototypes.
	* objc/objc-act.h: Likewise.

From-SVN: r71371
2003-09-14 11:42:57 +02:00
Olaf Hering
a56d737201 rs6000.c: Fix typo: Remove extra ')'.
2003-09-14  Olaf Hering  <olh@suse.de>

	* config/rs6000/rs6000.c: Fix typo: Remove extra ')'.

From-SVN: r71370
2003-09-14 08:23:15 +02:00
Andrew Pinski
6ef3d45791 re PR target/12021 (warning "cpu" and "machine" reasserted for every file)
2003-09-13  Andrew Pinski <pinskia@physics.uc.edu>

        PR target/12021
        * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
        as they already are done in config/m68k/m68k.h.
        * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise

From-SVN: r71369
2003-09-13 21:43:10 -07:00
Andrew Pinski
876455fa51 rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
2003-09-13  Andrew Pinski <pinskia@physics.uc.edu>

        * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
        (machopic_output_stub): Only generate pic base symbols when using pic
        and generate them in the form L00000000$spb.

From-SVN: r71368
2003-09-13 18:14:18 -07:00
GCC Administrator
3428576c06 Daily bump.
From-SVN: r71366
2003-09-14 00:16:09 +00:00
David Edelsohn
317feb4652 Correct Dale's email address in ChangeLog entry.
From-SVN: r71364
2003-09-13 19:18:35 -04:00
Phil Edwards
4bc8ae2387 run_doxygen: Clear GENERATE_TAGFILE entirely if man pages are on.
2003-09-13  Phil Edwards  <phil@codesourcery.com>

	* docs/doxygen/run_doxygen:  Clear GENERATE_TAGFILE entirely
	if man pages are on.
	* docs/doxygen/user.cfg.in:  And here.

From-SVN: r71363
2003-09-13 20:58:27 +00:00
Richard Henderson
f6d1b84aa4 cgraphunit.c (cgraph_assemble_pending_functions): Export.
* cgraphunit.c (cgraph_assemble_pending_functions): Export.
        (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
        * cgraph.h: Update.

        * decl2.c (finish_file): Check cgraph_assemble_pending_functions
        during relaxation loop.

From-SVN: r71360
2003-09-13 07:18:47 -07:00
Dale Johannesen
8daf2e6526 Fix still another typo.
From-SVN: r71352
2003-09-13 00:24:01 +00:00
Dale Johannesen
d779d0dc71 Fix typos in previous.
From-SVN: r71351
2003-09-13 00:21:32 +00:00
GCC Administrator
185c3caab1 Daily bump.
From-SVN: r71349
2003-09-13 00:16:08 +00:00
Ziemowit Laski
c4555dd942 pretty-print.c (pp_construct): Use xcalloc instead of xmalloc when allocating pp->buffer.
2003-09-12  Ziemowit Laski  <zlaski@apple.com>

        * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
        when allocating pp->buffer.

From-SVN: r71346
2003-09-12 23:47:01 +00:00
Geoffrey Keating
2e53734e19 darwin.c (machopic_select_rtx_section): Use const_data_section for things that might require relocation.
* config/darwin.c (machopic_select_rtx_section): Use
	const_data_section for things that might require relocation.

From-SVN: r71345
2003-09-12 23:45:03 +00:00
H.J. Lu
edeb387130 re PR bootstrap/12264 (Mainline faield to bootstrap)
PR bootstrap/12264
        * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.

From-SVN: r71343
2003-09-12 22:26:54 +00:00
Bob Wilson
6cedbe443e elf.h (ASM_SPEC): Remove no-density option.
* config/xtensa/elf.h (ASM_SPEC): Remove no-density option.  Reformat.
	* config/xtensa/linux.h (ASM_SPEC): Likewise.
	* config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
	-mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
	-m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
	-m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
	-m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
	-m[no-]hard-float-rsqrt options.  Delete corresponding MASK_* macros
	and redefine corresponding TARGET_* macros with constants from the
	xtensa-config.h header.
	* doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
	for the options listed above.

From-SVN: r71339
2003-09-12 21:52:01 +00:00
Dale Johannesen
a2369ed310 Use ISO C90 prototypes.
From-SVN: r71336
2003-09-12 19:00:45 +00:00
Chris Lattner
4ca0d6d449 * loop.c: Move comments describing BIV's and GIV's to top of file
From-SVN: r71333
2003-09-12 15:52:24 +00:00
Roger Sayle
d2399d7515 re PR rtl-optimization/8967 (Making class data members `const' pessimizes code)
PR optimization/8967
	* alias.c (write_dependence_p): Modify to take an additional constp
	argument that controls whether the UNCHANGING_RTX_P flags are used.
	(anti_dependence, output_dependence): Adjust write_dependence_p
	callers to pass this additional argument, to return the same result.
	(unchanging_anti_dependence): New variant of anti_dependence that
	ignores the UNCHANGING_RTX_P property on memory references.
	* rtl.h (unchaning_anti_dependence): Prototype here.
	* flow.c (init_propagate_block): Place fake constant mem writes on
	the mem_set_list so that dead writes to const variables are deleted.
	(insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
	(mark_used_regs): Likewise.

From-SVN: r71332
2003-09-12 15:07:50 +00:00
Richard Sandiford
f0f4da3220 mcore-protos.h (mcore_r15_operand_p): Declare.
* config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
	(mcore_secondary_reload_class): Declare.
	(mcore_output_inline_const_forced): Remove.
	* config/mcore/mcore.md (movsi): Remove the code that forced
	non-inlineable constants into a register if the target was r15
	or the stack pointer.  Remove constant restrictions from the main
	define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
	of an r <- P alternative.  Remove fallback define_insn for reload.
	(movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
	define_insn.  Use mcore_output_move in the remaining define_insn.
	Adjust condition and constraints in the way as for movsi.
	(movdi): Always split unacceptable constants into two.  Use
	simplify_gen_subreg instead of operand_subword{,_force}.
	* config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
	(mcore_output_move): Support HImode and QImode moves as well.
	(mcore_m15_operand_p): New function.
	(mcore_reload_class): Use it to detect cases where LRW_REGS are better.
	(mcore_secondary_reload_class): New function.
	* config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
	terms of mcore_secondary_reload_class.

From-SVN: r71330
2003-09-12 09:57:11 +00:00
Mike Stump
70b160738b * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
From-SVN: r71328
2003-09-11 22:03:22 -07:00
Tom Tromey
030612a110 URLStreamHandler.java (parseURL): If original file ends with "/", so must canonical result.
* java/net/URLStreamHandler.java (parseURL): If original file
	ends with "/", so must canonical result.
	* java/io/natFilePosix.cc (getCanonicalPath): Clean up snafus
	with nul-termination and finding previous "/".

From-SVN: r71327
2003-09-12 01:08:18 +00:00
GCC Administrator
e4bee82f89 Daily bump.
From-SVN: r71325
2003-09-12 00:16:07 +00:00
Alan Modra
6350c02cb6 prep_cif.c (initialize_aggregate): Include tail padding in structure size.
* src/prep_cif.c (initialize_aggregate): Include tail padding in
	structure size.
	* src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
	placement of float result.
	* testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
	cast of "resp" for big-endian 64 bit machines.

From-SVN: r71323
2003-09-12 09:24:40 +09:30
Kaveh R. Ghazi
fe27b7cc41 builtins.c (fold_builtin_logarithm): if N can't be truncated to MODE exactly...
* builtins.c (fold_builtin_logarithm): if N can't be truncated to
	MODE exactly, then only convert logN(N) -> 1.0 if
	flag_unsafe_math_optimizations is set.

From-SVN: r71322
2003-09-11 22:51:20 +00:00
Kaveh R. Ghazi
ab01a87cbc builtins.c (builtin_dconsts_init, [...]): Delete.
* builtins.c (builtin_dconsts_init, dconstpi, dconste,
	init_builtin_dconsts): Delete.
	* emit-rtl.c (dconstpi, dconste): Define.
	(init_emit_once): Initialize dconstpi & dconste.
	* real.h (dconstpi, dconste): Declare.

From-SVN: r71320
2003-09-11 21:40:41 +00:00
David Edelsohn
b44a178ae8 * decl2.c (var_finalized_p): Swap arms of conditional.
From-SVN: r71319
2003-09-11 16:47:13 -04:00
Bernardo Innocenti
dfb03c453c Capitalize my name in an old ChangeLog entry.
From-SVN: r71310
2003-09-11 21:49:02 +02:00
Michael Koch
e1a3a7d02b acconfig.h: Removed most items.
2003-09-11  Michael Koch  <konqueror@gmx.de>

	* acconfig.h: Removed most items.
	* configure.in: Added descriptions to AC_DEFINE macros that where in
	acconfig.h before.
	* include/config.h.in: Regenerated.

From-SVN: r71309
2003-09-11 17:25:47 +00:00