Commit Graph

96047 Commits

Author SHA1 Message Date
Richard Henderson
f8fd49b549 tree-eh.c (unsplit_eh): Do not unsplit if there's already an edge to the new destination block.
* tree-eh.c (unsplit_eh): Do not unsplit if there's already
        an edge to the new destination block.

From-SVN: r152310
2009-09-29 16:46:02 -07:00
John David Anglin
062a5fd1c0 re PR target/41393 (ICE in get_eh_region_and_lp_from_rtx at except.c:1692)
PR target/41393
	* pa.c (hppa_profile_hook): Use
	make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.

From-SVN: r152309
2009-09-29 23:04:46 +00:00
Steve Ellcey
cd17b213b0 re PR target/41365 (gcc.dg/vect/vect-cond-[123].c abort due to bad code generation at -O1 and above)
2009-09-29  Steve Ellcey  <sje@cup.hp.com>
	    Alexander Monakov  <amonakov@ispras.ru>

	PR target/41365 
	* config/ia64/predicates.md (not_postinc_destination_operand): New.
	(not_postinc_memory_operand): New.
	(not_postinc_move_operand): New.
	* config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
	(*cmovsi_internal): Ditto.

Co-Authored-By: Alexander Monakov <amonakov@ispras.ru>

From-SVN: r152306
2009-09-29 22:21:27 +00:00
Pat Haugen
e7ada00d33 rs6000.c (rs6000_issue_rate): Don't artificially restrict issue_rate in first pass when...
* config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
        restrict issue_rate in first pass when scheduling for register
        pressure.

From-SVN: r152291
2009-09-29 18:58:56 +00:00
H.J. Lu
1c1a5fd8f8 re PR middle-end/41496 (Many regressions on trunk)
2009-09-29  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/41496
	* g++.dg/dfp/dfp.exp: Unset DEFAULT_CXXFLAGS if it didn't exist
	before.

From-SVN: r152287
2009-09-29 11:29:24 -07:00
Basile Starynkevitch
9b39cba9ab gengtype.c (plugin_output): New.
2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
            Rafael Avila de Espindola  <espindola@google.com>

	* gengtype.c (plugin_output): New.
	(get_output_file_with_visibility): Return plugin_output for plugins.
	(main): Parse and use the -P option.
	* gty.texi: Update the command line format.


Co-Authored-By: Rafael Avila de Espindola <espindola@google.com>

From-SVN: r152286
2009-09-29 18:26:33 +00:00
H.J. Lu
4a0ce41d05 Fix a typo in ChangeLog.
From-SVN: r152285
2009-09-29 10:42:33 -07:00
Janis Johnson
66dfffa291 dg-bogus-exp-XF.c: Move dg-bogus directive.
* gcc.test-framework/dg-bogus-exp-XF.c: Move dg-bogus directive.
	* gcc.test-framework/dg-warning-exp-P.c: Move dg-warning directives.

