Jonathan Wakely
57899d2fc5
status_cxx2011.xml: Document <cuchar> and <cstdalign> as missing.
...
* doc/xml/manual/status_cxx2011.xml: Document <cuchar> and
<cstdalign> as missing.
From-SVN: r181045
2011-11-06 22:10:41 +00:00
Janus Weil
eaee02a520
gfortran.h (gfc_extend_expr): Modified prototype.
...
2011-11-06 Janus Weil <janus@gcc.gnu.org>
* gfortran.h (gfc_extend_expr): Modified prototype.
* interface.c (gfc_extend_expr): Return 'match' instead of 'gfc_try'.
Remove argument 'real_error'.
* resolve.c (resolve_operator): Modified call to 'gfc_extend_expr'.
From-SVN: r181044
2011-11-06 22:36:54 +01:00
Paolo Carlini
9965f21f9c
re PR c++/47695 ([C++0X] Calling a deleted function fails twice)
...
2011-11-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/47695
* decl2.c (mark_used): Early return false after error or sorry.
* cp-tree.h (mark_used): Adjust declaration.
* semantics.c (finish_id_expression): Check mark_used return value.
From-SVN: r181042
2011-11-06 21:05:44 +00:00
Jonathan Wakely
f25481f470
faq.xml: Replace references to C++0x with C++11.
...
* doc/xml/faq.xml: Replace references to C++0x with C++11.
* doc/xml/manual/intro.xml: Likewise.
* doc/xml/manual/backwards_compatibility.xml: Likewise.
* doc/xml/manual/shared_ptr.xml: Likewise.
* doc/xml/manual/configure.xml: Likewise.
* doc/xml/manual/evolution.xml: Likewise.
* doc/xml/manual/using.xml: Likewise.
* doc/xml/manual/strings.xml: Likewise.
* doc/xml/manual/debug_mode.xml: Likewise.
* doc/xml/manual/policy_data_structures.xml: Likewise.
* doc/xml/manual/extensions.xml: Likewise.
* doc/xml/manual/diagnostics.xml: Likewise.
* doc/xml/manual/test.xml: Likewise.
* doc/xml/manual/status_cxx200x.xml: Likewise, and rename to...
* doc/xml/manual/status_cxx2011.xml: Here.
* doc/Makefile.am: Rename status_cxx200x.xml.
* doc/Makefile.in: Regenerate.
* doc/html/*: Regenerate.
From-SVN: r181041
2011-11-06 20:15:53 +00:00
Jakub Jelinek
4a7ab00c25
tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove any user labels.
...
* tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
any user labels.
From-SVN: r181040
2011-11-06 20:43:32 +01:00
John David Anglin
5e490f2a35
re PR other/50991 (crtstuff.c:65:23: fatal error: libgcc_tm.h: No such file or directory)
...
PR other/50991
* Makefile.in: Make EXTRA_PARTS depend on libgcc_tm.h instead of
extra-parts.
From-SVN: r181039
2011-11-06 19:24:19 +00:00
John David Anglin
50bbeefb4c
pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
...
* config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
Remove dependence of declaration and target define on definition of
HPUX_LONG_DOUBLE_LIBRARY. Update implementation.
From-SVN: r181038
2011-11-06 19:12:54 +00:00
François Dumont
ba3aa0e6c7
41975.cc: Add tests to check performance with or without cache of hash code and with...
...
2011-11-06 François Dumont <fdumont@gcc.gnu.org>
* testsuite/performance/23_containers/insert_erase/41975.cc: Add
tests to check performance with or without cache of hash code and with
string type that has a costlier hash functor than int type.
From-SVN: r181037
2011-11-06 17:16:00 +00:00
Andrew Macleod
86951993f8
Check in patch/merge from cxx-mem-model Branch
...
From-SVN: r181031
2011-11-06 14:55:48 +00:00
Joern Rennecke
a8a058f652
Remove unwanted svn:executable properties that svn add had decided to add.
...
From-SVN: r181030
2011-11-06 14:43:20 +00:00
Richard Guenther
a7a296abd3
2011-11-6 Richard Guenther <rguenther@suse.de>
...
* ipa-prop.c (ipa_modify_call_arguments): Re-compute
inlinable flag.
From-SVN: r181027
2011-11-06 13:02:15 +00:00
Ira Rosen
f7e531cf98
tree-vectorizer.h (vectorizable_condition): Add argument.
...
* tree-vectorizer.h (vectorizable_condition): Add argument.
* tree-vect-loop.c (vectorizable_reduction): Fail for condition
in SLP. Update calls to vectorizable_condition.
* tree-vect-stmts.c (vect_is_simple_cond): Add basic block info
to the arguments. Pass it to vect_is_simple_use_1.
(vectorizable_condition): Add slp_node to the arguments.
Support vectorization of basic blocks. Fail for reduction in
SLP. Update calls to vect_is_simple_cond and
vect_is_simple_use. Support SLP: call vect_get_slp_defs to get
vector operands.
(vect_analyze_stmt): Update calls to vectorizable_condition.
(vect_transform_stmt): Likewise.
* tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
(vect_get_and_check_slp_defs): Handle COND_EXPR. Allow pattern
def stmts.
(vect_build_slp_tree): Handle COND_EXPR.
(vect_analyze_slp_instance): Push pattern statements to root
node.
(vect_get_constant_vectors): Fix comments. Handle COND_EXPR.
From-SVN: r181026
2011-11-06 09:01:45 +00:00
David S. Miller
79cad86dca
More improvements to sparc VIS vec_init code generation.
...
gcc/
* config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
(zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
(*zero_extend_v8qi_<P:mode>_insn,
*zero_extend_v4hi_<P:mode>_insn): New insns.
* config/sparc/sparc.c (vector_init_move_words,
vector_init_prepare_elts, sparc_expand_vector_init_vis2,
sparc_expand_vector_init_vis1): New functions.
(vector_init_bshuffle): Rewrite to handle more cases and make use
of locs[] array prepared by vector_init_prepare_elts.
(vector_init_fpmerge, vector_init_faligndata): Delete.
(sparc_expand_vector_init): Rewrite using new infrastructure.
gcc/testsuite/
* lib/test-supports.exp
(check_effective_target_ultrasparc_vis2_hw): New proc.
(check_effective_target_ultrasparc_vis3_hw): New proc.
* gcc.target/sparc/vec-init-1.inc: New vector init common code.
* gcc.target/sparc/vec-init-2.inc: Likewise.
* gcc.target/sparc/vec-init-3.inc: Likewise.
* gcc.target/sparc/vec-init-1-vis1.c: New test.
* gcc.target/sparc/vec-init-1-vis2.c: New test.
* gcc.target/sparc/vec-init-1-vis3.c: New test.
* gcc.target/sparc/vec-init-2-vis1.c: New test.
* gcc.target/sparc/vec-init-2-vis2.c: New test.
* gcc.target/sparc/vec-init-2-vis3.c: New test.
* gcc.target/sparc/vec-init-3-vis1.c: New test.
* gcc.target/sparc/vec-init-3-vis2.c: New test.
* gcc.target/sparc/vec-init-3-vis3.c: New test.
From-SVN: r181024
2011-11-05 19:39:03 -07:00
Jonathan Wakely
e940f96ffc
* doc/xml/manual/test.xml: Fix dg-warning examples.
...
From-SVN: r181023
2011-11-06 00:51:17 +00:00
Jonathan Wakely
7c09269050
re PR libstdc++/44436 ([C++0x] Implement emplace* in associative containers)
...
PR libstdc++/44436
* doc/xml/manual/status_cxx200x.xml: Document emplace members are
missing.
From-SVN: r181022
2011-11-06 00:29:36 +00:00
GCC Administrator
0d70aaa72e
Daily bump.
...
From-SVN: r181021
2011-11-06 00:18:23 +00:00
Jason Merrill
90dba8f44e
* decl.c (cp_finish_decl): Mostly revert previous change.
...
From-SVN: r181017
2011-11-05 17:06:34 -04:00
Joern Rennecke
feeeff5cfe
config.gcc (epiphany-*-*): New architecture.
...
gcc:
* config.gcc (epiphany-*-*): New architecture.
(epiphany-*-elf): New configuration.
* config/epiphany, common/config/epiphany : New directories.
* doc/extend.texi (disinterrupt attribute): Add Epiphany.
(interrupt attribute): Add Epiphany.
(long_call, short_call attribute): Add Epiphany.
* doc/invoke.texi (Options): Add Epiphany options.
* doc/md.texi (Machine Constraints): Add Epiphany constraints.
* doc/install.texi (Options specification):
Add --with-stack-offset=@var{num} description.
(host/target specific issues): Add epiphany-*-elf.
* doc/contrib.texi (Contributors): Mention Epiphany port.
gcc/testsuite:
* gcc.c-torture/execute/ieee/mul-subnormal-single-1.x:
Disable test on Epiphany.
* gcc.c-torture/execute/20101011-1.c: Disable test on Epiphany.
* gcc.dg/stack-usage-1.c [__epiphany__] (SIZE): Define.
* gcc.dg/pragma-pack-3.c: Disable test on Epiphany.
* g++.dg/parse/pragma3.C: Likewise.
* stackalign/builtin-apply-2.c (STACK_ARGUMENTS_SIZE): Define.
(bar): Use it.
* gcc.dg/weak/typeof-2.c [epiphany-*-*]: Add option -mshort-calls.
* gcc.dg/tls/thr-cse-1.c: Likewise.
* g++.dg/opt/devirt2.C: Likewise.
* gcc.dg/20020312-2.c [epiphany-*-*] (PIC_REG): Define.
* gcc.dg/builtin-apply2.c [__epiphany__]: (STACK_ARGUMENTS_SIZE): 20.
* gcc.target/epiphany: New directory.
libgcc:
* config.host (epiphany-*-elf*): New configuration.
* config/epiphany: New Directory.
contrib:
* contrib-list.mk: Add Epiphany configurations.
From-SVN: r181016
2011-11-05 20:48:23 +00:00
Tobias Burnus
12ca92d4f0
quad_2.f90: New.
...
2011-11-05 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/quad_2.f90: New.
From-SVN: r181015
2011-11-05 21:43:44 +01:00
Jakub Jelinek
5619e52cfb
re PR tree-optimization/50693 (Loop optimization restricted by GOTOs)
...
PR tree-optimization/50693
* tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
non-forced user labels.
(gimple_merge_blocks): Turn non-forced user labels into
debug bind stmt with the label as first operand and reset value.
(gimple_duplicate_bb): Don't duplicate label debug stmts.
* dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
* final.c (final_scan_insn): Likewise.
(rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
* var-tracking.c (debug_label_num): New variable.
(delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
* cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
NOTE_INSN_DELETED_DEBUG_LABEL.
(duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
* insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
* print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
* gengtype.c (adjust_field_rtx_def): Likewise.
* config/i386/i386.c (ix86_output_function_epilogue): For MachO
clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
if their are at the end of function and nop hasn't been emitted.
* config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
From-SVN: r181014
2011-11-05 20:58:37 +01:00
Jonathan Wakely
eed33268ff
re PR libstdc++/49894 ([C++0x] Uniform initialization in constructor)
...
PR libstdc++/49894
PR bootstrap/50982
* include/std/mutex (once_flag): Use NSDMI.
From-SVN: r181013
2011-11-05 13:33:29 +00:00
Georg-Johann Lay
267e970765
Fix typo in entry for r180962.
...
From-SVN: r181012
2011-11-05 13:15:57 +00:00
Georg-Johann Lay
8eee318f0a
re PR rtl-optimization/50448 (Missed optimization accessing struct component with integer address)
...
PR rtl-optimization/50448
* cprop.c (try_replace_reg): Also try to replace uses of FROM that
appear in SET_DEST.
From-SVN: r181011
2011-11-05 13:08:54 +00:00
Eric Botcazou
69e596afa4
Tweak previous commit
...
From-SVN: r181010
2011-11-05 11:30:23 +00:00
Eric Botcazou
42cbaf8361
strlenopt-22g.c: New wrapper around...
...
* gcc.dg/strlenopt-22g.c: New wrapper around...
* gcc.dg/strlenopt-22.c: ...this. Do not define USE_GNU and adjust.
From-SVN: r181009
2011-11-05 10:44:45 +00:00
Ralf Corsepius
08f2c4dba0
Fix malformated ChangeLog entries.
...
From-SVN: r181007
2011-11-05 07:25:16 +01:00
Peter Dufault
da103f5aaf
rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Extend rs6000_spe handling.
...
2011-11-05 Peter Dufault <dufault@hda.com>,
Sebastian Huber <sebastian.huber@embedded-brains.de>
* config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
Extend rs6000_spe handling.
Co-Authored-By: Sebastian Huber <sebastian.huber@embedded-brains.de>
From-SVN: r181006
2011-11-05 07:18:08 +01:00
Ralf Corsepius
bce15ee846
t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
...
2011-11-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
Remove -mcpu=601 multilib.
Remove -Dmpc8260 multilib.
* config/rs6000/rtems.h: Allow --float-gprs=... to override grps
on E500 targets.
From-SVN: r181005
2011-11-05 07:09:09 +01:00
Ralf Corsepius
d618bb2c86
config.host (avr-*-rtems*): Add config/avr/t-rtems.
...
2011-11-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* config.host (avr-*-rtems*): Add config/avr/t-rtems.
* config/avr/t-rtems: New.
Filter out _exit from LIB1ASMFUNCS.
From-SVN: r181003
2011-11-05 05:45:12 +01:00
Jason Merrill
e2df21bfc6
re PR c++/26714 (violation of [class.temporary]/5)
...
PR c++/26714
* init.c (perform_member_init): Strip TARGET_EXPR around NSDMI.
Do temporary lifetime extension.
From-SVN: r181002
2011-11-04 23:28:14 -04:00
Jason Merrill
8dc1dc7975
re PR c++/48370 (G++ fails to extend reference temporary lifetime in some situations)
...
PR c++/48370
* decl.c (cp_finish_decl): Run cleanups in the right order.
From-SVN: r181001
2011-11-04 23:28:05 -04:00
David S. Miller
1bb6f77823
Tweak libgcc configure test for 64-bit.
...
libgcc/
* configure.ac: Test for 64-bit addresses on !x86 using __LP64__.
* configure: Rebuild.
From-SVN: r181000
2011-11-04 19:46:21 -07:00
Quentin Neill
87ca01b7be
Piledriver f16cintrin.h fix.
...
2011-11-04 Quentin Neill <quentin.neill@amd.com>
Piledriver f16cintrin.h fix.
* config/i386/f16cintrin.h: Contents moved from immintrin.h.
* config/config.gcc: Add f16cintrin.h.
From-SVN: r180999
2011-11-05 02:31:29 +00:00
GCC Administrator
a73c1a724d
Daily bump.
...
From-SVN: r180996
2011-11-05 00:18:34 +00:00
Ian Lance Taylor
95ac3b7ad0
Fix select { case v, ok := <-c: }.
...
From-SVN: r180992
2011-11-04 23:03:37 +00:00
Eric Botcazou
cf9e9959d1
re PR c++/50608 (cannot apply 'offsetof' to a non-constant address)
...
2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
PR c++/50608
* c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
to fold_offsetof.
* c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
c-family/
* c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
(fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
<INDIRECT_REF>: Return the argument.
<ARRAY_REF>: Remove special code for negative offset.
Call fold_build_pointer_plus instead of size_binop.
(fold_offsetof): Remove STOP_REF argument and adjust.
* c-common.h (fold_offsetof_1): Declare.
(fold_offsetof): Remove STOP_REF argument.
cp/
* semantics.c (finish_offsetof): Adjust call to fold_offsetof.
* typeck.c (cp_build_addr_expr_1): Call fold_offsetof_1.
From-SVN: r180986
2011-11-04 21:46:07 +00:00
Alan Modra
c62c54419c
reload1.c (gen_reload): Don't use REGNO on SUBREGs.
...
* reload1.c (gen_reload): Don't use REGNO on SUBREGs.
* print-rtl.c (print_rtx): Don't segfault on negative regno.
From-SVN: r180983
2011-11-05 07:35:46 +10:30
David S. Miller
7a83e5bc55
Fix sparc regression due to recent movcc pattern changes.
...
PR target/49965
* config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
fact that sparc_emit_float_lib_cmp modifies the comparison in
operands[1].
From-SVN: r180982
2011-11-04 13:25:59 -07:00
Benjamin Kosnik
801fe0bb11
run_doxygen: Fix sed quoting.
...
2011-11-04 Benjamin Kosnik <bkoz@redhat.com>
* scripts/run_doxygen: Fix sed quoting.
From-SVN: r180978
2011-11-04 19:39:23 +00:00
Andreas Krebbel
9a7f74222c
t-crtstuff: Add -fPIC to CRTSTUFF_T_CFLAGS_S variable.
...
2011-11-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/t-crtstuff: Add -fPIC to CRTSTUFF_T_CFLAGS_S
variable.
From-SVN: r180976
2011-11-04 19:05:36 +00:00
Ralf Corsepius
4ce7e3a98e
config.gcc (bfin*-rtems*): Add newlib-stdint.h.
...
2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* config.gcc (bfin*-rtems*): Add newlib-stdint.h.
* config.gcc (lm32*-rtems*): Add newlib-stdint.h.
From-SVN: r180974
2011-11-04 19:16:31 +01:00
Hans-Peter Nilsson
e03af9c4b7
gcc-dg.exp (gcc_force_conventional_output): New global variable, default empty, -ffat-lto-objects for effective_target_lto.
...
* lib/gcc-dg.exp (gcc_force_conventional_output): New global
variable, default empty, -ffat-lto-objects for effective_target_lto.
(gcc-dg-test-1): Add options from dg-final methods.
* lib/scanasm.exp (scan-assembler_required_options)
(scan-assembler-not_required_options): New procs.
From-SVN: r180972
2011-11-04 18:06:43 +00:00
Paolo Carlini
d269f788e8
typeck.c (build_indirect_ref): Use ATTRIBUTE_UNUSED.
...
2011-11-04 Paolo Carlini <paolo.carlini@oracle.com>
* typeck.c (build_indirect_ref): Use ATTRIBUTE_UNUSED.
* mangle.c (write_unnamed_type_name): Likewise.
From-SVN: r180970
2011-11-04 17:51:20 +00:00
Magnus Fromreide
669cc68c37
parser.c (cp_parser_enumerator_list): Do not warn about trailing commas in C++0x mode.
...
* parser.c (cp_parser_enumerator_list): Do not warn about
trailing commas in C++0x mode.
From-SVN: r180967
2011-11-04 13:38:16 -04:00
Eric Botcazou
a5c037e263
re PR target/50979 (architecture mismatch: "mul32" not enabled for "smul" or "umul")
...
PR target/50979
* config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
From-SVN: r180966
2011-11-04 17:37:03 +00:00
Olivier Goffart
ec3ebf4556
re PR c++/50965 (C++11 Non static member initializer are not run when class is initialized with {})
...
PR c++/50965
* class.c (check_field_decls): NSDMI makes a class non-aggregate.
Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r180965
2011-11-04 13:15:02 -04:00
Jiangning Liu
e98925f693
re PR rtl-optimization/38644 (Optimization flag -O1 -fschedule-insns2 causes wrong code)
...
2011-11-04 Jiangning Liu <jiangning.liu@arm.com>
PR rtl-optimization/38644
* config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
for epilogue having stack adjustment.
testcase:
* gcc.target/arm/stack-red-zone.c: New.
From-SVN: r180964
2011-11-04 16:50:04 +00:00
Paolo Carlini
92b4d64cd4
re PR c++/48420 (Missed -Wconversion-null warning when passing const bool to T*)
...
/cp
2011-11-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/48420
* call.c (conversion_null_warnings): For 'false' to NULL pointer,
just check that TREE_TYPE (expr) is a BOOLEAN_TYPE.
/testsuite
2011-11-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/48420
* g++.dg/warn/Wconversion-null-3.C: New.
From-SVN: r180963
2011-11-04 16:31:18 +00:00
Georg-Johann Lay
e4fe948a6e
re PR target/50931 ([avr] Support a 24-bit scalar integer mode)
...
gcc/
PR target/50931
* config/avr/avr-modes.def: New file defining PSImode.
* config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
__UINT24_MAX__): New built-in defines.
* config/avr/avr.md (adjust_len): Add tstpsi, mov24, reload_in24,
ashlpsi, ashrpsi, lshrpsi.
(QISO, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
(MOVMODE): New mode iterator.
(movpsi): New expander.
(movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
(*reload_inpsi, *movpsi): New insns.
(*reload_inpsi): New RTL peephole.
(addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
*addpsi3_sign_extend.hi): New insns.
(subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
*subpsi3_sign_extend.hi): New insns.
(divmodpsi4, udivmodpsi4): New define insn-and-split.
(*divmodpsi4_call, *udivmodpsi4_call): New insns.
(andpsi3, iorpsi3, xorpsi3): New insns.
(*rotlpsi2.1, *rotlpsi2.23): New insns.
(*rotw<mode>): Insn condition only allow even-sized modes.
(*rotb<mode>): Insn condition allows odd-sized modes.
(ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
(negpsi2, one_cmplpsi2): New insns.
(extendqipsi2, extendhipsi2, extendpsisi2): New insns.
(zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
insn-and-splits.
(*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
(cbranchpsi4): New expander.
* config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
* config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
avr_out_reload_inpsi): New prototypes.
* config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
(avr_scalar_mode_supported_p): ...this new static function.
(avr_asm_len): Always return "".
(avr_out_load_psi, avr_out_store_psi): New static functions.
(avr_out_movpsi, avr_out_reload_inpsi): New functions.
(avr_out_tstpsi): New function.
(avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
(avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
(avr_simplify_comparison_p): Ditto.
(adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
(avr_rtx_costs_1): Report PSI costs.
(avr_libcall_value): Handle odd-sized parameters.
(avr_init_builtin_int24): New static function to define built-in
24-bit types __int24 and __uint24.
(avr_init_builtins): Use it.
libgcc/
PR target/50931
* config/t-avr (LIB1ASMFUNCS): Add _divmodpsi4, _udivmodpsi4.
* config/lib1funcs.S (__udivmodpsi4, __divmodpsi4): New functions.
From-SVN: r180962
2011-11-04 16:20:18 +00:00
Ed Smith-Rowland
2fcc5e6474
re PR c++/50941 ([C++0x] user-defined string literals provide incorrect length for wchar_t, char16_t, and char32_t)
...
PR c++/50941
* parser.c (cp_parser_userdef_string_literal): Fix string length.
From-SVN: r180961
2011-11-04 12:16:09 -04:00