Commit Graph

86087 Commits

Author SHA1 Message Date
Michael Matz
c754abbfbf re PR target/35264 (ntfs-3g miscompiled)
PR target/35264
        * config/i386/i386.c (ix86_expand_branch): Add missing breaks.

        * gcc.dg/pr35264.c: New testcase.

From-SVN: r132521
2008-02-21 12:38:35 +00:00
Uros Bizjak
85845bb942 i386.md (mov<mode>cc): Macroize expander from movsfcc...
* config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
	movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
	as insn constraint.
	* config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
	from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
	SSE_VEC_FLOAT_MODE_P as insn constraint.
	(<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
	(sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
	sse4a_movntdf using MODEF mode iterator.
	(sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
	sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
	(sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
	(sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
	(sse4_1_dpp<ssemodesuffixf2c>): Ditto.
	(sse4_1_roundp<ssemodesuffixf2c>): Ditto.
	(sse4_1_rounds<ssemodesuffixf2c>): Ditto.

From-SVN: r132518
2008-02-21 11:51:19 +01:00
Richard Guenther
dedd42d511 tree.def (PAREN_EXPR): New tree code.
2008-02-21  Richard Guenther  <rguenther@suse.de>

	* tree.def (PAREN_EXPR): New tree code.
	* fold-const.c (fold_unary): Remove PAREN_EXPR around constants
	and PAREN_EXPR.
	* tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
	* expr.c (expand_expr_real_1): Likewise.
	* tree-inline.c (estimate_num_insns_1): Likewise.
	* tree-complex.c (expand_complex_move): Likewise.
	* tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
	as plain x.

	* trans-expr.c (gfc_conv_expr_op): Expand INTRINSIC_PARENTHESES
	as unary PAREN_EXPR for real and complex typed expressions.
	(gfc_conv_unary_op): Fold the built tree.

	* gfortran.dg/reassoc_1.f90: New testcase.
	* gfortran.dg/reassoc_2.f90: Likewise.
	* gfortran.dg/reassoc_3.f90: Likewise.

From-SVN: r132515
2008-02-21 09:38:07 +00:00
Jerry DeLisle
163b0163e6 re PR libfortran/34974 (null bytes when reverse-tabbing long records (regression vs. g77))
2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/34974
	* gfortran.dg/fmt_t_7.f: New test.

	PR libfortran/35132
	* gfortran.dg/streamio_15.f90: New test.

From-SVN: r132513
2008-02-21 02:33:17 +00:00
Jerry DeLisle
e32883d1a2 re PR libfortran/35132 (Formatted stream I/O write should truncate)
2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/35132
	* io/transfer.c (next_record_w): Truncate after the last record for
	STREAM I/O.

	PR libfortran/34954
	* io/transfer.c (data_transfer_init): Initialize dtp->rec if writing.

	PR libfortran/34974
	* io/transfer.c (formatted_transfer_scalar): Flush the buffer if skips
	is less than zero. (next_record_w): Use sseek to position the file to
	the max position reached.

From-SVN: r132512
2008-02-21 02:27:07 +00:00
Jerry DeLisle
d5e0c0ae62 re PR fortran/35036 (illegal E format descriptor produces wrong output)
2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/35036
	* gfortran.dg/fmt_zero_digits.f90: Revise test.

From-SVN: r132511
2008-02-21 02:22:45 +00:00
Jerry DeLisle
50a932e0cb re PR fortran/35036 (illegal E format descriptor produces wrong output)
2008-02-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/35036
	* write_float.def (output_float):  Add error checks for zero digits
	after decimal point in E and D format specifiers.

From-SVN: r132510
2008-02-21 02:20:27 +00:00
GCC Administrator
eac9ed5e34 Daily bump.
From-SVN: r132507
2008-02-21 00:17:40 +00:00
Kaz Kojima
7a3cb3ab14 re PR target/35225 (gcc segfaults when building GTK+ code with -O2 -fPIC for SH4)
PR target/35225
	* config/sh/sh.c (find_barrier): Don't go past 'from' argument.

From-SVN: r132503
2008-02-20 23:37:58 +00:00
Kaz Kojima
6d4d15b84d re PR target/35190 (Wrong branch instruction with -freorder-blocks-and-partition on SH)
PR target/35190
	* config/sh/sh.md (jump_compact): Disable for crossing jumps.

	* config/sh/sh.c (find_barrier): Don't go past
	NOTE_INSN_SWITCH_TEXT_SECTIONS note.

From-SVN: r132502
2008-02-20 23:35:41 +00:00
DJ Delorie
6d4a896759 h8300.md (insv): Force source operand to be a register.
* config/h8300/h8300.md (insv): Force source operand to be a register.
* config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
as a jump, not as a plain insn.

From-SVN: r132498
2008-02-20 16:31:56 -05:00
Seongbae Park
a214518f7f invoke.texi (Warning Options): Add new option -Wframe-larger-than=.
gcc/ChangeLog:

2008-02-20  Seongbae Park <seongbae.park@gmail.com>

	* doc/invoke.texi (Warning Options): Add new option
	-Wframe-larger-than=.
	(-Wframe-larger-than): Document.

	* flags.h (warn_frame_larger_than, frame_larger_than_size):
	Add declarations for new option variables.

	* final.c (final_start_function): Check the frame size
	before emission and issue a Wframe-larger-than warning.

	* opts.c (warn_frame_larger_than, frame_larger_than_size):
	Add definitions for new option variables.
	(common_handle_option): Handle new option OPT_Wframe_larger_than_.

	* common.opt (Wframe-larger-than=): New option.

gcc/testsuite/ChangeLog:

2008-02-20  Seongbae Park <seongbae.park@gmail.com>

	* gcc.dg/Wframe-larger-than.c: New option test.

From-SVN: r132496
2008-02-20 21:19:14 +00:00
Tom Tromey
c8910ef9e2 re PR libgcj/24170 (libjava natFilePosix.cc seems to have a security problem)
PR libgcj/24170:
	* java/io/natFilePosix.cc (File::performList): Don't use
	readdir_r.
	* configure, include/config.h.in: Rebuilt.
	* configure.ac: Don't check for readdir_r.

From-SVN: r132491
2008-02-20 19:09:09 +00:00
Uros Bizjak
993ac7c7ef sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
* config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
        (<sse>_div<mode>3): Ditto.
        (<sse>_vmdiv<mode>3): Ditto.
        (<sse>_vmsqrt<mode>2): Ditto.
        (*smax<mode>3): Ditto.
        (sse5_frcz<mode>2): Ditto.
        (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
        as insn constraint.

From-SVN: r132490
2008-02-20 19:32:14 +01:00
Tobias Burnus
89a5afda0e re PR fortran/34997 (Mention -fdollar-ok option in error message for symbol names containing $)
2008-02-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34997
        * match.c (gfc_match_name): Improve error message for '$'.

2008-02-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34997
        * gfortran.dg/dollar_sym_1.f90: New.
        * gfortran.dg/dollar_sym_2.f90: New.

From-SVN: r132488
2008-02-20 19:21:14 +01:00
Richard Guenther
4cd8e76f1d re PR middle-end/35265 (__builtin_popcount expansion bug)
2008-02-20  Richard Guenther  <rguenther@suse.de>

	PR middle-end/35265
	* builtins.c (validate_arg): If we want an INTEGER_TYPE,
	be happy with INTEGRAL_TYPE_P.

	* gcc.dg/builtins-66.c: New testcase.

From-SVN: r132485
2008-02-20 17:25:52 +00:00
Uros Bizjak
a99c05392b * mh-ppc-darwin (BOOT_CFLAGS): Use +=, not =.
From-SVN: r132483
2008-02-20 16:31:19 +01:00
Uros Bizjak
4b40b2a52d ChangeLog: Whitespace fixes.
* ChangeLog: Whitespace fixes.
	* gcc/ChangeLog: Ditto.
	* config/ChangeLog: Ditto.

From-SVN: r132482
2008-02-20 16:16:16 +01:00
Richard Guenther
41bb1f06d3 fold-const.c (split_tree): Associate floatig-point expressions if flag_associative_math is set.
2008-02-20  Richard Guenther  <rguenther@suse.de>

	* fold-const.c (split_tree): Associate floatig-point expressions
	if flag_associative_math is set.

	* gcc.dg/fold-reassoc-1.c: New testcase.
	* gcc.dg/tree-ssa/recip-3.c: Adjust to not compute d/d.

From-SVN: r132481
2008-02-20 14:14:55 +00:00
Richard Guenther
2dc0f63301 tree.h (fold_real_zero_addition_p): Declare.
2008-02-20  Richard Guenther  <rguenther@suse.de>

	* tree.h (fold_real_zero_addition_p): Declare.
	* fold-const.c (fold_real_zero_addition_p): Export.
	* tree-ssa-reassoc.c (eliminate_using_constants): Also handle
	floating-point operations with zero and one.

	* gcc.dg/tree-ssa/reassoc-13.c: New testcase.

From-SVN: r132480
2008-02-20 14:13:47 +00:00
Paolo Bonzini
1c8bd6a397 re PR bootstrap/32009 (building gcc4-4.3/4.4.0-20070518 failed on OSX 10.3.9)
2008-02-20  Paolo Bonzini  <bonzini@gnu.org>

        PR bootstrap/32009
        PR bootstrap/32161

        * configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Compute here.
        * configure: Regenerate.

        * Makefile.def: Define stage_libcflags for all bootstrap stages.
        * Makefile.tpl (STAGE1_LIBCFLAGS, STAGE2_LIBCFLAGS, STAGE3_LIBCFLAGS,
        STAGE4_LIBCFLAGS): New.
        (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Subst from autoconf, without
        $(SYSROOT_CFLAGS_FOR_TARGET) and $(DEBUG_PREFIX_CFLAGS_FOR_TARGET).
        (BASE_TARGET_EXPORTS): Append them here to C{,XX}FLAGS.
        (EXTRA_TARGET_FLAGS): Append them here to {LIB,}C{,XX}FLAGS.
        (configure-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags
        for target modules.  Don't export LIBCFLAGS.
        (all-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags; pass
        $(BASE_FLAGS_TO_PASS) where [+args+] was passed, and [+args+] after
        the overridden CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
        (invocations of `all'): Replace $(TARGET_FLAGS_TO_PASS) with
        $(EXTRA_TARGET_FLAGS), $(FLAGS_TO_PASS) with $(EXTRA_HOST_FLAGS).
        * Makefile.in: Regenerate.

2008-02-20  Paolo Bonzini  <bonzini@gnu.org>

        PR bootstrap/32009

        * mh-ppc-darwin (BOOT_CFLAGS): Reenable.
		
2008-02-20  Paolo Bonzini  <bonzini@gnu.org>

        * doc/install.texi: Correct references to CFLAGS, replacing them
        with BOOT_CFLAGS.  Document flags used during bootstrap for
        target libraries.

From-SVN: r132479
2008-02-20 14:10:40 +00:00
Uros Bizjak
d6023b50b7 i386.h (SSE_VEC_FLOAT_MODE_P): New define.
* config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
	* config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
	and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
	insn constraint.
	(smin<mode>3): Ditto from similar patterns.
	(smax<mode>3): Ditto.
	(*ieee_smin<mode>3): Ditto.
	(*ieee_smax<mode>3): Ditto.
	* config/i386/sse.md (sse): New mode attribute.
	(mov<mode>): Macroize expander from movv4sf and movv2df using
	SSEMODEF2P mode iterator.
	(<sse>_movnt<mode>): Ditto from similar patterns. Use
	SSE_VEC_FLOAT_MODE_P as insn constraint.
	(storent<mode>): Ditto.
	(storent<mode>): Macroize expander from storentsf and storentdf using
	MODEF mode iterator.
	(neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
	mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
	(abs<mode>2): Ditto from similar patterns.
	(add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
	(sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
	(<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
	(<sse>_vmsqrt<mode>2): Ditto.
	(smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
	(<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
	(smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
	(<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
	(<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
	sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
	mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
	insn constraint.
	(<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
	iterator and SSE_FLOAT_MODE_P as insn constraint.
	(<sse>_ucomi): Ditto from similar patterns.
	(<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
	sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
	SSE_VEC_FLOAT_MODE_P as insn constraint.
	(vcond<mode>): Ditto from similar patterns.
	(and<mode>3, *and<mode>3): Ditto.
	(<sse>_nand<mode>3): Ditto.
	(ior<mode>3, *ior<mode>3): Ditto.
	(xor<mode>3, *xor<mode>3): Ditto.
	(*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
	iterator and SSE_FLOAT_MODE_P as insn constraint.
	(*nand<mode>3): Ditto from similar patterns.
	(*ior<mode>3): Ditto.
	(*xor<mode>3): Ditto.

From-SVN: r132478
2008-02-20 14:21:23 +01:00
Matthias Klose
57a65098f6 Makefile.am ($(TOOLS_ZIP)): Revert part of previous change, Do copy resource files in JAVA_MAINTAINER_MODE only.
2008-02-20  Matthias Klose  <doko@ubuntu.com>

        * tools/Makefile.am ($(TOOLS_ZIP)): Revert part of previous change,
        Do copy resource files in JAVA_MAINTAINER_MODE only.
        * tools/Makefile.in: Regenerate.

From-SVN: r132474
2008-02-20 12:20:18 +00:00
Ira Rosen
76a893cfc4 spu.md (vec_unpacku_hi_v8hi, [...]): Implement.
* config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
	vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
	vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.

From-SVN: r132472
2008-02-20 07:36:47 +00:00
Uros Bizjak
a8971bdb01 struct-layout-1_generate.c (DG_OPTIONS): New define.
* g++.dg/compat/struct-layout-1_generate.c (DG_OPTIONS): New define.
	(switchfiles): Use DG_OPTIONS. Explicitly name arguments in fprintf
	templates to reduce number of passed arguments.

From-SVN: r132471
2008-02-20 08:01:34 +01:00
Kaveh R. Ghazi
c951ae4036 inclhack.def (solaris_math_10): New.
* inclhack.def (solaris_math_10): New.
	* tests/base/iso/math_c99.h: Update.

	* fixincl.x: Regenerate.

From-SVN: r132468
2008-02-20 04:20:59 +00:00
Tom Tromey
2bf41bf05d traditional.c (lex_identifier): Use CPP_HASHNODE.
* traditional.c (lex_identifier): Use CPP_HASHNODE.
	* lex.c (lex_identifier): Use CPP_HASHNODE.
	* include/line-map.h (LINEMAP_POSITION_FOR_COLUMN): Wrap in
	do-while.
	* identifiers.c (alloc_node): Change return type.
	(_cpp_init_hashtable): Don't cast 'alloc_node'.
	(proxy_assertion_broken): New declaration.
	(cpp_forall_identifiers): Move comment.
	* line-map.c (linemap_add): Comment fix.
	(linemap_line_start): Indentation fix.

From-SVN: r132467
2008-02-20 02:16:43 +00:00
H.J. Lu
18ca3965e9 Add missing ChangeLog entry for revision 132455.
From-SVN: r132466
2008-02-19 17:49:08 -08:00
GCC Administrator
0b44224881 Daily bump.
From-SVN: r132461
2008-02-20 00:17:16 +00:00
Jason Merrill
cc85b4c564 re PR c++/34950 (ICE in svn boost math toolkit)
PR c++/34950
        * pt.c (resolve_overloaded_unification): Set processing_template_decl
        while we look for possible bindings.

From-SVN: r132455
2008-02-19 17:53:07 -05:00
Jan Hubicka
daac03177c (tree_bb_level_predictions): Remove variable next mistakely introduced
by previous commit.

From-SVN: r132454
2008-02-19 22:27:01 +00:00
Andreas Tobler
6656fda37b dyn_load.c (GC_dyld_image_add): Remove ifdef clause and use the macro GC_GETSECTBYNAME instead.
2007-02-19  Andreas Tobler  <a.tobler@schweiz.org>

	* dyn_load.c (GC_dyld_image_add): Remove ifdef clause and use the macro
	GC_GETSECTBYNAME instead.
	* include/private/gc_priv.h: Define GC_GETSECTBYNAME according to the
	architecture (Darwin).

From-SVN: r132452
2008-02-19 22:29:26 +01:00
Jan Hubicka
3e4b9ad009 predict.c (predict_paths_leading_to): Rewrite.
* predict.c (predict_paths_leading_to): Rewrite.
	(predict_paths_for_bb): New.
	(tree_bb_level_predictions): Update call of predict_paths_leading_to.

From-SVN: r132450
2008-02-19 21:15:28 +00:00
Ralf Wildenhues
a0e527e319 re PR bootstrap/35218 (build fails on mingw host)
PR bootstrap/35218
* Makefile.in (build_file_translate): New.
(gcc-vers.texi): Use it for translating $(abs_srcdir).
* config.build (build_file_translate): Set to `CMD //c' on MinGW.
* configure.ac (build_file_translate): Substitute it.
* configure: Regenerate.

From-SVN: r132444
2008-02-19 19:38:52 +00:00
Daniel Franke
606c2c03b0 re PR fortran/35030 (add type/kind information to pointer assignments)
2008-02-19  Daniel Franke  <franke.daniel@gmail.com>

	PR fortran/35030
	* expr.c (gfc_check_pointer_assign): Add type and kind information
	to type-mismatch message.
	(gfc_check_assign): Unify error messages.

From-SVN: r132442
2008-02-19 13:26:12 -05:00
Jan Hubicka
9d5cee3d87 re PR rtl-optimization/34408 (Invalid RTL sharing with -fsee and inline functions)
PR rtl-optimization/34408
	* see.c (see_def_extension_not_merged): Copy subreg so we don't have invalid sharing.

From-SVN: r132440
2008-02-19 17:11:12 +00:00
Jan Hubicka
8723e2fedf re PR middle-end/28779 (internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106)
PR middle-end/28779
	* tree-inline.c (estimate_num_insns_1): Fix counting of cost of call_expr.

From-SVN: r132439
2008-02-19 17:09:42 +00:00
H.J. Lu
5ba5440f24 re PR ada/35186 (implicit assumption about alignment of DImode)
2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>

	PR Ada/35186
	* config/i386/i386-modes.def: Revert the last DI alignment
	change until Ada people can look into it.

From-SVN: r132433
2008-02-19 06:35:48 -08:00
Nick Clifton
c01c261df2 * opts.c (print_specific_help): Fix typo in --help text.
From-SVN: r132432
2008-02-19 14:15:36 +00:00
Jakub Jelinek
2e834acbc1 re PR target/35239 (Build failure when host cc is GCC-2.95.3 or earlier)
PR target/35239
	* config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
	32-bit inline asm without asm alternatives for host GCC < 3.0.

From-SVN: r132430
2008-02-19 14:34:29 +01:00
Richard Guenther
9cadd7f795 re PR tree-optimization/34989 (ICE in get_addr_dereference_operands, at tree-ssa-operands.c:1698 with IMA)
2008-02-19  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/34989
	* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
	Allow propagation to INDIRECT_REF if we can simplify only.

	* gcc.dg/pr34989-1.c: New testcase.
	* gcc.dg/pr34989-2.c: Likewise.

From-SVN: r132429
2008-02-19 11:55:29 +00:00
Manuel López-Ibáñez
ffc3017372 c-common.c (warn_for_collisions_1): Use appropriate option when warning.
2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	* c-common.c (warn_for_collisions_1): Use appropriate option when
	warning.

From-SVN: r132428
2008-02-19 10:51:52 +00:00
Nick Clifton
b3eaaf1a50 re PR other/31349 (gcc -v --help returns no options for C, C++)
PR other/31349
        * opts.c (undocumented_msg): Leave blank unless checking is
        enabled.
        (handle_options): Fix indentation.
        (print_filtered_help): If no language-specific options were
        displayed tell the user how to list all the options supported by
        the language's front-end.
        (print_specific_help): Fix indentation and remove duplicate line.
        (common_handle_option): Handle the -v option.
        For --help enable the display of undocumented options if the -v
        switch has been included on the command line.
        For --help= check for overlaps in the arguments between the option
        classes and the language names and issue a warning when they
        cannot be disambiguated.
        * c.opt (v): Pass on to the common option handler.

From-SVN: r132427
2008-02-19 10:33:41 +00:00
Jakub Jelinek
d2ee546fd6 re PR c++/35028 (ICE with strange ctor and firstprivate)
PR c++/35028
	* cp-gimplify.c (cxx_omp_clause_apply_fn): Handle vararg copy ctors.

	* g++.dg/gomp/pr35028.C: New test.

From-SVN: r132426
2008-02-19 11:18:29 +01:00
Jakub Jelinek
edb6000e37 re PR c++/34964 (ICE with broken variable in #pragma omp threadprivate)
PR c++/34964
	PR c++/35244
	* semantics.c (finish_omp_threadprivate): Do nothing for error_operand_p
	vars.  Afterwards ensure v is VAR_DECL.

	* gcc.dg/gomp/pr34964.c: New test.
	* g++.dg/gomp/pr34964.C: New test.
	* gcc.dg/gomp/pr35244.c: New test.
	* g++.dg/gomp/pr35244.C: New test.

From-SVN: r132425
2008-02-19 11:16:29 +01:00
Jakub Jelinek
dadb19e068 re PR c++/35078 (ICE with reference in parallel for loop)
PR c++/35078
	* parser.c (cp_parser_omp_for_loop): If DECL has REFERENCE_TYPE, don't
	call cp_finish_decl.
	* semantics.c (finish_omp_for): Fail if DECL doesn't have integral type
	early.

	* g++.dg/gomp/pr35078.C: New test.

From-SVN: r132424
2008-02-19 11:14:57 +01:00
Revital Eres
de82c45332 SMS: Minor misc fixes
From-SVN: r132423
2008-02-19 09:19:36 +00:00
Christian Bruel
80fa012e02 coding convention
From-SVN: r132418
2008-02-19 09:34:16 +01:00
Christian Bruel
32159434b6 fix alignment bug in packed structs for STRICT_ALIGNMENT targets
Co-Authored-By: Zdenek Dvorak <ook@ucw.cz>

From-SVN: r132416
2008-02-19 08:48:12 +01:00
Christian Bruel
d9484c5ba9 test case for alignment bug in packed structs for STRICT_ALIGNMENT targets
From-SVN: r132415
2008-02-19 08:42:25 +01:00