1. 10 Mar, 2008 1 commit
  2. 08 Mar, 2008 9 commits
  3. 07 Mar, 2008 3 commits
    • decl.c (gnat_to_gnu_entity): Add comment for the packed array type case. · b49a1a1e
      	* decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
      	comment for the packed array type case.
      	* utils.c (build_template): Use a loop to strip padding or
      	containing records for justified modular types.
      
      From-SVN: r133014
      Eric Botcazou committed
    • decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously large alignments specified for types. · fd5c81e9
      	* decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
      	large alignments specified for types.
      	(validate_alignment): Minor cleanup.
      
      From-SVN: r133012
      Eric Botcazou committed
    • decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined. · 7f42aa36
      	* decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
      	(gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
      	the component for packing, if possible, as well as if a component
      	size clause is specified.
      	<E_Record_Subtype>: For an array type used to implement a packed
      	array, get the component type from the original array type.
      	Try to get a smaller form of the component for packing, if possible,
      	as well as if a component size clause is specified.
      	(round_up_to_align): New function.
      	(make_packable_type): Add in_record parameter.
      	For a padding record, preserve the size.  If not in_record and the
      	size is too large for an integral mode, attempt to shrink the size
      	by lowering the alignment.
      	Ditch the padding bits of the last component.
      	Compute sizes and mode manually, and propagate the RM size.
      	Return a BLKmode record type if its size has shrunk.
      	(maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
      	Use Original_Array_Type to retrieve the type in case of an error.
      	Adjust call to make_packable_type.
      	(gnat_to_gnu_field): Likewise.
      	(concat_id_with_name): Minor tweak.
      	* trans.c (larger_record_type_p): New predicate.
      	(call_to_gnu): Compute the nominal type of the object only if the
      	parameter is by-reference.  Do the conversion actual type -> nominal
      	type if the nominal type is a larger record.
      	(gnat_to_gnu): Do not require integral modes on the source type to
      	avoid the conversion for types with identical names.
      	(addressable_p): Add gnu_type parameter.  If it is specified, do not
      	return true if the expression is not addressable in gnu_type.
      	Adjust recursive calls.
      	* utils.c (finish_record_type): Remove dead code.
      
      From-SVN: r133011
      Eric Botcazou committed
  4. 06 Mar, 2008 1 commit
  5. 02 Mar, 2008 2 commits
    • gnatfind.adb, [...]: Fix argument parsing typos. · ad6b5b00
      gcc/ada
      
      	* gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
      	* s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
      	statement.
      	* a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
      	gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
      	sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
      	code output strings.
      	* sem_type.adb, system-vms-ia64.ads, system-vms.ads,
      	system-vms_64.ads: Fix typos in ada source code comments.
      	* sinfo-cn.adb: Remove incomplete sentence.
      
      From-SVN: r132822
      Ralf Wildenhues committed
    • re PR ada/15479 (Ada manual problems) · 4d0e4612
      gcc/ada
      
      	PR documentation/15479
      	* gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
      
      From-SVN: r132821
      Ralf Wildenhues committed
  6. 27 Feb, 2008 3 commits
  7. 26 Feb, 2008 1 commit
    • system.h (USE_MAPPED_LOCATION): Poison. · 2d593c86
      gcc
      	* system.h (USE_MAPPED_LOCATION): Poison.
      	* Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
      	* tree-cfg.c (make_cond_expr_edges): Remove old location code.
      	(make_goto_expr_edges): Likewise.
      	(remove_bb): Likewise.
      	(execute_warn_function_return): Likewise.
      	* basic-block.h (struct edge_def) <goto_locus>: Change type to
      	location_t.
      	* c-common.c (fname_decl): Remove old location code.
      	* tree-vect-transform.c (vect_finish_stmt_generation): Remove old
      	location code.
      	* rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
      	variant.
      	(ASM_INPUT_SOURCE_LOCATION): Likewise.
      	(gen_rtx_ASM_INPUT): Likewise.
      	(gen_rtx_ASM_INPUT_loc): Likewise.
      	(get_rtx_asm_OPERANDS): Remove.
      	* cfglayout.c (insn_locators_alloc): Remove old location code.
      	(set_curr_insn_source_location): Likewise.
      	(curr_insn_locator): Likewise.
      	* print-tree.c (print_node): Remove old location code.
      	* tree-mudflap.c (mf_varname_tree): Remove old location code.
      	(mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
      	* cfgexpand.c (expand_gimple_cond_expr): Don't use
      	location_from_locus.
      	(construct_exit_block): Remove old location code.
      	* emit-rtl.c (force_next_line_note): Remove old location code.
      	* profile.c (branch_prob): Remove old location code.
      	* tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
      	LOC_LINE): Remove old-location variants.
      	* langhooks.c (lhd_print_error_function): Remove old location
      	code.
      	* configure, config.in: Rebuilt.
      	* configure.ac (--enable-mapped-location): Remove.
      	* c-decl.c (c_init_decl_processing): Remove old location code.
      	(finish_function): Likewise.
      	* recog.c (decode_asm_operands): Remove old location code.
      	* c-pch.c (c_common_read_pch): Remove old location code.
      	* rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
      	variants.
      	* gimple-low.c (lower_function_body): Remove old location code.
      	* toplev.c (unknown_location): Remove.
      	(push_srcloc): Remove old-location variant.
      	(process_options): Remove old location code.
      	(lang_dependent_init): Likewise.
      	* input.h (UNKNOWN_LOCATION): Move definition.
      	(location_t): Undeprecate.
      	(source_locus): Remove.
      	(location_from_locus): Remove.
      	(struct location_s): Remove.
      	Remove all old-location code.
      	(input_line, input_filename): Remove.
      	* final.c (final_scan_insn): Remove old location code.
      	* diagnostic.c (diagnostic_build_prefix): Remove
      	USE_MAPPED_LOCATION test.
      	* tree.h (gimple_stmt) <locus>: Now a location_t.
      	(tree_exp) <locus>: Likewise.
      	(DECL_IS_BUILTIN): Remove old-location variant.
      	(annotate_with_file_line, annotate_with_locus): Likewise.
      	(expr_locus, set_expr_locus): Update.
      	* tree.c (build1_stat): Remove old location code.
      	(last_annotated_node): Remove.
      	(annotate_with_file_line): Remove old-location variant.
      	(annotate_with_locus): Likewise.
      	(expr_location): Remove old location code.
      	(set_expr_location): Likewise.
      	(expr_has_location): Likewise.
      	(expr_locus): Likewise.
      	(set_expr_locus): Likewise.
      	(expr_filename): Don't use location_from_locus.
      	(expr_lineno): Likewise.
      	* rtl-error.c (location_for_asm): Remove old location code.
      	* c-lex.c (cb_line_change): Remove old location code.
      	(fe_file_change): Likewise.
      	(cb_def_pragma): Likewise.
      	(c_lex_with_flags): Likewise.
      	* gengtype.c (do_typedef): Don't special-case location types.
      	(define_location_structures): Remove.
      	(main): Don't call define_location_structures.
      	* tree-pretty-print.c (dump_implicit_edges): Remove old location
      	code.
      gcc/ada
      	* misc.c (internal_error_function): Remove test of
      	USE_MAPPED_LOCATION.
      	* trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
      	(Sloc_to_locus): Remove old location code.
      gcc/cp
      	* parser.c (eof_token): Remove old location code.
      	(check_empty_body): Remove test of USE_MAPPED_LOCATION.
      	* decl2.c (generate_ctor_or_dtor_function): Remove old location
      	code.
      	(cp_write_global_declarations): Likewise.
      	* lex.c (cxx_init): Remove old location code.
      	(handle_pragma_implementation): Remove test of
      	USE_MAPPED_LOCATION.
      	* pt.c (tsubst): Remove old location code.
      	* error.c (cp_print_error_function): Remove test of
      	USE_MAPPED_LOCATION.
      	* decl.c (pop_label): Remove old location code.
      	(finish_function): Likewise.
      gcc/fortran
      	* trans-io.c (set_error_locus): Remove old location code.
      	* trans-decl.c (gfc_set_decl_location): Remove old location code.
      	* f95-lang.c (gfc_init): Remove test of USE_MAPPED_LOCATION.
      	* scanner.c (gfc_gobble_whitespace): Remove old location code.
      	(get_file): Likewise.
      	(preprocessor_line): Likewise.
      	(load_file): Likewise.
      	(gfc_new_file): Likewise.
      	* trans.c (gfc_trans_runtime_check): Remove old location code.
      	(gfc_get_backend_locus): Likewise.
      	(gfc_set_backend_locus): Likewise.
      	* data.c (gfc_assign_data_value): Remove old location code.
      	* error.c (show_locus): Remove old location code.
      	* gfortran.h (gfc_linebuf): Remove old location code.
      	(gfc_linebuf_linenum): Remove old-location variant.
      gcc/java
      	* lang.c (java_post_options): Remove conditional.
      	* expr.c (expand_byte_code): Remove old location code.
      	* jcf-parse.c (set_source_filename): Remove old location code.
      	(give_name_to_class): Likewise.
      	(jcf_parse): Likewise.
      	(duplicate_class_warning): Likewise.
      	(parse_class_file): Likewise.
      	(java_parse_file): Likewise.
      	* decl.c (finish_method): Remove old location code.
      	* class.c (push_class): Remove old location code.
      gcc/objc
      	* objc-act.c (objc_init): Remove old location code.
      gcc/treelang
      	* tree1.c (treelang_init): Remove old location code.
      	(treelang_parse_file): Likewise.
      	* lex.l (LINEMAP_POSITION_FOR_COLUMN): Remove.
      	(update_lineno_charno): Remove old location code.
      
      From-SVN: r132679
      Tom Tromey committed
  8. 25 Feb, 2008 2 commits
  9. 24 Feb, 2008 3 commits
  10. 17 Feb, 2008 1 commit
    • re PR ada/15479 (Ada manual problems) · e69044cb
      gcc/ada/:
      PR documentation/15479
      * gnat_ugn.texi: In non-code, avoid space before colon.
      (Regular Expressions in gnatfind and gnatxref): Fix indentation.
      (Examples of gnatxref Usage): Use @command{vi} instead of
      @file{vi}.
      (Character Set Control): Do not use @code for UTF-8.
      (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
      use @code for IEEE.
      * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
      sample.
      * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
      
      From-SVN: r132382
      Ralf Wildenhues committed
  11. 13 Feb, 2008 1 commit
    • re PR ada/35143 (Serious regression on ACATS results since 4.2.3) · 6a333ca0
      2008-02-11  Joel Sherrill <joel.sherrill@oarcorp.com>
      
      	PR ada/35143
      	* env.c: Add __rtems__ to if defined.
      	* s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
      	* s-osinte-rtems.ads: Add To_Target_Priority prototype and
      	PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
      	pragma Convention as required.
      	* gsocket.h: Make compile in and out of RTS.
      	* Makefile.in: Add system-rtems.ads.  Build DEC extensions.
      	Use g-soccon-rtems.ads.
      	* g-soccon-rtems.ads, system-rtems.ads: New files.
      
      From-SVN: r132294
      Joel Sherrill committed
  12. 06 Feb, 2008 1 commit
    • re PR other/35107 (GCC unnecessarily links shared libs with xgcc, gcov, cpp, jcf-dump, etc.) · 72fb133f
      2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
      
      	PR other/35107
      	* Makefile.in (LIBS): Remove $(GMPLIBS).
      	(cc1-dummy, cc1): Add $(GMPLIBS).
      
      ada:
      	PR other/35107
      	* Make-lang.in (gnat1): Add $(GMPLIBS).
      
      cp:
      	PR other/35107
      	* Make-lang.in (cc1plus-dummy, cc1plus): Add $(GMPLIBS).
      
      fortran:
      	PR other/35107
      	* Make-lang.in (f951): Add $(GMPLIBS).
      
      java:
      	PR other/35107
      	* Make-lang.in (jc1): Add $(GMPLIBS).
      
      objc:
      	PR other/35107
      	* Make-lang.in (cc1obj-dummy, cc1obj): Add $(GMPLIBS).
      
      objcp:
      	PR other/35107
      	* Make-lang.in (cc1objplus-dummy, cc1objplus): Add $(GMPLIBS).
      
      treelang:
      	PR other/35107
      	* Make-lang.in (tree1): Add $(GMPLIBS).
      
      From-SVN: r132160
      Kaveh R. Ghazi committed
  13. 26 Jan, 2008 1 commit
  14. 22 Jan, 2008 1 commit
  15. 21 Jan, 2008 2 commits
  16. 17 Jan, 2008 1 commit
  17. 14 Jan, 2008 2 commits
  18. 13 Jan, 2008 2 commits
  19. 12 Jan, 2008 1 commit
  20. 11 Jan, 2008 1 commit
  21. 03 Jan, 2008 1 commit
    • re PR ada/34647 (Ada runtime includes unsafe calls to mktemp and tmpname on OpenBSD) · e0658eda
      2008-01-03  Tero Koskinen <tero.koskinen@iki.fi>
      
          gcc/ada/
      	PR ada/34647
      	* adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
      	on OpenBSD as is done on other BSD systems.
      
      	PR ada/34645
      	* sysdep.c (__gnat_ttyname, getc_immediate_nowait,
      	getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
      	I/O.
      
      	PR ada/34644
      	* env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
      	clearenv().
      
      	PR ada/34646
      	* init.c (__gnat_error_handler, __gnat_install_handler,
      	__gnat_init_float): Define for OpenBSD.
      
      	* initialize.c (__gnat_initialize): Define for OpenBSD.
      
      From-SVN: r131301
      Tero Koskinen committed