- 15 Apr, 2008 6 commits
-
-
2008-04-15 Samuel Tardieu <sam@rfc1149.net> Gary Dismukes <dismukes@adacore.com> gcc/ada/ PR ada/28733 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something which is not an entity (and hence not a package). (End_Use_Package): Ditto. Co-Authored-By: Gary Dismukes <dismukes@adacore.com> From-SVN: r134313
Samuel Tardieu committed -
2008-04-15 Ed Schonberg <schonberg@adacore.com> gcc/ada/ PR ada/16086 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any protected operation that matches the signature, not only an entry, a regular subprogram or a literal. 2008-04-15 Samuel Tardieu <sam@rfc1149.net> gcc/testsuite/ PR ada/16086 * gnat.dg/prot_def.adb: New. From-SVN: r134312
Samuel Tardieu committed -
* ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3. * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only if a size or alignment is specified. Do not take into account alignment promotions for the computation of the object's size. <type>: Call maybe_pad_type only if a size or alignment is specified. (maybe_pad_type): Really reuse the RM_Size of the original type if requested. * trans.c (Attribute_to_gnu): Fix a couple of nits. * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional statements. Use the padded view of the type when copying between padded objects of the same underlying type. From-SVN: r134310
Eric Botcazou committed -
From-SVN: r134307
Ian Lance Taylor committed -
From-SVN: r134303
GCC Administrator committed -
* config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp, temp1 local variables. From-SVN: r134299
Ben Elliston committed
-
- 14 Apr, 2008 24 commits
-
-
PR target/35921 * optimize.c (maybe_clone_body): Copy DECL_DLLIMPORT_P flag to clone. From-SVN: r134298
Danny Smith committed -
2008-04-14 Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/35816 * acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Set CXXFLAGS to -O0 when checking for atomic builtins. * configure: Regenerate. From-SVN: r134297
Benjamin Kosnik committed -
2008-04-16 Zuxy Meng <zuxy.meng@gmail.com> PR target/35661 * config/i386/winnt.c (i386_pe_section_type_flags): Mark ".text.unlikely" section as executable. From-SVN: r134296
Zuxy Meng committed -
* config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_FR_SQRT_RECIP_APPROX_RES. * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define. (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr, divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr, divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it. From-SVN: r134295
James E Wilson committed -
gcc/ada/ * vms_data.ads: Fix typo in constant. * gen-soccon.c: Fix typo in error string. * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition): Fix typos. * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads, bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb, erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb, exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb, exp_util.adb, fmap.adb, g-soccon-linux-mips.ads, g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads, mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb, s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads, s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads, sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads, sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads, sinfo.ads: Fix typos in comments. From-SVN: r134291
Ralf Wildenhues committed -
2008-04-14 Benjamin Kosnik <bkoz@redhat.com> * include/bits/c++config: Guard _LDBL_ macros with __cplusplus. From-SVN: r134288
Benjamin Kosnik committed -
gcc/: * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define. * fold-const.c (fold_comparison): If appropriate, test POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning. (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when reassociating a pointer type. * doc/invoke.texi (Optimize Options): Document that -fstrict-overflow applies to pointer wraparound. gcc/testsuite/: * gcc.dg/strict-overflow-6.c: New. * gcc.dg/no-strict-overflow-7.c: New. * gcc.dg/Wstrict-overflow-22.c: New. From-SVN: r134287
Ian Lance Taylor committed -
2008-04-14 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/32972 * intrinsics/spread_generic.c (spread): Use spread_i2() for GFC_DTYPE_DERIVED_2 (fix typo from previous commit). From-SVN: r134286
Thomas Koenig committed -
gcc/testsuite/ * gnat.dg/specs/storage.ads: Fix expected error message. From-SVN: r134281
Samuel Tardieu committed -
2008-04-14 Robert Dewar <dewar@adacore.com> gcc/ada/ * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error to every non-object and change error message. gcc/testsuite/ * gnat.dg/specs/linker_section.ads: Check for more error conditions. From-SVN: r134280
Robert Dewar committed -
Sigh. Fix the license of the new file from the previous commit to be GPLv3, and fix the copyright year. From-SVN: r134277
Bernd Schmidt committed -
From-SVN: r134276
Bernd Schmidt committed -
2008-04-14 Robert Dewar <dewar@adacore.com> gcc/ada/ * sem_util.ads, sem_util.adb (In_Subprogram): Remove. * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram directly. From-SVN: r134273
Robert Dewar committed -
gcc/ada/ PR ada/18680 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to apply pragma Linker_Section on type. gcc/testsuite/ PR ada/18680 * gnat.dg/specs/linker_section.ads: New. From-SVN: r134266
Samuel Tardieu committed -
gcc/ada/ PR ada/16098 * sem_prag.adb (Error_Pragma_Ref): New. (Process_Convention): Specialized message for non-local subprogram renaming. Detect the problem in homonyms as well. gcc/testsuite/ PR ada/16098 * gnat.dg/specs/renamings.ads: New. From-SVN: r134262
Samuel Tardieu committed -
gcc/ada/ PR ada/15915 * sem_util.ads, sem_util.adb (Denotes_Variable): New function. * sem_ch12.adb (Instantiate_Object): Use it. * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that storage pool denotes a variable as per RM 13.11(15). gcc/testsuite/ PR ada/15915 * gnat.dg/specs/storage.ads: New. From-SVN: r134261
Samuel Tardieu committed -
gcc/ada/ * sem_util.ads, sem_util.adb (In_Subprogram): New function. * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it. gcc/testsuite/ * gnat.dg/deep_old.adb: New. From-SVN: r134260
Samuel Tardieu committed -
* gnat.dg/loop_address2.adb: New test. From-SVN: r134258
Eric Botcazou committed -
2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de> gcc/ada/ PR ada/20822 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix line endings even on non-Unix platforms. From-SVN: r134257
Rolf Ebert committed -
gcc/ada/ PR ada/35050 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the renaming information. From-SVN: r134256
Samuel Tardieu committed -
From-SVN: r134255
Ben Elliston committed -
2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/35882 * gfortran.dg/continuation_3.f90: Update test. * gfortran.dg/continuation_5.f: Update test. * gfortran.dg/continuation_10.f90: New test. From-SVN: r134252
Jerry DeLisle committed -
2008-04-13 Jerry DeLisle <jvdelisle@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> PR fortran/35882 * options.c (gfc_init_options): Set the default maximum continuation lines to 255 for both free and fixed form source for warnings. (gfc_handle_option): Set -std=f95 fixed form max continuations to 19 and the -std=f95 free form max continuations to 39 for warnings. * scanner.c (gfc_next_char_literal): Adjust the current_line number only if it is less than the current locus. Co-Authored-By: Tobias Burnus <burnus@net-b.de> From-SVN: r134251
Jerry DeLisle committed -
From-SVN: r134249
GCC Administrator committed
-
- 13 Apr, 2008 9 commits
-
-
2008-04-13 Thomas Koenig <tkoenig@gcc.gnu.org> Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> PR libfortran/32972 PR libfortran/32512 configure.ac: Add test for uintptr_t. configure: Regenerated. config.h.in: Regenerated. * libgfortran.h: GFC_DTYPE_DERIVED_1: New macro. GFC_DTYPE_DERIVED_2: New macro. GFC_DTYPE_DERIVED_4: New macro. GFC_DTYPE_DERIVED_8: New macro. GFC_DTYPE_DERIVED_16: New macro. GFC_UNALIGNED_2: New macro. GFC_UNALIGNED_4: New macro. GFC_UNALIGNED_8: New macro. GFC_UNALIGNED_16: New macro. intptr_t: Define if we don't have it. uintptr_t: Likewise. * runtime/backtrace.c (show_backtrace): Use intptr_t. * intrinsics/signal.c (signal_sub): Likewise. (signal_sub_int): Likewise. (alarm_sub_int_i4): Likewise. * intrinsics/spread_generic.c (spread): Use the integer routines for handling derived types of sizes 1, 2, 4, 8 and 16 if the alignment of all pointers is correct. (spread_scalar): Likewise. * intrinsics/pack_generic.c (pack): Likewise. Use GFD_DTYPE_TYPE_SIZE to avoid nested switch statements. * intrinsics/unpack_generic.c (unpack1): Likewise. (unpack0): Likewise. * runtime/in_pack_generic.c (internal_pack): Likewise. * runtime/in_unpack_generic.c (internal_unpack): Likewise. 2008-04-13 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/32972 PR libfortran/32512 * gfortran.dg/internal_pack_1.f90: Add test for derived type. * gfortran.dg/intrinsic_spread_1.f90: Likewise. * gfortran.dg/intrinsic_pack_1.f90: Likewise. * gfortran.dg/intrinsic_unpack_1.f90: Likewise. Co-Authored-By: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> From-SVN: r134245
Thomas Koenig committed -
gcc/ada/ PR ada/17985 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of itself. gcc/testsuite/ PR ada/17985 * gnat.dg/ancestor_type.ads, gnat.dg/ancestor_type.adb: New test. From-SVN: r134244
Samuel Tardieu committed -
gcc/ada/ * sfn_scan.adb, sfn_scan.ads, sinfo.ads, sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads, snames.ads, sprint.adb, stand.ads, stringt.ads, styleg.adb, styleg.ads, stylesw.adb, stylesw.ads, switch.ads, sysdep.c, table.adb, table.ads, targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c, trans.c, tree_io.adb, treepr.adb, types.adb, types.ads, uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads, vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb, widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb: Fix comment typos. From-SVN: r134243
Ralf Wildenhues committed -
gcc/ada/ * sem_ch10.adb, sem_ch10.ads, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb, sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads, sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb, sem_warn.ads: Fix comment typos. From-SVN: r134242
Ralf Wildenhues committed -
gcc/ada/ * s-secsta.adb, s-sequio.ads, s-shasto.ads, s-soflin.ads, s-stalib.ads, s-stausa.adb, s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb, s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads, s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb, s-tposen.ads, s-traceb-hpux.adb, s-traces.ads, s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads, s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads, scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads: Fix comment typos. From-SVN: r134241
Ralf Wildenhues committed -
From-SVN: r134240
Jan Hubicka committed -
2008-04-12 Andrew Pinski <pinskia@gmail.com> * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if we are going to "save the world". 2008-04-12 Andrew Pinski <pinskia@gmail.com> * gcc.target/powerpc/darwin-save-world-1.c: New test. From-SVN: r134237
Andrew Pinski committed -
("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the operand 0 constraint, not "=". From-SVN: r134236
Hans-Peter Nilsson committed -
From-SVN: r134234
GCC Administrator committed
-
- 12 Apr, 2008 1 commit
-
-
2008-04-12 Joel Sherrill <joel@oarcorp.com> gcc/ada/ PR ada/35825 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported. From-SVN: r134230
Joel Sherrill committed
-