From-SVN: r152284
2009-09-29 17:40:28 +00:00
Jakub Jelinek
08cc1e7fb7 re PR debug/41438 (VTA: libgomp build fails due to inconsistent debug info)
PR debug/41438
	* dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
	functions.
	(mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
	out if !const_ok_for_output.

	PR debug/41474
	* dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
	case VAR_LOCATION>: Remove gcc_unreachable ().

	* gcc.dg/debug/dwarf2/const-1.c: Add dg-require-visibility, make x
	hidden.
	* g++.dg/debug/dwarf2/const-1.C: Likewise.

From-SVN: r152282
2009-09-29 19:33:58 +02:00
Harsha Jagasia
a795ca6e59 config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>

	* config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
	(x86_64-*-*): Ditto.
	* config/i386/smmintrin.h: Move instructions in mmintrin-common.h
	back to smmintrin.h.
	* config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
	* config/i386/x86intrin.h: Remove SSE5.
	* config/i386/mmintrin-common.h: Delete file.	
	* doc/extend.texi (x86 intrinsics): Remove SSE5 flags
	and builtins.
	
	* gcc.target/i386/i386.exp: Remove check_effective_target_sse5.
	* gcc.target/i386/isa-1.c
	* gcc.target/i386/isa-5.c
	* gcc.target/i386/isa-6.c: Remove SSE5.
	* gcc.target/i386/funcspec-4.c: Remove error conditions related to SSE5.
	* gcc.target/i386/avx-1.c
	* gcc.target/i386/avx-2.c
	* gcc.target/i386/sse-23.c: Remove comments to mmintrin-common.h.
	* gcc.target/i386/funcspec-9.c: Delete.

From-SVN: r152280
2009-09-29 17:15:32 +00:00
Richard Guenther
b0e96404c1 alias.c (ao_ref_from_mem): Properly deal with off decl accesses resulting from stack temporaries on...
2009-09-29  Richard Guenther  <rguenther@suse.de>

	* alias.c (ao_ref_from_mem): Properly deal with off decl accesses
	resulting from stack temporaries on STRICT_ALIGNMENT targets.

From-SVN: r152278
2009-09-29 14:29:10 +00:00
Jakub Jelinek
4b653ed5a4 re PR testsuite/41444 (Typo in gcc/testsuite/gcc.dg/guality/guality.h)
PR testsuite/41444
	* gcc.dg/guality/guality.h (GUALITY_GDB_REDIRECT): Fix a typo
	in macro name definition for non-unix/win32/msdos.

From-SVN: r152275
2009-09-29 14:56:46 +02:00
Eric Botcazou
2cac601721 decl.c (gnat_to_gnu_entity): Factor out common code processing the component type into...
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out
	common code processing the component type into...
	<E_Array_Subtype>: Likewise.
	(gnat_to_gnu_component_type): ...this new static function.
	(maybe_pad_type): Minor cleanup.

From-SVN: r152273
2009-09-29 11:13:29 +00:00
Eric Botcazou
95c1c4bb9a decl.c (gnat_to_gnu_entity): Rewrite the handling of constrained discriminated record subtypes.
* decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite the handling
	of constrained discriminated record subtypes.
	(components_to_record): Declare the type of the variants and of the
	qualified union.
	(build_subst_list): Move around.
	(compute_field_positions): Rename into...
	(build_position_list): ...this.  Return a TREE_VEC.
	(annotate_rep): Adjust for above renaming.
	(build_variant_list): New static function.
	(create_field_decl_from): Likewise.
	(get_rep_part): Likewise.
	(get_variant_part): Likewise.
	(create_variant_part_from): Likewise.
	(copy_and_substitute_in_size): Likewise.

From-SVN: r152272
2009-09-29 10:54:12 +00:00
Jakub Jelinek
1dd61ee507 guality.exp (gdb-test): New proc for use in dg-final.
* gcc.dg/guality/guality.exp (gdb-test): New proc for use in dg-final.
	* gcc.dg/guality/pr41353-1.c: New test.

From-SVN: r152271
2009-09-29 12:38:19 +02:00
Nick Clifton
c7ac4fb53d function.c (current_function_name): If there is no current function just return "<none>".
* function.c (current_function_name): If there is no current
        function just return "<none>".

From-SVN: r152269
2009-09-29 09:31:41 +00:00
Daniel Kraft
9abe5e56e2 re PR fortran/39626 (Correctly implement details of Fortran 2008 BLOCK construct)
2009-09-29  Daniel Kraft  <d@domob.eu>

	PR fortran/39626
	* gfortran.h (enum gfc_statement): Add ST_BLOCK and ST_END_BLOCK.
	(struct gfc_namespace): Convert flags to bit-fields and add flag
	`construct_entities' for use with BLOCK constructs.
	(enum gfc_exec_code): Add EXEC_BLOCK.
	(struct gfc_code): Add namespace field to union for EXEC_BLOCK.
	* match.h (gfc_match_block): New prototype.
	* parse.h (enum gfc_compile_state): Add COMP_BLOCK.
	* trans.h (gfc_process_block_locals): New prototype.
	(gfc_trans_deferred_vars): Made public, new prototype.
	* trans-stmt.h (gfc_trans_block_construct): New prototype.
	* decl.c (gfc_match_end): Handle END BLOCK correctly.
	(gfc_match_intent): Error if inside of BLOCK.
	(gfc_match_optional), (gfc_match_value): Ditto.
	* match.c (gfc_match_block): New routine.
	* parse.c (decode_statement): Handle BLOCK statement.
	(case_exec_markers): Add ST_BLOCK.
	(case_end): Add ST_END_BLOCK.
	(gfc_ascii_statement): Handle ST_BLOCK and ST_END_BLOCK.
	(parse_spec): Check for statements not allowed inside of BLOCK.
	(parse_block_construct): New routine.
	(parse_executable): Parse BLOCKs.
	(parse_progunit): Disallow CONTAINS in BLOCK constructs.
	* resolve.c (is_illegal_recursion): Find real container procedure and
	don't get confused by BLOCK constructs.
	(resolve_block_construct): New routine.
	(gfc_resolve_blocks), (resolve_code): Handle EXEC_BLOCK.
	* st.c (gfc_free_statement): Handle EXEC_BLOCK statements.
	* trans-decl.c (saved_local_decls): New static variable.
	(add_decl_as_local): New routine.
	(gfc_finish_var_decl): Add variable as local if inside BLOCK.
	(gfc_trans_deferred_vars): Make public.
	(gfc_process_block_locals): New routine.
	* trans-stmt.c (gfc_trans_block_construct): New routine.
	* trans.c (gfc_trans_code): Handle EXEC_BLOCK statements.

2009-09-29  Daniel Kraft  <d@domob.eu>

	PR fortran/39626
	* gfortran.dg/block_1.f08: New test.
	* gfortran.dg/block_2.f08: New test.
	* gfortran.dg/block_3.f90: New test.
	* gfortran.dg/block_4.f08: New test.
	* gfortran.dg/block_5.f08: New test.
	* gfortran.dg/block_6.f08: New test.
	* gfortran.dg/block_7.f08: New test.
	* gfortran.dg/block_8.f08: New test.

From-SVN: r152266
2009-09-29 09:42:42 +02:00
Jerry DeLisle
9b13eb8457 re PR libfortran/35862 ([F2003] Implement new rounding modes for run time)
2009-09-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/35862
	* gfortran.dg/round_1.f03: New test.
	* gfortran.dg/f2003_io_3.f03: Update test.

From-SVN: r152264
2009-09-29 02:50:48 +00:00
Jerry DeLisle
379924dd59 re PR libfortran/35862 ([F2003] Implement new rounding modes for run time)
2009-09-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/35862
	* io.h (gfc_unit): Add round_status.
	(format_token): Add enumerators for rounding format specifiers.
	* transfer.c (round_opt): New options table.
	(formatted_transfer_scalar_read): Add set round_status for each rounding
	format token. (formatted_transfer_scalar_write): Likewise.
	* format.c (format_lex): Tokenize the rounding format specifiers.
	(parse_format_list): Parse the rounding format specifiers.
	* write_float.def (outout_float): Modify rounding code to use new
	variable rchar to set the appropriate rounding. Fix some whitespace.
	* unit.c (get_internal_unit): Initialize rounding mode for internal
	units. (init_units): Likewise.

From-SVN: r152263
2009-09-29 02:47:54 +00:00
Jerry DeLisle
f2a71504e0 re PR libfortran/35862 ([F2003] Implement new rounding modes for run time)
2009-09-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/35862
	* io.c (format_token): Add enumerators for rounding format specifiers.
	(format_lex): Tokenize the rounding format specifiers.
	(gfc_match_open): Enable rounding modes in OPEN statement.

From-SVN: r152262
2009-09-29 02:44:38 +00:00
GCC Administrator
cb1049f9c1 Daily bump.
From-SVN: r152261
2009-09-29 00:16:47 +00:00
Benjamin Kosnik
bbcfe54a2d eh_terminate.cc: Fixes for -fno-exceptions.
2009-09-28  Benjamin Kosnik  <bkoz@redhat.com>

	*  libsupc++/eh_terminate.cc: Fixes for -fno-exceptions.
	*  libsupc++/vec.cc: Same.
	*  libsupc++/vterminate.cc: Same.
	*  libsupc++/new_opnt.cc: Same.

From-SVN: r152258
2009-09-29 00:15:30 +00:00
Sriraman Tallam
b80b0fd9c7 tree-pass.h (register_pass_info): New structure.
* tree-pass.h (register_pass_info): New structure.	
	(pass_positioning_ops): Move enum from gcc-plugin.h.
	(register_pass): New function.
	* gcc-plugin.h (plugin_pass): Delete structure.
	(pass_positioning_ops): Delete enum.
	* plugin.c (regsiter_pass): Delete function.
	(position_pass): Delete function.
	(added_pass_nodes): Delete variable.
	(prev_added_pass_nodes): Delete variable.
	(pass_list_node): Delete structure.
	* passes.c (make_pass_instance): New function.
	(next_pass_1): Change to call make_pass_instance.
	(pass_list_node): Move structure from gcc-plugin.h.
	(added_pass_nodes): Move variable from plugin.c.
	(prev_added_pass_nodes): Move variable from plugin.c.
	(position_pass): New function.
	(register_pass): New function.

From-SVN: r152257
2009-09-28 23:15:35 +00:00
Kai Tietz
ef6ed66d16 win64.S (_ffi_call_win64 stack): Remove for gnu assembly version use of ___chkstk.
2009-09-28  Kai Tietz  <kai.tietz@onevision.com>

        * src/x86/win64.S (_ffi_call_win64 stack): Remove for gnu
        assembly version use of ___chkstk.

From-SVN: r152256
2009-09-29 00:26:25 +02:00
Olivier Hainque
8244fa3974 Add PR reference to ChangeLog entry.
From-SVN: r152254
2009-09-28 21:53:28 +00:00
Easwaran Raman
650260479a ifcvt.c (noce_try_abs): Recognize pattern and call expand_one_cmpl_abs_nojump.
./:	* ifcvt.c (noce_try_abs): Recognize pattern and call
	expand_one_cmpl_abs_nojump.
	* optabs.c (expand_one_cmpl_abs_nojump): New function.
	* optabs.h (expand_one_cmpl_abs_nojump): Declare.
testsuite/:
	* gcc.target/i386/ifcvt-onecmpl-abs-1.c: New file.
	* gcc.c-torture/execute/ifcvt-onecmpl-abs-1.c: New file.

From-SVN: r152253
2009-09-28 21:26:31 +00:00
Ian Lance Taylor
13ebf17b66 re PR middle-end/40500 (Revision 148512 failed to build binutils)
PR middle-end/40500
	* c-opts.c (c_common_handle_option): Don't set
	warn_jump_misses_init for -Wall.
	* doc/invoke.texi (Warning Options): Update documentation.

From-SVN: r152252
2009-09-28 21:23:35 +00:00
Ralf Wildenhues
2bc9806603 Fix dependency of out_object_file on gt header for out_file.
gcc/:
	* Makefile.in ($(out_object_file)): Depend on
	gt-$(basename $(notdir $(out_file))).h.

From-SVN: r152249
2009-09-28 20:22:56 +00:00
Janis Johnson
8387984e98 dfp.exp: Run tests from c-c++-common/dfp.
* g++.dg/dfp/dfp.exp: Run tests from c-c++-common/dfp.
	* c-c++-common/dfp/func-vararg-alternate-d32.c: XFAIL for C++.
	* c-c++-common/dfp/func-vararg-dfp.c: Ditto.
	* c-c++-common/dfp/func-vararg-mixed.c: Ditto.
	* c-c++-common/dfp/func-vararg-mixed-2.c: Ditto.

From-SVN: r152247
2009-09-28 18:35:54 +00:00
Janis Johnson
425a180d82 * g++.dg/dfp/dfp.exp: Fix typo.
From-SVN: r152246
2009-09-28 17:46:44 +00:00
Janis Johnson
efc7a2a5fc target-supports.exp (check-effective-target-dfp-nocache): Fix typo that breaks the check.
* lib/target-supports.exp (check-effective-target-dfp-nocache):
	Fix typo that breaks the check.

From-SVN: r152245
2009-09-28 17:45:09 +00:00
Olivier Hainque
2d3a1837bc ada/
* gcc-interface/targtyps.c
        * (get_target_default_allocator_alignment):
        Account for observable alignments out of default allocators.

        testsuite/
        * gnat.dg (tagged_alloc_free.adb): New testcase.

From-SVN: r152243
2009-09-28 17:00:46 +00:00
Janis Johnson
d366d023cb mangle.c (write_builtin_type): Support decimal float types.
* mangle.c (write_builtin_type): Support decimal float types.
	* g++.dg/dfp: New directory.
	* g++.dg/dg.exp: Prune tests in dfp directory.
	* g++.dg/dfp/dfp/exp: New.
	* g++.dg/dfp/mangle-mode.C: New test.

From-SVN: r152242
2009-09-28 16:55:52 +00:00
Richard Henderson
384c400a82 except.h (struct eh_region_d): Add use_cxa_end_cleanup.
* except.h (struct eh_region_d): Add use_cxa_end_cleanup.
	* except.c (gen_eh_region): Set it.
	(duplicate_eh_regions_1): Copy it.
	* tree-eh.c (lower_resx): Use it to determine which function
	to call to resume.

	* langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
	* langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.

	* builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
	* tree.c (build_common_builtin_nodes): Remove parameter.  Build
	BUILT_IN_CXA_END_CLEANUP if necessary.
	* tree.h (build_common_builtin_nodes): Update decl.

	* c-common.c (c_define_builtins): Update call to
	build_common_builtin_nodes.

gcc/ada/
	* gcc-interface/utils.c (gnat_install_builtins): Update call to
	build_common_builtin_nodes.

gcc/cp/
	* cp-objcp-common.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.

gcc/fortran/
	* f95-lang.c (gfc_init_builtin_functions): Update call to
	build_common_builtin_nodes.

gcc/java/
	* builtins.c (initialize_builtins): Update call to
	build_common_builtin_nodes.
	* lang.c (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.

From-SVN: r152241
2009-09-28 09:44:32 -07:00
Andrew Pinski
aa633255e7 spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
        
        * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.

From-SVN: r152239
2009-09-28 08:49:47 -07:00
Michael Matz
44e10129de builtins.c (interclass_mathfn_icode): New helper.
* builtins.c (interclass_mathfn_icode): New helper.
	(expand_builtin_interclass_mathfn): Use it here, and split folding
	into ...
	(fold_builtin_interclass_mathfn): ... this new folder.
	(build_call_nofold_loc): New static helper.
	(build_call_nofold): New wrapper macro for above.
	(expand_builtin_int_roundingfn): Use it instead of build_call_expr.
	(expand_builtin_pow): Ditto.
	(expand_builtin_memset_args): Ditto.
	(expand_builtin_printf): Ditto.
	(expand_builtin_fprintf): Ditto.
	(expand_builtin_sprintf): Ditto.
	(expand_builtin_memory_chk): Ditto.
	(expand_builtin_mempcpy_args): Ditto and don't call folders.
	(expand_builtin_stpcpy): Ditto.
	(expand_builtin_strcmp): Ditto.
	(expand_builtin_strncmp): Ditto.
	(expand_builtin_strcpy): Remove FNDECL and MODE arguments.
	(expand_builtin_strcpy_args): Don't call folders.
	(expand_builtin_memcmp): Ditto.
	(expand_builtin_strncpy): Ditto, and use target.
	(expand_builtin_memcpy): Ditto.
	(expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
	expand_builtin_strpbrk, expand_builtin_memmove,
	expand_builtin_memmove_args, expand_builtin_bcopy,
	expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
	expand_builtin_strspn, expand_builtin_strcspn,
	expand_builtin_fputs): Remove these.
	(expand_builtin): Don't call the above, change calls to other
	expanders that changed prototype.
	(fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
	(fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
	fold_builtin_interclass_mathfn.
	(fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
	(fold_builtin_strcat): Add folding split from expand_builtin_strcat.

	* fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
	* passes.c (init_optimization_passes): Move pass_fold_builtins
	after last phiopt pass.
	* tree-inline.c (fold_marked_statements): When folding builtins
	iterate over all instruction potentially generated.
	* tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
	earlier.
	(fold_gimple_call): Use it to always fold calls (into potentially
	multiple instructions).
	* tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
	calls into zero at this time.
	* tree-ssa-propagate.c (substitute_and_fold): Ignore multiple 
	statements generated by builtin folding.

testsuite/
	* gcc.dg/builtins-44.c: Use __builtin_isinf_sign when checking
	for sign of -Inf.

From-SVN: r152236
2009-09-28 12:54:23 +00:00
Nick Clifton
d813aaba52 m32r.c (m32r_is_insn): Return false for debugging insns.
* config/m32r/m32r.c (m32r_is_insn): Return false for debugging
        insns.

From-SVN: r152235
2009-09-28 12:15:42 +00:00
Johannes Singler
b112ce96c0 for_each_selectors.h: Remove obsolete comment.
2009-09-28  Johannes Singler  <singler@ira.uka.de>

        * include/parallel/for_each_selectors.h:  Remove obsolete comment.

From-SVN: r152234
2009-09-28 12:11:28 +00:00
Duncan Sands
1d7d659d49 Correct off-by-one error in changelog date.
From-SVN: r152233
2009-09-28 08:53:18 +00:00
Duncan Sands
32c9b4e924 Add support for using ggc cache tables from plugins.
Approved by Ian Lance Taylor.

From-SVN: r152232
2009-09-28 08:50:39 +00:00
GCC Administrator
bd77e02dac Daily bump.
From-SVN: r152230
2009-09-28 00:17:09 +00:00
Richard Henderson
ff9d1adc12 tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under which we remove __builtin_stack_restore.
* tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
        which we remove __builtin_stack_restore.

From-SVN: r152227
2009-09-27 16:22:28 -07:00
Bernd Schmidt
cdf1bf8bb3 loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P, to test for GRD_INVARIANT.
* loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
	to test for GRD_INVARIANT.
	(simple_rhs_p): Anything that's function_invariant_p is fine.

From-SVN: r152226
2009-09-27 16:56:57 +00:00
Rafael Espindola
ee5fe537e8 Remove some lines emacs decided to include.
From-SVN: r152225
2009-09-27 16:27:25 +00:00
Rafael Espindola
ea2ca63363 Fix "merge" problem in the previous patch.
2009-09-27  Rafael Avila de Espindola  <espindola@google.com>

	* gengtype.c (main): Use plunge_files instead of plugin_output.

From-SVN: r152224
2009-09-27 16:25:04 +00:00
Basile Starynkevitch
99be708401 gengtype.c (write_root, [...]): Add a emit_pch argument.
2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
	    Rafael Avila de Espindola  <espindola@google.com>

	* gengtype.c (write_root, write_roots): Add a emit_pch argument.
	Don't print pch related info if it is false.
	(main): Don't print pch info in plugin mode.


Co-Authored-By: Rafael Avila de Espindola <espindola@google.com>

From-SVN: r152223
2009-09-27 16:15:25 +00:00
Eric Botcazou
4c0ce3c92a dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long with dw_val_class_const_double.
* dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
	with dw_val_class_const_double.
	(struct dw_val_struct): Replace val_long_long with val_double and
	adjust for above change.
	(output_loc_operands): Likewise.
	(add_AT_long_long): Rename into...
	(add_AT_double): ...this.
	(print_die): Replace dw_val_class_long_long with
	dw_val_class_const_double and adjust.
	(attr_checksum): Likewise.
	(same_dw_val_p): Likewise.
	(size_of_die): Likewise.
	(value_format): Likewise.
	(output_die): Likewise.
	(loc_descriptor) <CONST_DOUBLE>: Likewise.
	(add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
	instead of add_AT_long_long.
	(add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
	value with the precision of its type.

From-SVN: r152222
2009-09-27 16:05:15 +00:00
Andreas Schwab
afbd066581 re PR c/41476 (__typeof__ expands to const type for function types)
PR c/41476
	* c-typeck.c (build_conditional_expr): Use the readonly and
	volatile flags of the operand types, not of the operands itself.

testsuite/:
	* gcc.dg/cond-constqual-1.c: New test.

From-SVN: r152220
2009-09-27 15:27:08 +00:00
Peter O'Gorman
88febe3519 collect2.c (main): Look for -brtl before adding libraries.
From-SVN: r152219
2009-09-27 15:19:59 +00:00
Jonathan Gray
aa58f943d8 config.gcc: Update OpenBSD targets.
* config.gcc: Update OpenBSD targets.
	* config/openbsd-stdint.h: New file.
	* config/openbsd-libpthread.h: New file.
	* config/openbsd.h: Update and break out LIB_SPEC definition.
	* config/alpha/openbsd.h: Overhaul to reflect ELF migration.
	* config/i386/openbsdelf.h: Correct types.
	* config/m68k/openbsd.h: Likewise.
	* config/mips/openbsd.h: Likewise.
	* config/vax/openbsd.h: Likewise.

From-SVN: r152218
2009-09-27 13:20:23 +00:00