1. 27 Mar, 2007 17 commits
  2. 26 Mar, 2007 23 commits
    • Daily bump. · 196a935a
      From-SVN: r123247
      GCC Administrator committed
    • * error.c (show_locus): Remove always-false test. · 7b0930d9
      From-SVN: r123244
      Brooks Moses committed
    • Revert accidental commit. · 2aeb72e9
      From-SVN: r123243
      DJ Delorie committed
    • Main.java (cniOrJniSeen): New field. · 596438ca
      2007-03-26  Stepan Kasal  <skasal@redhat.com>
      
      	* tools/gnu/classpath/tools/javah/Main.java (cniOrJniSeen): New
      	field.
      	(getParser): Use new field.
      
      From-SVN: r123240
      Stepan Kasal committed
    • re PR c++/30500 (pragma GCC system_header vs templates) · 7cf2045d
      2007-03-26  Paolo Carlini  <pcarlini@suse.de>
      
      	PR c++/30500
      	* pt.c (instantiate_decl): Set in_system_header.
      
      2007-03-26  Paolo Carlini  <pcarlini@suse.de>
      
      	PR c++/30500
      	* g++.dg/warn/pragma-system_header1.C: New test.
      	* g++.dg/warn/pragma-system_header2.C: New test.
      	* g++.dg/warn/pragma-system_header1.h. New.
      	* g++.dg/warn/pragma-system_header2.h. New.
      
      From-SVN: r123239
      Paolo Carlini committed
    • re PR c++/30500 (pragma GCC system_header vs templates) · 912291ca
      2007-03-26  Paolo Carlini  <pcarlini@suse.de>
      
      	PR c++/30500
      	* pt.c (instantiate_decl): Set in_system_header.
      
      2007-03-26  Paolo Carlini  <pcarlini@suse.de>
      
      	PR c++/30500
      	* g++.dg/warn/pragma-system_header1.C: New test.
      	* g++.dg/warn/pragma-system_header2.C: New test.
      	* g++.dg/warn/pragma-system_header1.h. New.
      	* g++.dg/warn/pragma-system_header2.h. New.
      
      From-SVN: r123238
      Paolo Carlini committed
    • re PR tree-optimization/31345 (ICE in set_value_range, at tree-vrp.c:269) · fa633851
      ./:	PR tree-optimization/31345
      	* tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
      	[+INF, +INF(OVF)] into VARYING.
      testsuite/:
      	PR tree-optimization/31345
      	* gcc.c-torture/compile/pr31345-1.c: New test.
      
      From-SVN: r123237
      Ian Lance Taylor committed
    • * lang.opt: Minor edits to descriptions. · 0d67a675
      From-SVN: r123236
      Brooks Moses committed
    • gengtype-parse.c: New file. · 01d419ae
      	* gengtype-parse.c: New file.
      	* gengtype-yacc.y: Delete.
      	* gengtype-lex.l: Don't include gengtype-yacc.h.
      	Define YY_DECL and yyterminate appropriately for recursive
      	descent parser.  yylval is now a string out-parameter to yylex.
      	(HWS, EOID): New shorthand.
      	(IWORD): Add a couple more types.
      	(yylex): Add a setup stanza.  Remove the complex rules for
      	detecting GTY'ed types and typedefs; replace with simple
      	keyword detectors.  Adjust everything for the changed
      	definition of yylval.  Ignore all pp-directives, not just #define.
      	(yyerror): Delete.
      	(parse_file): Rename yybegin; do not call yyparse.
      	(yyend): New.
      	* gengtype.c (xasprintf): Export again.
      	(this_file): New.  Use everywhere __FILE__ was being used.
      	(get_lang_bitmap): Special case types defined in gengtype.c.
      	(do_typedef, new_structure): Suppress definition of certain types.
      	(new_structure): Improve diagnostics of duplicate definitions.
      	Make sure location_s is associated with input.h.
      	(nreverse_pairs, define_location_structures): New functions.
      	(main): Improve tagging of kludge types.  Remove old kludges
      	for input.h types; use define_location_structures.
      	* gengtype.h: Update prototypes.  Define token codes here.
      	* Makefile.in: Remove all references to gengtype-yacc.
      	Add rules for gengtype-parse.o.  Adjust rules for gengtype-lex.o
      	and gengtype.
      	* bitmap.h (struct bitmap_head_def): Coalesce definitions,
      	add GTY((skip)) to the field that's only conditionally there.
      	* doc/install.texi: Document that Bison is no longer required
      	unless building treelang.
      
      From-SVN: r123235
      Zack Weinberg committed
    • gengtype.c: Don't include gtyp-gen.h. · 11a67599
      	* gengtype.c: Don't include gtyp-gen.h.
      	(srcdir): Declare here.
      	(base_files, lang_dir_names): Allocate dynamically.
      	(gt_files, num_gt_files, num_lang_dirs): New globals.
      	(measure_input_list, read_input_line, read_input_list)
      	(set_lang_bitmap): New functions.
      	(get_base_file_bitmap): Rename get_lang_bitmap and drastically
      	simplify, relying on read_input_list to set up the bitmaps.
      	(main): Arguments are no longer unused.  Check for correct number
      	of command line arguments, set srcdir and srcdir_len, then call
      	read_input_list, before doing anything else.  No need to worry
      	about duplicates in main loop.
      	* configure.ac: Simplify the calculation of all_gtfiles.
      	Put language tags in there.  Don't set or substitute
      	all_gtfiles_files_langs or all_gtfiles_files_frags.
      	* Makefile.in: Revamp the way gengtype is invoked, now that it
      	takes a file on its command line with a much simpler format.
      	Remove or replace with gtyp-input.list all references to gtyp-gen.h.
      	(GTFILES): Remove duplicates and C source files.
      	* c-config-lang.in, cp/config-lang.in, objc/config-lang.in
      	* objcp/config-lang.in: Add c-pragma.h to gtfiles.
      	* configure: Regenerate.
      
      From-SVN: r123234
      Zack Weinberg committed
    • gengtype.h: Remove all type definitions to gengtype.c... · 065ae611
      	* gengtype.h: Remove all type definitions to gengtype.c; leave
      	only definitions of options_p, type_p, and pair_p as opaque
      	pointers.  Update prototypes.
      	* gengtype.c: Many type definitions moved here from gengtype.h.
      	Consolidate type definitions at the top of the file.
      	(xvasprintf): Delete.
      	(xasprintf): Make static.
      	(create_nested_pointer_option): Add 'next' parameter.
      	(create_field_all, create_field_at): New functions.
      	(create_field): Now a thin wrapper around create_field_all.
      	(create_optional_field): Rename create_optional_field_ and add
      	line argument.  Original name is now a macro which supplies
      	__LINE__.
      	(oprintf): Use vsnprintf directly.
      	(close_output_files): Use fatal rather than perror/exit.
      	(note_def_vec, note_def_vec_alloc): Use create_field_at.
      	(main): Set progname.  Don't use exit.
      	* gengtype-yacc.y (struct_fields): Use create_field_at.
      	(option, optionseqopt): Delete.
      	(optionseq): Consolidate productions from option here so we
      	can use the first argument to create_option.
      
      From-SVN: r123233
      Zack Weinberg committed
    • gengtype-lex.l: Distinguish unions from structures in the token type. · 17defa6a
      	* gengtype-lex.l: Distinguish unions from structures in the
      	token type.  Don't call find_structure; return the tag as a string.
      	* gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
      	Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
      	Reorganize typedef_struct production accordingly.
      	Use create_nested_ptr_option.
      	* gengtype.c (create_nested_ptr_option): New function.
      	* gengtype.h: Declare it.
      
      From-SVN: r123232
      Zack Weinberg committed
    • gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char. · 95161faf
      	* gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
      	(string_type): Don't declare.
      	(do_scalar_typedef): Declare.
      	(create_scalar_type): Update prototype.
      	* gengtype.c (string_type): Make static.
      	(scalar_nonchar, scalar_char): New.
      	(do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
      	(resolve_typedef): Use scalar_nonchar for error recovery.
      	(create_scalar_type): Remove name_len field.  Return scalar_char
      	or scalar_nonchar as appropriate.
      	(adjust_field_type): Look at scalar_is_char boolean to decide whether
      	to use string_type.
      	(throughout): Use scalar_nonchar instead of calling create_scalar_type,
      	whenever possible.
      	(main): Initialize scalar_char and scalar_nonchar before calling
      	gen_rtx_next.
      	* gengtype-lex.l: Adjust for removal of second argument to
      	create_scalar_type.  Use yylval.s instead of yylval.t when
      	returning SCALAR.
      	* gengtype-yacc.y: Type of SCALAR is string.  Call
      	create_scalar_type from type:SCALAR rule.  Adjust for removal of
      	second argument to create_scalar_type.
      
      From-SVN: r123231
      Zack Weinberg committed
    • vec.h: Remove all #if IN_GENGTYPE blocks. · 4a399aef
      	* vec.h: Remove all #if IN_GENGTYPE blocks.
      	Add comment saying that changes may require adjustments to gengtype.
      	* gengtype.c: Don't include coretypes.h or tm.h.
      	Add comment to inclusion of errors.h.
      	(note_def_vec, note_def_vec_alloc): New functions.
      	* gengtype.h: Declare new functions.
      	* gengtype-lex.l: Don't include coretypes.h.
      	(YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
      	Delete.
      	(update_lineno): Remove unnecessary prototype.
      	(DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
      	(VEC rule): Just return VEC_TOKEN.
      	* gengtype-yacc.y (VEC_TOKEN): New token type.
      	(type): Add a production for VEC(a,b).
      	* Makefile.in: Update dependencies.
      
      From-SVN: r123229
      Zack Weinberg committed
    • gengtype-lex.l: Remove rules for parsing pointer-to-function typedefs that use… · d287ace6
      gengtype-lex.l: Remove rules for parsing pointer-to-function typedefs that use the old PARAMS macro.
      
      	* gengtype-lex.l: Remove rules for parsing pointer-to-function
      	typedefs that use the old PARAMS macro.
      
      From-SVN: r123227
      Zack Weinberg committed
    • gengtype-lex.l: Remove all rules and states relating to yacc input files. · cff4720f
      	* gengtype-lex.l: Remove all rules and states relating to yacc
      	input files.
      	* gengtype-yacc.y: Similarly.
      	* gengtype.c (note_yacc_type): Delete function.
      	* gengtype.h: Update prototypes.
      
      From-SVN: r123226
      Zack Weinberg committed
    • func_derived_4.f90: Fix module cleanup. · 0227f9b9
      * gfortran.dg/func_derived_4.f90: Fix module cleanup.
      * gfortran.dg/gomp/appendix-a/a.22.4.f90: Clean up modules.
      * gfortran.dg/gomp/appendix-a/a.26.2.f90: Likewise.
      * gfortran.dg/gomp/appendix-a/a.32.1.f90: Likewise.
      * gfortran.dg/overload_1.f90: Likewise.
      * gfortran.dg/impure_assignment_1.f90: Likewise.
      * gfortran.dg/error_recovery_3.f90: Likewise.
      * gfortran.dg/alloc_comp_basics_1.f90: Likewise.
      * gfortran.dg/sequence_types_1.f90: Likewise.
      * gfortran.dg/internal_references_1.f90: Likewise.
      * gfortran.dg/present_1.f90: Likewise.
      * gfortran.dg/volatile10.f90: Likewise.
      * gfortran.dg/module_equivalence_2.f90: Likewise.
      * gfortran.dg/use_4.f90: Likewise.
      * gfortran.dg/elemental_result_1.f90: Likewise.
      * gfortran.dg/generic_actual_arg.f90: Likewise.
      * gfortran.dg/private_type_5.f90: Likewise.
      * gfortran.dg/protected_4.f90: Likewise.
      * gfortran.dg/interface_3.f90: Likewise.
      
      From-SVN: r123225
      Brooks Moses committed
    • tree-pretty-print.c (dump_generic_node): Report precision of unnamed integer types. · 71175bf3
      	* tree-pretty-print.c (dump_generic_node): Report precision of
      	unnamed integer types.
      
      From-SVN: r123224
      Joseph Myers committed
    • ifcvt.c (noce_try_store_flag_constants): Don't check no_new_pseudos here. · 93242b9c
      	* ifcvt.c (noce_try_store_flag_constants): Don't check
      	no_new_pseudos here.
      	(noce_try_store_flag_constants): Don't check no_new_pseudos.
      	(noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
      	noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
      	noce_try_sign_mask): Likewise.
      	(if_convert): Check no_new_pseudos here.
      
      	(cond_exec_process_if_block, noce_process_if_block, find_if_block):
      	Remove prototypes.
      	(struct noce_if_info): Add then_bb, else_bb, join_bb members.
      	(noce_get_condition): Handle new then_else_reversed argument.
      	(noce_init_if_info): Remove, fold into noce_find_if_block.
      	(noce_process_if_block): Take a struct noce_if_info as the
      	argument.  Don't set up one based on ce_if_info.  Update pointer
      	references accordingly.
      	(cond_move_process_if_block): Likewise.
      	(process_if_block): Removed.
      	(find_if_block): Removed.  Move functionality two new functions,
      	noce_find_if_block and cond_exec_find_if_block.
      	(noce_find_if_block): New function.  Be aware of IF-THEN-JOIN
      	blocks and the symmetric IF-ELSE-JOIN case.
      	(cond_exec_find_if_block): Also new function mostly based on old
      	find_if_block and process_if_block.
      	(find_if_header): Replace find_if_block call with separately
      	guarded calls to noce_find_if_block and cond_exec_find_if_block.
      	(find_cond_trap): Update noce_get_condition call.
      	(dead_or_predicable): Likewise.
      
      From-SVN: r123223
      Steven Bosscher committed
    • configure.ac: Remove checks for mktime... · 646714ab
      	* configure.ac: Remove checks for mktime, alloca, ioctl, gmtime_r,
      	fork, execvp, execinfo.h, pthread_mutexattr_settype,
      	pthread_mutexattr_setkind_np and sys/wait.h.
      	* Makefile.in: Regenerate.
      	* include/Makefile.in: Regenerate.
      	* include/config.h.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      	* configure: Regenerate.
      	* gcj/Makefile.in: Regenerate.
      
      From-SVN: r123221
      David Daney committed
    • acx.m4 (ACX_BUGURL): Set BUGURL first. · b5292be6
      2007-03-26  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* acx.m4 (ACX_BUGURL): Set BUGURL first. Quote $BUGURL first
      	when setting REPORT_BUGS_TEXI.
      
      From-SVN: r123218
      H.J. Lu committed
    • gcc-dg.exp (gcc-dg-debug-runtest): Remove build file trivial.S. · 0890eb23
              * lib/gcc-dg.exp (gcc-dg-debug-runtest): Remove build file trivial.S.
              * gcc.dg/debug/dwarf2/dwarf2.exp: Ditto.
      
      From-SVN: r123217
      Uros Bizjak committed