Commit Graph

77781 Commits

Author SHA1 Message Date
GCC Administrator
d7f3a4ed79 Daily bump.
From-SVN: r124263
2007-04-28 23:17:10 +00:00
GCC Administrator
2c9cc47bfc Daily bump.
From-SVN: r124245
2007-04-27 23:16:50 +00:00
Anatoly Sokolov
10655e669d avr.c (avr_mcu_types): Add support for ATmega8HVA and ATmega16HVA devices.
* config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and 
	ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
	* config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
	* config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).

From-SVN: r124239
2007-04-28 00:53:57 +04:00
Ian Lance Taylor
2e0bf5de87 re PR middle-end/31710 (ICE in in set_value_range, at tree-vrp.c:278)
./:	PR middle-end/31710
	* tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
	TYPE_MAX_VALUE exist, convert them to the new type.
testsuite/:
	PR middle-end/31710
	* gcc.c-torture/compile/pr31710.c: New test.

From-SVN: r124238
2007-04-27 20:48:55 +00:00
Brooks Moses
eaf8ebdea7 * intrinsic.texi (Transfer): Improve documentation.
From-SVN: r124233
2007-04-27 13:14:31 -07:00
Brooks Moses
251384ceeb gfortran.texi (Option Index): Add @samp as needed.
* gfortran.texi (Option Index): Add @samp as needed.
* invoke.texi: Removed extraneous line.
(-fshort-enums): Fixed intexing.

From-SVN: r124231
2007-04-27 12:34:08 -07:00
Daniel Franke
cecaff8eb9 backport: intrinsic.texi (NULL, [...]): New.
2007-04-27  Daniel Franke  <franke.daniel@gmail.com>

	Backport from trunk:
	* intrinsic.texi (NULL, PACK, PRESENT, REPEAT, SCAN, SHAPE, 
	SIZE, TRANSPOSE, TRIM, VERIFY): New.
	(ADJUSTL, ADJUSTR, INDEX): Added cross references.
	(INT, INT2, INT8, LONG): Enabled section header.

	* intrinsic.texi (PRODUCT, RESHAPE, SPACING, SPREAD, SUM, 
	SYSTEM_CLOCK, TRANSFER, UNPACK): New.
	(DATE_AND_TIME, CPU_TIME, RRSPACING): Added cross references.

	* intrinsic.texi (AND, FPUT, FPUTC, MODULO, OR, SET_EXPONENT,
	XOR): Fixed examples.

	* gfortran.texi: Added node and menu entry for an option index.
	* invoke.texi: Moved command line option related entries of the
	concept index to the option index.

From-SVN: r124225
2007-04-27 13:26:12 -04:00
Ian Lance Taylor
19ea458ac0 re PR target/28675 (ICE in extract_insn, at recog.c:2084 (unrecognizable insn) [arm])
./:	PR target/28675
	* reload.c (find_reloads_subreg_address): If the address was valid
	in the original mode but not in the new mode, reload the whole
	address.
testsuite/:
	PR target/28675
	* gcc.c-torture/compile/pr28675.c: New test.

From-SVN: r124212
2007-04-27 04:20:02 +00:00
Andrew Pinski
4a13c3cd6d re PR c++/30016 (internal compiler error: in convert_move, at expr.c:362)
2007-04-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C++/30016
        * typeck.c (build_reinterpret_cast_1): Only allow conversion to
        integeral types from vectors types.

2007-04-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C++/30016
        * g++.dg/ext/vector6.C: New test.

From-SVN: r124209
2007-04-26 18:37:02 -07:00
GCC Administrator
d0e4014640 Daily bump.
From-SVN: r124205
2007-04-26 23:16:52 +00:00
Ulrich Weigand
8e0cd7a52c re PR middle-end/30761 (Error: unsupported relocation against sfp)
PR middle-end/30761
	* reload1.c (eliminate_regs_in_insn): In the single_set special
	case, attempt to re-recognize the insn before falling back to
	having reload fix it up.

From-SVN: r124199
2007-04-26 21:10:09 +00:00
Richard Guenther
b614885101 re PR tree-optimization/30567 (-O3 optimizer bug)
2007-04-26  Richard Guenther  <rguenther@suse.de>
	Daniel Berlin  <dberlin@dberlin.org>

	PR tree-optimization/30567
	* tree-ssa-structalias.c (update_alias_info): Record dereference
	also if ESCAPE_STORED_IN_GLOBAL.

	* g++.dg/other/pr30567.C: New testcase.

