aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2013-07-10re PR preprocessor/57757 (CPP extra inserted whitespace needs to be reviewed ↵Jakub Jelinek3-0/+36
for C++11 user-defined literals) PR preprocessor/57757 * lex.c (cpp_avoid_paste): Avoid pasting CPP_{,W,UTF8}STRING or CPP_STRING{16,32} with CPP_NAME or SPELL_LITERAL token that starts if a-zA-Z_. * g++.dg/cpp/paste1.C: New test. * g++.dg/cpp/paste2.C: New test. From-SVN: r200875
2013-07-10re PR target/57844 (ICE: unrecognizable addqi3 insn with -msp8 and frame ↵Georg-Johann Lay2-2/+10
size of 128 bytes) PR target/57844 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode of my_fp. From-SVN: r200872
2013-07-10re PR target/57506 ([avr] Some devices are present twice in avr-mcus.def)Georg-Johann Lay6-213/+174
PR target/57506 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb) (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb) (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1): Remove duplicate devices. * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs. * config/avr/t-multilib: Regenerate. * config/avr/avr-tables.opt: Regenerate. * doc/avr-mmcu.texi: Regenerate. From-SVN: r200870
2013-07-10re PR target/56987 (gcc/config/avr/avr.opt:80: "change" -> "changed"?)Georg-Johann Lay2-1/+6
PR target/56987 * config/avr/avr.opt (Waddr-space-convert): Fix typo. From-SVN: r200869
2013-07-10mips.c (mips_rtx_costs): Very slightly increase the cost of MULT when ↵Graham Stott7-1/+52
optimizing for size. * config/mips/mips.c (mips_rtx_costs): Very slightly increase the cost of MULT when optimizing for size. * gcc.target/mips/mulsize-1.c: New. * gcc.target/mips/mulsize-2.c: New. * gcc.target/mips/mulsize-3.c: New. * gcc.target/mips/mulsize-4.c: New. From-SVN: r200867
2013-07-10cr16-protos.h: Don't include target.h.Jan-Benedict Glaw2-2/+4
2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de> gcc/ * config/cr16/cr16-protos.h: Don't include target.h. From-SVN: r200865
2013-07-09re PR c++/57402 (ICE: in make_decl_rtl, at varasm.c:1147 when initializing ↵Jason Merrill3-0/+32
variable-sized array) PR c++/57402 * init.c (build_vec_init): Don't take shortcuts when initializing a VLA. From-SVN: r200860
2013-07-10Daily bump.GCC Administrator1-1/+1
From-SVN: r200859
2013-07-09rs6000.c (rs6000_init_hard_regno_mode_ok): Only adjust register size for ↵Joseph Myers2-1/+7
TDmode and TFmode for VSX registers. * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only adjust register size for TDmode and TFmode for VSX registers. From-SVN: r200853
2013-07-09re PR c++/57471 (Bizarre error for template parameter pack)Jason Merrill3-0/+21
PR c++/57471 * parser.c (cp_parser_sizeof_pack): Clear parser scopes. From-SVN: r200852
2013-07-09re PR c++/57658 (ICE in tsubst_copy, at cp/pt.c:12213)Jason Merrill3-7/+30
PR c++/57658 * semantics.c (finish_id_expression): Return the id for an unevaluated outer variable. From-SVN: r200845
2013-07-09re PR c++/57526 (use of X before deduction of auto error for seemingly good ↵Jason Merrill3-1/+29
code) PR c++/57526 * semantics.c (lambda_capture_field_type): Build a DECLTYPE_TYPE if the variable type uses 'auto'. From-SVN: r200844
2013-07-09re PR c++/57437 (C++11: mutable lambdas)Jason Merrill3-2/+33
PR c++/57437 * typeck.c (check_return_expr): Lambda proxies aren't eligible for nrv or return by move. From-SVN: r200843
2013-07-09re PR c++/57532 (operator& broken when used on rvalues)Jason Merrill3-0/+14
PR c++/57532 * parser.c (cp_parser_ref_qualifier_opt): Don't tentatively parse a ref-qualifier in C++98 mode. From-SVN: r200842
2013-07-09re PR c++/57545 (Generation of debug symbols leads to internal compiler error)Jason Merrill3-0/+22
PR c++/57545 * pt.c (convert_nontype_argument) [INTEGER_CST]: Force the argument to have the exact type of the parameter. From-SVN: r200841
2013-07-09re PR regression/57551 (g++.dg/ext/visibility/anon6.C scan-assembler 1BIiE1cE)Jason Merrill3-5/+13
PR c++/57551 * semantics.c (cxx_eval_indirect_ref): Don't try to look through a POINTER_PLUS_EXPR for type punning diagnostic. From-SVN: r200840
2013-07-09re PR c++/57831 (pointer to member function inaccessible through using ↵Jason Merrill3-0/+23
statement (or ICE)) PR c++/57831 * pt.c (tsubst_copy): Handle USING_DECL. From-SVN: r200839
2013-07-09re PR c++/53094 (constexpr vector subscripting)Marc Glisse5-2/+27
2013-07-09 Marc Glisse <marc.glisse@inria.fr> PR c++/53094 gcc/cp/ * semantics.c (cxx_eval_bit_field_ref): Handle VECTOR_CST. gcc/testsuite/ * g++.dg/cpp0x/constexpr-53094-1.C: Adjust. * g++.dg/ext/vector24.C: New testcase. From-SVN: r200822
2013-07-09re PR c++/53000 (Conditional operator does not behave as standardized)Marc Glisse4-5/+16
2013-07-09 Marc Glisse <marc.glisse@inria.fr> PR c++/53000 gcc/cp/ * call.c (build_conditional_expr_1): Preserve xvalues. gcc/testsuite/ * g++.dg/cpp0x/decltype17.C: Adjust. From-SVN: r200821
2013-07-09re PR c++/51786 ([c++0x] Invalid declaration with decltype accepted)Paolo Carlini4-2/+30
/cp 2013-07-09 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51786 * parser.c (cp_parser_simple_declaration): Before calling shadow_tag also check declares_class_or_enum. /testsuite 2013-07-09 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51786 * g++.dg/cpp0x/pr51786.C: New. From-SVN: r200813
2013-07-08re PR c++/57550 (bogus "error ... is private")Jason Merrill5-15/+72
PR c++/57550 * pt.c (fn_type_unification): Only defer during substitution. (type_unification_real): Defer during defarg substitution, add checks parm to pass back deferred checks. (unify, do_auto_deduction): Adjust. * semantics.c (reopen_deferring_access_checks): New. * cp-tree.h: Declare it. From-SVN: r200808
2013-07-09Daily bump.GCC Administrator1-1/+1
From-SVN: r200806
2013-07-08* gcc.target/powerpc/tfmode_off.c: Skip for EABI targets.Janis Johnson2-0/+3
From-SVN: r200802
2013-07-08* gcc.target/powerpc/ppc-spe64-1.c: Update expected error message.Janis Johnson2-1/+3
From-SVN: r200799
2013-07-08* gcc.target/powerpc/pr47197.c: Require powerpc_altivec_ok.Janis Johnson2-0/+3
From-SVN: r200798
2013-07-08sd-vsx.c: Require dfp.Janis Johnson3-0/+7
* gcc.target/powerpc/sd-vsx.c: Require dfp. * gcc.target/powerpc/sd-pwr6.c: Likewise. From-SVN: r200797
2013-07-08re PR fortran/57834 (C_F_POINTER (only with -std=): accepts only explicit- ↵Tobias Burnus4-6/+57
and assumed-size arrays for FPTR when SHAPE is present) 2013-07-08 Tobias Burnus <burnus@net-b.de> PR fortran/57834 * check.c (is_c_interoperable): Add special case for * c_f_pointer. (explicit-size, gfc_check_c_f_pointer, gfc_check_c_loc): Update call. 2013-07-08 Tobias Burnus <burnus@net-b.de> PR fortran/57834 * gfortran.dg/c_f_pointer_tests_8.f90: New. From-SVN: r200794
2013-07-08re PR c++/56892 (dllexport prevents inline inside dll)Kai Tietz2-0/+8
PR target/56892 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as hook_bool_const_tree_true. From-SVN: r200792
2013-07-08re PR fortran/50554 (INQUIRE cannot redefine DO index (r178939))Tobias Burnus4-2/+26
2013-07-08 Tobias Burnus <burnus@net-b.de> PR fortran/50554 * io.c (match_inquire_element): Add missing do-var check. 2013-07-08 Tobias Burnus <burnus@net-b.de> PR fortran/50554 * gfortran.dg/do_check_9.f90: New. From-SVN: r200790
2013-07-08s390.c: Replace F*_REGNUM with FPR*_REGNUM.Andreas Krebbel4-67/+80
2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM. * config/s390/s390.h: Remove F*_REGNUM macro definitions. * config/s390/s390.md: Define FPR*_REGNUM constants. Fix FPR2_REGNUM constant (18 -> 17). ("*trunc<BFP:mode><DFP_ALL:mode>2") ("*trunc<DFP_ALL:mode><BFP:mode>2") ("trunc<BFP:mode><DFP_ALL:mode>2") ("trunc<DFP_ALL:mode><BFP:mode>2") ("*extend<BFP:mode><DFP_ALL:mode>2") ("*extend<DFP_ALL:mode><BFP:mode>2") ("extend<BFP:mode><DFP_ALL:mode>2") ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with FPR4_REGNUM. From-SVN: r200787
2013-07-08re PR fortran/57785 (DOT_PRODUCT error with constant complex array)Tobias Burnus4-8/+62
2013-07-08 Tobias Burnus <burnus@net-b.de> PR fortran/57785 * simplify.c (compute_dot_product): Complex conjugate for dot_product. (gfc_simplify_dot_product, gfc_simplify_matmul): Update call. 2013-07-08 Tobias Burnus <burnus@net-b.de> PR fortran/57785 * gfortran.dg/dot_product_2.f90: New. From-SVN: r200786
2013-07-08re PR fortran/57469 (Erroneous warning for unused dummy arguments used in ↵Tobias Burnus4-2/+29
namelist) 2013-07-08 Tobias Burnus <burnus@net-b.de> PR fortran/57469 * trans-decl.c (generate_local_decl): Don't warn that a dummy is unused, when it is in a namelist. 2013-07-08 Tobias Burnus <burnus@net-b.de> PR fortran/57469 * gfortran.dg/warn_unused_dummy_argument_4.f90: New. From-SVN: r200785
2013-07-08defined_assignment_7.f90: Fix dg-do.Manfred Schwarb3-4/+9
2013-07-08 Manfred Schwarb <manfred99@gmx.ch> * gfortran.dg/defined_assignment_7.f90: Fix dg-do. * gfortran.dg/finalize_10.f90: Fix dg-final. From-SVN: r200784
2013-07-08* Makefile.in: (c-family-warn): Define to $(STRICT_WARN)Graham Stott2-0/+5
From-SVN: r200783
2013-07-08array-notation-common.c (length_mismatch_in_expr_p): Delete unused variables ↵Graham Stott2-1/+4
l_length and l_node. * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete unused variables l_length and l_node. From-SVN: r200781
2013-07-08s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save and cfun_fpr_bit_p to ↵Andreas Krebbel3-46/+88
cfun_fpr_save_p. 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save and cfun_fpr_bit_p to cfun_fpr_save_p. (s390_frame_area, s390_register_info, s390_frame_info) (s390_emit_prologue, s390_emit_epilogue) (s390_conditional_register_usage): Use the *_REGNUM macros for FPR register numbers. * config/s390/s390.h: Define *_REGNUM macros for floating point register numbers. From-SVN: r200780
2013-07-08* Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).Eric Botcazou2-1/+5
From-SVN: r200777
2013-07-08re PR rtl-optimization/57786 (wasted work in distribute_notes)Po-Chun Chang2-3/+11
PR rtl-optimization/57786 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool and break out of the loop when it is set to false. From-SVN: r200776
2013-07-08re PR target/57819 (Suboptimal shift patterns)Jakub Jelinek6-2/+109
PR target/57819 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>: Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI) (const_int 63)) 0)). * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND using simplify_gen_unary instead of gen_rtx_*_EXTEND. * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split. * gcc.target/i386/pr57819.c: New test. From-SVN: r200775
2013-07-08einfo.adb (Get_Pragma): Handle the retrieval of delayed pragmas stored in ↵Hristian Kirtchev4-18/+103
N_Contract nodes. 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com> * einfo.adb (Get_Pragma): Handle the retrieval of delayed pragmas stored in N_Contract nodes. * einfo.ads (Get_Pragma): Update the comment on usage. * sem_prag.adb (Check_Precondition_Postcondition): Retain a copy of the pragma when it applies to a body that acts as a spec. The copy is preanalyzed and chained on the contract of the body. From-SVN: r200774
2013-07-08[multiple changes]Arnaud Charlet4-10/+47
2013-07-08 Robert Dewar <dewar@adacore.com> * rtsfind.adb: Minor comment fix. 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com> * sem_ch4.adb (Check_Ghost_Subprogram_Call): Do not check the placement of a Ghost function call when the enclosing context is being preanalyzed. 2013-07-08 Ed Schonberg <schonberg@adacore.com> * exp_ch6.adb (Expand_Inlined_Call, Process_Formals): If the expression in a return statement is a numeric literal, qualify it with the return type for proper resolution. From-SVN: r200772
2013-07-08[multiple changes]Arnaud Charlet22-238/+608
2013-07-08 Robert Dewar <dewar@adacore.com> * sem.ads: Minor comment updates. * s-restri.ads, exp_ch6.adb, lib-load.ads, exp_ch3.adb, sem_ch10.adb: Minor reformatting. 2013-07-08 Robert Dewar <dewar@adacore.com> * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry for Restriction_Set. * gnat_rm.texi: Add missing menu entry for Attribute Ref Add documentation for attribute Restriction_Set. * lib-writ.adb (Write_With_Lines): Generate special W lines for Restriction_Set. * lib-writ.ads: Document special use of W lines for Restriction_Set. * lib.ads (Restriction_Set_Dependences): New table. * par-ch4.adb (Is_Parameterless_Attribute): Add Loop_Entry to list (Scan_Name_Extension_Apostrophe): Remove kludge test for Loop_Entry (Scan_Name_Extension_Apostrophe): Handle No_Dependence for Restricton_Set. * restrict.adb (Check_SPARK_Restriction): Put in Alfa order (OK_No_Dependence_Unit_Name): New function. * restrict.ads (OK_No_Dependence_Unit_Name): New function. * rtsfind.adb: Minor reformatting Minor code reorganization. * sem_attr.adb (Analyze_Attribute): Add processing for Restriction_Set. * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Remove Check_Unit_Name and use new function OK_No_Dependence_Unit_Name instead. * sinfo.ads: Minor comment updates. * snames.ads-tmpl: Add entry for Restriction_Set attribute. 2013-07-08 Hristian Kirtchev <kirtchev@adacore.com> * exp_ch4.adb (Apply_Accessibility_Check): Remove local constant Pool_Id and local variable Free_Stmt. Do not deallocate the faulty object as "free" is not available on all targets/profiles. 2013-07-08 Robert Dewar <dewar@adacore.com> * sem_ch13.adb (Analyze_Aspect_Specifications): Handle Storage_Size aspect for task type in case discriminant is referenced. (Analyze_Attribute_Definition_Clause): Do not flag Storage_Size attribute definition clause as obsolescent if from aspect. From-SVN: r200771
2013-07-08[multiple changes]Arnaud Charlet5-19/+30
2013-07-08 Robert Dewar <dewar@adacore.com> * gnat_rm.texi: Add documentation for Img returning a function. * par-prag.adb: Minor reformatting. * restrict.adb: Minor reformatting and code reorganization. 2013-07-08 Ed Schonberg <schonberg@adacore.com> * sem_res.adb: add guard to ASIS transform. From-SVN: r200769
2013-07-08re PR rtl-optimization/57829 (Wrong constant folding)Jakub Jelinek4-0/+43
PR rtl-optimization/57829 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that mask bits outside of mode are just sign-extension from mode to HWI. * gcc.c-torture/execute/pr57829.c: New test. From-SVN: r200768
2013-07-08[multiple changes]Arnaud Charlet5-45/+138
2013-07-08 Ed Schonberg <schonberg@adacore.com> * exp_ch9.adb (Expand_N_Asynchronous_Select): If the trigger of the asynchronous select is a dispatching call, transform the abortable part into a procedure, to avoid duplication of local loop variables that may appear within. 2013-07-08 Vincent Celier <celier@adacore.com> * projects.texi: Update the documentation of suffixes in package Naming. 2013-07-08 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Conforming_Types): Anonymous_access_to_subprograsm types are type conformant if the designated type of one is protected and the other is not. Convention only matters when checking subtype conformance. 2013-07-08 Ed Schonberg <schonberg@adacore.com> * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, propagate back the fully resolved operands to the original function call so that all semantic information remains available to ASIS. From-SVN: r200767
2013-07-08[multiple changes]Arnaud Charlet4-7/+14
2013-07-08 Ed Schonberg <schonberg@adacore.com> * sem_ch4.adb: minor reformatting (remove obsolete comment). * sem_ch9.adb: improve error message on illegal trigger. 2013-07-08 Robert Dewar <dewar@adacore.com> * sem_prag.adb: Minor reformatting. From-SVN: r200766
2013-07-08[multiple changes]Arnaud Charlet11-60/+150
2013-07-08 Robert Dewar <dewar@adacore.com> * gnatcmd.adb: Minor reformatting. 2013-07-08 Robert Dewar <dewar@adacore.com> * targparm.adb (Get_Target_Parameters): Recognize pragma Partition_Elaboration_Policy. 2013-07-08 Robert Dewar <dewar@adacore.com> * gnat_ugn.texi: Minor update to mention partition elaboration policy. 2013-07-08 Ed Schonberg <schonberg@adacore.com> * sem_ch4.adb (Comple_Object_Operation): Revert previous change. (Analyze_Indexed_Component_Form): In ASIS mode, if node has been transformed but not rewritten as a function call (as is the case in a generic), analyze it as such. 2013-07-08 Thomas Quinot <quinot@adacore.com> * gnat_rm.texi: Minor rewording: add missing word "operators" in documentation for restriction No_Direct_Boolean_Operator. 2013-07-08 Robert Dewar <dewar@adacore.com> * errout.adb (Set_Msg_Txt): No longer sets Is_Style_Msg, Is_Warning_Msg, or Is_Unconditional_Msg (all are set elsewhere now). * errout.ads: Insertions ! and !! no longer have to be at the end of the message, they can be anywhere in the message. * erroutc.adb (Test_Style_Warning_Serious_Unconditional_Msg): Replaces Test_Style_Warning_Serious_Msg * erroutc.ads (Has_Double_Exclam): New flag New comments for existing flags (Test_Style_Warning_Serious_Unconditional_Msg): Replaces Test_Style_Warning_Serious_Msg * errutil.adb (Test_Style_Warning_Serious_Unconditional_Msg): Replaces Test_Style_Warning_Serious_Msg From-SVN: r200765
2013-07-08[multiple changes]Arnaud Charlet13-61/+82
2013-07-08 Robert Dewar <dewar@adacore.com> * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): Recognize SPARK_05 as synonym for SPARK in restrictions pragma. * restrict.ads, restrict.adb (SPARK_Hides): Table moved to body, only referenced there. * scng.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_res.adb, sem_util.adb: Use restriction SPARK_05 instead of SPARK. * snames.ads-tmpl (Name_No_Obsolescent_Features): New entry. 2013-07-08 Vincent Celier <celier@adacore.com> * gnatcmd.adb (Check_Files): Use a response file for gnatls when possible. From-SVN: r200764
2013-07-08[multiple changes]Arnaud Charlet8-27/+97
2013-07-08 Gary Dismukes <dismukes@adacore.com> * freeze.adb: Minor typo fixes. 2013-07-08 Robert Dewar <dewar@adacore.com> * gnat_rm.texi: Document SPARK_05 (replaces SPARK) Document obsolete recognition of SPARK Document all other obsolete synonyms for old restrictions. * restrict.adb (Check_SPARK_Restriction): SPARK_05 replaces SPARK (Process_Restriction_Synonyms): Handle SPARK as synonym for SPARK_05. * restrict.ads: Restriction SPARK_05 replaces SPARK. * s-rident.ads: Replace restriction SPARK by SPARK_05 Add SPARK as synonym for SPARK_05. * sem_prag.adb: Minor reformatting. * snames.ads-tmpl: Add entries for Name_SPARK and Name_SPARK_05. From-SVN: r200763
2013-07-08sem_dim.adb: Minor error message change.Robert Dewar4-72/+95
2013-07-08 Robert Dewar <dewar@adacore.com> * sem_dim.adb: Minor error message change. * freeze.adb (Freeze_Entity, array type case): Extend handling of Implicit_Packing to handle multi-dimensional array case. * gnat_rm.texi: Update doc on Implicit_Packing. From-SVN: r200762