Co-Authored-By: Daniel Berlin <dberlin@dberlin.org>

From-SVN: r124184
2007-04-26 11:15:16 +00:00
Jakub Jelinek
34ac0de0ed re PR c++/31598 (g++ does not accept some OpenMP code)
PR c++/31598
	* tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.

	* semantics.c (finish_omp_clauses): Don't create CP_OMP_CLAUSE_INFO
	for type dependent OMP_CLAUSE_DECLs.

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

From-SVN: r124180
2007-04-26 09:39:25 +02:00
Jakub Jelinek
6c99e6de8a re PR tree-optimization/30558 (ICE with OpenMP and exceptions)
PR tree-optimization/30558
	* tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
	clear this_state.prev_try.

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

From-SVN: r124179
2007-04-26 09:35:28 +02:00
GCC Administrator
e337aafb38 Daily bump.
From-SVN: r124167
2007-04-25 23:17:02 +00:00
Anatoly Sokolov
927d5e202f re PR target/18989 (A few potentially ominous, and several likely harmless warnings during 4.0 build)
PR target/18989
 	* config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.

From-SVN: r124159
2007-04-25 22:38:32 +04:00
Andrew Pinski
b6faac20c0 re PR target/30222 (gcc.target/i386/vectorize1.c ICEs)
2007-04-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
            Roger Sayle  <roger@eyesopen.com>

        PR middle-end/30222
        * expmed.c (make_tree): Use the correct type, i.e. the inner
        type, when constructing the individual elements of a CONST_VECTOR.


Co-Authored-By: Roger Sayle <roger@eyesopen.com>

From-SVN: r124140
2007-04-24 22:43:32 -07:00
GCC Administrator
6d0c046263 Daily bump.
From-SVN: r124132
2007-04-24 23:16:52 +00:00
Paolo Carlini
94987f9022 re PR c++/30500 (pragma GCC system_header vs templates)
2007-04-24  Paolo Carlini  <pcarlini@suse.de>

	PR c++/30500
	* pt.c (instantiate_decl): Set in_system_header.

2007-04-24  Paolo Carlini  <pcarlini@suse.de>

	PR c++/30500
	* g++.dg/warn/pragma-system_header3.C: New test.
	* g++.dg/warn/pragma-system_header3.h. New.

From-SVN: r124130
2007-04-24 22:36:53 +00:00
Ian Lance Taylor
b39a98f195 re PR tree-optimization/31605 (VRP eliminates a useful test due with conversion from unsigned int to int)
./ChangeLog:	PR tree-optimization/31605
	* tree-vrp.c (set_value_range): Check that min and max are not
	both overflow infinities.
	(set_value_range_to_value): New static function.
	(extract_range_from_binary_expr): Call set_value_range_to_value.
	(extract_range_from_expr): Likewise.
	(extract_range_from_unary_expr): Likewise.  Don't create a range
	which overflows on both sides.
	(vrp_meet): Check for a useless range.
	(vrp_visit_phi_node): If we see a constant which looks like an
	overflow infinity, turn off the TREE_OVERFLOW flag.
testsuite/ChangeLog:
	PR tree-optimization/31605
	* gcc.c-torture/execute/pr31605.c: New test.

From-SVN: r124129
2007-04-24 22:26:25 +00:00
Ian Lance Taylor
3578c2f331 re PR tree-optimization/31602 (Overflow warning causes GDB -Werror build failure)
PR tree-optimization/31602
	* tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
	conditionals in the copied loop header.
	* tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
	warnings if TREE_NO_WARNING is set.
	* doc/invoke.texi (Warning Options): Clarify that
	-Wstrict-overflow does not warn about loops.

From-SVN: r124127
2007-04-24 21:54:22 +00:00
Andreas Krebbel
16003f7c85 re PR target/31641 (ICE in s390_expand_setmem, at config/s390/s390.c:3618)
2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>

	PR target/31641
	* config/s390/s390.c (s390_expand_setmem): Don't ICE for constant length
	argument of 0 for memset.
	(s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
	unsigned shift instead of the signed variant.

2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>

	PR target/31641
	* gcc.c-torture/compile/pr31641.c: New testcase.

From-SVN: r124101
2007-04-24 12:21:22 +00:00
Daniel Franke
d89c1733ad invoke.texi: Removed leading '-' from option index entries.
2007-04-24  Daniel Franke  <franke.daniel@gmail.com>

       * doc/invoke.texi: Removed leading '-' from option index entries.

From-SVN: r124093
2007-04-23 20:04:26 -04:00
GCC Administrator
d6d3311c00 Daily bump.
From-SVN: r124088
2007-04-23 23:16:48 +00:00
Tom Tromey
bcdb4b71c4 re PR preprocessor/30468 (-M not fully chops dirname)
PR preprocessor/30468:
	* mkdeps.c (apply_vpath): Strip successive '/'s if we stripped
	'./'.

From-SVN: r124068
2007-04-23 14:26:51 +00:00
Andrew Pinski
545c543d01 re PR middle-end/31448 (ICE in expand_shift with bit fields and expand inlining constants)
2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/31448
        * expr.c (reduce_to_bit_field_precision): Handle
        CONST_INT rtx's.

2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/31448
        * gcc.c-torture/execute/pr31448.c: New testcase.

From-SVN: r124055
2007-04-22 18:57:48 -07:00
GCC Administrator
ff851fda75 Daily bump.
From-SVN: r124048
2007-04-22 23:16:42 +00:00
Richard Henderson
c4ffa13be8 re PR target/28623 (ICE in extract_insn, at recog.c:2077 (nrecognizable insn) [alpha])
PR target/28623
        * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
        argument; update all callers.
        (get_unaligned_offset): New.
        * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
        get_unaligned_address, just pass on the address directly.
        (unaligned_extendqidi): Use gen_lowpart instead of open-coding
        the subreg in the helper patterns.
        (unaligned_extendqidi_le): Use get_unaligned_offset.
        (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
        (unaligned_extendhidi_be): Likewise.
        (unaligned_extendhidi): Tidy.
        * config/alpha/alpha-protos.h: Update.

From-SVN: r124034
2007-04-21 18:30:31 -07:00
GCC Administrator
d48815d862 Daily bump.
From-SVN: r124028
2007-04-21 23:16:46 +00:00
Richard Guenther
c1064e6565 re PR tree-optimization/31136 (FRE ignores bit-field truncation (C and C++ front-end don't produce bit-field truncation)
2007-04-21  Richard Guenther  <rguenther@suse.de>

	PR middle-end/31136
	* fold-const.c (fold_unary): Call fold_convert_const on the
	original tree.

	* gcc.c-torture/execute/pr31136.c: New testcase.

From-SVN: r124019
2007-04-21 17:43:57 +00:00
Joseph Myers
497c805a16 * sv.po: Update.
From-SVN: r124017
2007-04-21 13:44:51 +01:00
GCC Administrator
bdcf051416 Daily bump.
From-SVN: r124009
2007-04-20 23:17:01 +00:00
Richard Henderson
6ee3e65a4c configure.ac (alpha*-*-*): Define HAVE_LONG_DOUBLE.
* configure.ac (alpha*-*-*): Define HAVE_LONG_DOUBLE.
        * configure: Regenerate.
        * include/ffi.h.in (ffi_type_longdouble): Define as ffi_type_double
        if HAVE_LONG_DOUBLE is false.
        * src/alpha/ffi.c (ffi_prep_cif_machdep): Support the 128-bit
        long double type.
        (ffi_call_osf, ffi_closure_osf): Likewise.
        * src/alpha/osf.S (ffi_call_osf, ffi_closure_osf): Mark hidden.
        * src/types.c (ffi_type_longdouble): For alpha, always generate
        for the 128-bit long double type.

From-SVN: r124004
2007-04-20 13:35:37 -07:00
Richard Henderson
3e8a9f09b6 * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
From-SVN: r124001
2007-04-20 12:29:02 -07:00
Bernd Schmidt
70f3971ea3 reload.c (combine_reloads): When trying to use a dying register...
* reload.c (combine_reloads): When trying to use a dying register,
	check whether it's uninitialized and don't use if so.

From-SVN: r123995
2007-04-20 12:55:15 +00:00
Jakub Jelinek
fcb8ef7ec9 i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED for __builtin_ia32_cmpordss.
* config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
	for __builtin_ia32_cmpordss.

	* gcc.target/i386/ordcmp-1.c: New test.
	* gcc.target/i386/unordcmp-1.c: New test.

From-SVN: r123991
2007-04-20 13:48:00 +02:00
Jakub Jelinek
90e6ddb5aa re PR tree-optimization/31632 (ICE in compare_values)
PR tree-optimization/31632
	* fold-const.c (fold_binary): Use op0 and op1 instead of arg0
	and arg1 for optimizations of comparison against min/max values.
	Fold arg0 to arg1's type for optimizations of comparison against
	min+1 and max-1 values.

	* gcc.c-torture/compile/20070419-1.c: New test.

From-SVN: r123990
2007-04-20 13:46:06 +02:00
GCC Administrator
25728f70ff Daily bump.
From-SVN: r123982
2007-04-19 23:17:00 +00:00
Eric Botcazou
759a2de39a re PR rtl-optimization/29841 (ICE with scheduling and __builtin_trap)
PR rtl-optimization/29841
	* cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
	trap instructions.
	* sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
	that may cause control flow transfer from being moved.

From-SVN: r123971
2007-04-19 11:19:39 +00:00
GCC Administrator
80d9a7af7d Daily bump.
From-SVN: r123962
2007-04-18 23:16:48 +00:00
Anatoly Sokolov
6a411cd1f9 avr.c (ptrreg_to_str): Replace error() with output_operand_lossage().
* config/avr/avr.c (ptrreg_to_str): Replace error() with
	output_operand_lossage().

From-SVN: r123950
2007-04-18 20:32:44 +04:00
Jerry DeLisle
53dbde5743 re PR fortran/31366 ([4.2 only] Last record truncated for read after short write, direct access file)
2007-04-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/31366
	* gfortran.dg/direct_io_6.f90: New test.

From-SVN: r123941
2007-04-18 04:37:12 +00:00
Jerry DeLisle
89e6efff8a re PR fortran/31366 ([4.2 only] Last record truncated for read after short write, direct access file)
2007-04-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/31366
	* io/transfer.c (read_block_direct): Do not generate error when reading
	past EOF on a short record that is less than the RECL= specified.

From-SVN: r123940
2007-04-18 04:35:41 +00:00
GCC Administrator
395b509269 Daily bump.
From-SVN: r123935
2007-04-17 23:16:42 +00:00
Anatoly Sokolov
be4a8a0845 re PR target/30483 (Internal compiler error with inline volatile assembly on AVR)
PR target/30483
	* config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
	error().

From-SVN: r123927
2007-04-18 00:13:29 +04:00
Simon Martin
5f4a9d838a re PR c++/31517 (ICE on invalid initialization of static member of a template class)
2007-04-17  Simon Martin  <simartin@users.sourceforge.net>

	PR c++/31517
	* pt.c (value_dependent_expression_p): Handle MODOP_EXPRs.

From-SVN: r123925
2007-04-17 19:41:12 +00:00
Jan Hubicka
ca5fadad64 re PR middle-end/30700 (YA bogus undefined reference error to static func with -g and -O)
PR middle-end/30700
	* dwarf2out.c (reference_to_unused): Ask cgraph for functions
	availablility; add more sanity checking; ask varpool only about
	VAR_DECL.

From-SVN: r123922
2007-04-17 18:02:09 +00:00
H.J. Lu
17641f3032 [multiple changes]
2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>

	* Backport from mainline:
	2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
	on "0".
	(sse_vmmulv4sf3): Likewise.
	(sse2_vmaddv2df3): Likewise.
	(sse2_vmmulv2df3): Likewise.

From-SVN: r123921
2007-04-17 10:32:07 -07:00
Mark Mitchell
e53ebec609 re PR c++/31513 (Miscompilation of Function Passing Bit Field Value to Function)
PR c++/31513
	* call.c (convert_for_arg_passing): Convert bitfields to their
	declared types.
	PR c++/31513
	* g++.dg/expr/bitfield8.C: New test.

From-SVN: r123902
2007-04-16 23:28:21 +00:00
GCC Administrator
78676653b2 Daily bump.
From-SVN: r123899
2007-04-16 23:16:39 +00:00