Andreas Schwab
def6f17006
Make-lang.in (GFORTRAN_TARGET_INSTALL_NAME): Define.
...
* Make-lang.in (GFORTRAN_TARGET_INSTALL_NAME): Define.
(GFORTRAN_CROSS_NAME): Remove.
(fortran.install-common): Correctly install a cross compiler.
(fortran.uninstall): Use GFORTRAN_TARGET_INSTALL_NAME instead of
GFORTRAN_CROSS_NAME.
From-SVN: r106256
2005-10-30 23:18:07 +00:00
Erik Edelmann
1367913544
gfortran.texi: Update contributors.
...
fortran/
2005-10-30 Erik Edelmann <eedelman@gcc.gnu.org>
* gfortran.texi: Update contributors.
From-SVN: r106255
2005-10-30 22:48:26 +00:00
Erik Edelmann
d48734ef20
re PR fortran/18883 (ICE in gfc_finish_var_decl)
...
fortran/
2005-10-30 Erik Edelmann <eedelman@gcc.gnu.org>
PR fortran/18883
* trans-decl.c (gfc_finish_var_decl): Add decl to the
current function, rather than the parent. Make
assertion accept fake result variables.
* trans-expr.c (gfc_conv_variable): If the character
length of an ENTRY isn't set, get the length from
the master function instead.
testsuite
2005-10-30 Erik Edelmann <eedelman@gcc.gnu.org>
PR fortran/18883
* gfortran.dg/char_result_9.f90: New.
* gfortran.dg/char_result_10.f90: New.
From-SVN: r106254
2005-10-30 22:43:45 +00:00
Paolo Carlini
097588e4e4
re PR libstdc++/20213 (cassert header documentation wrong)
...
2005-10-30 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/20213
* include/c_std/std_csignal.h: Adjust comment as per 17.4.1.2/4.
* include/c_std/std_cstdlib.h: Likewise.
* include/c_std/std_cstdio.h: Likewise.
* include/c_std/std_cstdarg.h: Likewise.
* include/c_std/std_cctype.h: Likewise.
* include/c_std/std_cerrno.h: Likewise.
* include/c_std/std_cmath.h: Likewise.
* include/c_std/std_ciso646.h: Likewise.
* include/c_std/std_ctime.h: Likewise.
* include/c_std/std_clocale.h: Likewise.
* include/c_std/std_climits.h: Likewise.
* include/c_std/std_cassert.h: Likewise.
* include/c_std/std_csetjmp.h: Likewise.
* include/c_std/std_cwchar.h: Likewise.
* include/c_std/std_cfloat.h: Likewise.
* include/c_std/std_cstring.h: Likewise.
* include/c_std/std_cstddef.h: Likewise.
* include/c_std/std_cwctype.h: Likewise.
From-SVN: r106253
2005-10-30 22:21:50 +00:00
Thomas Koenig
ed146156e0
gfortran.texi: Remove reservations about I/O usability.
...
2005-10-30 Thomas Koenig <Thomas.Koenig@online.de>
* gfortran.texi: Remove reservations about I/O usability. Document
that array intrinsics mostly work.
From-SVN: r106252
2005-10-30 21:38:25 +00:00
Tobias Schlüter
dda0f76478
Remove .cvsignore
...
From-SVN: r106250
2005-10-30 22:15:36 +01:00
Tobias Schlüter
a63dad5b08
gfortran.texi: Move license stuff to back.
...
* gfortran.texi: Move license stuff to back. Add information
on ENUM and ENUMERATOR.
* invoke.texi: Document -fshort-enums.
From-SVN: r106249
2005-10-30 21:54:43 +01:00
Steven Bosscher
133f4c87b1
gcc_build: Use gcc.gnu.org as the default server.
...
* gcc_build: Use gcc.gnu.org as the default server. Set up
SVN_REPOSITORY correctly. Add support for checking out branches.
From-SVN: r106248
2005-10-30 19:45:01 +00:00
Jan Hubicka
5e13fdf752
re PR tree-optimization/24172 (error: incorrect sharing of tree nodes)
...
PR tree-optimization/24172
* tree-inline.c (copy_body_r): Unshare the substituted value first.
* g++.dg/tree-ssa/pr24172.C: New testcase.
From-SVN: r106247
2005-10-30 18:14:15 +00:00
Tobias Schlüter
25d8f0a283
arith.c (gfc_enum_initializer): New function.
...
fortran/
2005-10-30 Gaurav Gautam <gauravga@noida.hcltech.com>
Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
* arith.c (gfc_enum_initializer): New function.
(gfc_check_integer_range): Made extern.
* decl.c (enumerator_history): New typedef.
(last_initializer, enum_history, max_enum): New variables.
(create_enum_history, gfc_free_enum_history): New functions.
(add_init_expr_to_sym): Call create_enum_history if parsing ENUM.
(variable_decl): Modified to parse enumerator definition.
(match_attr_spec): Add PARAMETER attribute to ENUMERATORs.
(gfc_match_data_decl): Issues error, if match_type_spec do not
return desired return values.
(set_enum_kind, gfc_match_enum, gfc_match_enumerator_def): New
functions.
(gfc_match_end): Deal with END ENUM.
* gfortran.h (gfc_statement): ST_ENUM, ST_ENUMERATOR, ST_END_ENUM
added.
(symbol_attribute): Bit field for enumerator added.
(gfc_options): Add fshort_enums.
(gfc_enum_initializer, gfc_check_integer_range): Add prototypes.
* options.c: Include target.h
(gfc_init_options): Initialize fshort_enums.
(gfc_handle_option): Deal with fshort_enums.
* parse.c (decode_statement): Match ENUM and ENUMERATOR statement.
(gfc_ascii_statement): Deal with the enumerator statements.
(parse_enum): New function to parse enum construct.
(parse_spec): Added case ST_ENUM.
* parse.h (gfc_compile_state): COMP_ENUM added.
(gfc_match_enum, gfc_match_enumerator_def, gfc_free_enum_history):
Prototype added.
* symbol.c (gfc_copy_attr): Copy enumeration attribute.
* lang.opt (fshort-enums): Option added.
testsuite/
2005-10-30 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
* gfortran.dg/enum_10.f90, gfortran.dg/enum_10.c: New test.
2005-10-30 Gaurav Gautam <gauravga@noida.hcltech.com>
* gfortran.dg/enum_1.f90, gfortran.dg/enum_2.f90,
gfortran.dg/enum_3.f90, gfortran.dg/enum_4.f90,
gfortran.dg/enum_5.f90, gfortran.dg/enum_6.f90,
gfortran.dg/enum_7.f90, gfortran.dg/enum_8.f90,
gfortran.dg/enum_9.f90,
gfortran.fortran-torture/compile/enum_1.f90,
gfortran.fortran-torture/execute/enum_1.f90,
gfortran.fortran-torture/execute/enum_2.f90,
gfortran.fortran-torture/execute/enum_3.f90,
gfortran.fortran-torture/execute/enum_4.f90: New tests.
From-SVN: r106246
2005-10-30 19:09:55 +01:00
Hans-Peter Nilsson
e8299ec258
mmix.c (mmix_intval): Correct handling of DFmode constants for hosts with long != 32 bits.
...
* config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
constants for hosts with long != 32 bits.
From-SVN: r106027
2005-10-30 17:06:40 +00:00
Hans-Peter Nilsson
6536905d5a
re PR target/18482 (mmix-knuth-mmixware testsuite failure: tmpdir-gcc.dg-struct-layout-1)
...
PR target/18482
* gcc.dg/compat/struct-layout-1_generate.c (switchfiles, main):
For mmix-*-*, pass with dg-options an additional -mno-base-addresses.
From-SVN: r106026
2005-10-30 16:46:41 +00:00
Francois-Xavier Coudert
159840cb8a
re PR libfortran/20179 (cannot mix C and Fortran I/O)
...
PR libfortran/20179
* io/unix.c (flush_if_preconnected): New function.
* io/io.h: Add prototype for flush_if_preconnected.
* io/transfer.c (data_transfer_init): Use flush_if_preconnected
to workaround buggy mixed C-Fortran code.
* gfortran.dg/mixed_io_1.f90: New test.
* gfortran.dg/mixed_io_1.c: New file.
From-SVN: r106017
2005-10-30 12:48:52 +00:00
Francois-Xavier Coudert
0d519038a0
check.c (gfc_check_malloc, [...]): New functions.
...
* check.c (gfc_check_malloc, gfc_check_free): New functions.
* gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_MALLOC.
* intrinsic.c (add_functions): Add symbols for MALLOC function.
(add_subroutines): Add symbol for FREE subroutine.
* intrinsic.h: Prototypes for gfc_check_malloc, gfc_check_free,
gfc_resolve_malloc and gfc_resolve_free.
* intrinsic.texi: Add doc for FREE and MALLOC intrinsics.
* iresolve.c (gfc_resolve_malloc, gfc_resolve_free): New
functions.
* trans-intrinsic.c (gfc_conv_intrinsic_function): Add case for
GFC_ISYM_MALLOC.
* Makefile.am: Add intrinsics/malloc.c file.
* Makefile.in: Regenerate.
* intrinsics/malloc.c: New file, with implementations for free
and malloc library functions.
* gfortran.dg/malloc_free_1.f90: New test.
From-SVN: r106016
2005-10-30 12:17:48 +00:00
Steven Bosscher
cf6ae9554d
* gfortran.texi: Update contributors.
...
From-SVN: r106015
2005-10-30 11:15:27 +00:00
Andreas Krebbel
7e1b44bbcb
re PR middle-end/24093 (cgraph exhausts virtual memory building 197.parser with -profile-use -O3)
...
PR middle-end/24093
* ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
From-SVN: r106014
2005-10-30 09:59:16 +00:00
GCC Administrator
a9a927164e
Daily bump.
...
From-SVN: r106007
2005-10-30 00:18:49 +00:00
Carey Evans
f33e4b3d2e
re PR libstdc++/22087 (ctype<char> tables are offset by one on DJGPP)
...
2005-10-29 Carey Evans <carey.evans@gmail.com>
PR libstdc++/22087
* config/os/djgpp/ctype_inline.h: Fix.
* config/os/djgpp/ctype_noninline.h: Likewise.
From-SVN: r105999
2005-10-29 22:44:23 +00:00
Mike Stump
06bc79e0bb
Makefile.am (kinds.h): Remove target, if command fails.
...
* Makefile.am (kinds.h): Remove target, if command fails.
(selected_int_kind.inc): Likewise.
(selected_real_kind.inc): Likewise.
* Makefile.in: Regenerate.
From-SVN: r105995
2005-10-29 21:02:23 +00:00
Steven Bosscher
55898b2c1b
interface.c: Fix previous checkin (an incomplete patch was commited for me).
...
* interface.c: Fix previous checkin (an incomplete patch
was commited for me).
From-SVN: r105992
2005-10-29 13:08:33 +00:00
Hans-Peter Nilsson
631190f243
* gcc.dg/nested-func-4.c: Require profiling -pg.
...
From-SVN: r105988
2005-10-29 03:11:31 +00:00
Daniel Berlin
6d64c3bc07
update_web_docs_svn: Use -q to quiet svn.
...
2005-10-26 Daniel Berlin <dberlin@dberlin.org>
* update_web_docs_svn: Use -q to quiet svn.
From-SVN: r105987
2005-10-29 01:19:36 +00:00
Joseph Myers
318a2182fc
* intrinsic.texi: Remove empty @cindex line.
...
From-SVN: r105986
2005-10-29 02:06:58 +01:00
Andrew Pinski
8f5c9c3d15
gcc_update: When svn update is called and --silent is used, pass -q.
...
2005-10-28 Andrew Pinski <pinskia@gcc.gnu.org>
* gcc_update: When svn update is called and
--silent is used, pass -q.
From-SVN: r105985
2005-10-28 17:28:20 -07:00
GCC Administrator
4c75773185
Daily bump.
...
From-SVN: r105980
2005-10-29 00:17:20 +00:00
Aldy Hernandez
ed70cedf84
ms1.h (TARGET_MS1_64_001): New.
...
* config/ms1/ms1.h (TARGET_MS1_64_001): New.
(TARGET_MS1_16_002): New.
(TARGET_MS1_16_003): New.
* config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
("*decrement_and_branch_until_zero_no_clobber"): New.
Add corresponding splitter for decrement_and_branch_until_zero
instruction.
Key all decrement_and_branch_until_zero patterns off of
TARGET_MS1_16_003.
From-SVN: r105974
2005-10-28 23:41:22 +00:00
Francois-Xavier Coudert
185d7d9750
check.c (gfc_check_alarm_sub, [...]): New functions.
...
* check.c (gfc_check_alarm_sub, gfc_check_signal,
gfc_check_signal_sub): New functions.
* gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SIGNAL.
* intrinsic.c (add_functions): Add signal intrinsic.
(add_subroutines): Add signal and alarm intrinsics.
* intrinsic.texi: Document the new intrinsics.
* iresolve.c (gfc_resolve_signal, gfc_resolve_alarm_sub,
gfc_resolve_signal_sub): New functions.
* trans-intrinsic.c (gfc_conv_intrinsic_function): Add case
for GFC_ISYM_SIGNAL.
* intrinsic.h: Add prototypes for gfc_check_alarm_sub,
gfc_check_signal, gfc_check_signal_sub, gfc_resolve_signal,
gfc_resolve_alarm_sub, gfc_resolve_signal_sub.
* Makefile.am (intrinsics): Add signal.c.
* Makefile.in: Regenerate.
* configure.ac: Checks for signal and alarm.
* config.h.in: Regenerate.
* configure: Regenerate.
* intrinsics/signal.c: New file for SIGNAL and ALARM intrinsics.
From-SVN: r105967
2005-10-28 21:16:17 +00:00
Andrew Pinski
7f0dbff360
decl.c (grokfndecl): Remove the setting of the return type of the function type of main after...
...
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
* decl.c (grokfndecl): Remove the setting
of the return type of the function type
of main after erroring about must returning
int.
From-SVN: r105963
2005-10-28 13:59:05 -07:00
Andrew Pinski
9a1c562a7d
re PR c++/23229 (g++ gives incorrect error message with void main() and a void function)
...
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/23229
* decl.c (grokfndecl): Create a new function type
after erroring out about main not returning int.
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/23229
* g++.dg/warn/main-2.C: New test.
From-SVN: r105960
2005-10-28 13:25:55 -07:00
Andrew Pinski
7dcd894f70
gcc_update: Remove the -q from svn invocation.
...
2005-10-28 Andrew Pinski <pinskia@gcc.gnu.org>
* gcc_update: Remove the -q from svn invocation.
From-SVN: r105958
2005-10-28 13:19:57 -07:00
François-Xavier Coudert
3b14f6649a
acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): New check.
...
* acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): New check.
* configure.ac: Check for floatingpoint.h, fptrap.h and float.h
headers. Use LIBGFOR_CHECK_FPSETMASK. Check for fp_trap and
fp_enable functions.
* configure.host: Add case for systems with fpsetmask and systems
with fp_trap/fp_enable.
* config/fpu-sysv.h: New file, FPU code using fpsetmask.
* config/fpu-aix.h: New file, FPU code for AIX using fp_trap and
fp_enable.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* config.h.in: Regenerate.
From-SVN: r105956
2005-10-28 20:13:20 +00:00
Steven G. Kargl
9b46f94ffa
re PR fortran/24545 (gfortran bug regarding interface block with named END INTERFACE statements)
...
PR fortran/24545
* interface.c (gfc_match_end_interface): Fix typo in INTERFACE_USER_OP case.
From-SVN: r105953
2005-10-28 20:05:56 +00:00
Daniel Berlin
dc5e5935a8
crontab: Update to reflect reality
...
2005-10-26 Daniel Berlin <dberlin@dberlin.org>
* crontab: Update to reflect reality
From-SVN: r105949
2005-10-28 19:24:24 +00:00
Josh Conner
7e2a12d3e4
re PR c++/22153 (ICE on invalid template specialization)
...
PR c++/22153
* cp/parser.c (cp_parser_member_declaration): Detect and handle
a template specialization.
* testsuite/g++.dg/template/crash38.C: New test.
* testsuite/g++.dg/parse/explicit1.C: Change expected errors.
From-SVN: r105944
2005-10-28 17:58:59 +00:00
Paolo Carlini
fcc8559226
re PR libstdc++/24559 (Incorrect definition of wcspbrk in cwchar)
...
2005-10-28 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/24559
* include/c_std/std_cwchar.h (wcspbrk): Adjust signature.
* testsuite/21_strings/c_strings/wchar_t/24559.cc: New.
From-SVN: r105939
2005-10-28 16:42:09 +00:00
Andrew Pinski
6c301b82b4
gcc_build: Remove -d from the call to gcc_update.
...
2005-10-28 Andrew Pinski <pinskia@gcc.gnu.org>
* gcc_build: Remove -d from the call to gcc_update.
From-SVN: r105937
2005-10-28 08:22:41 -07:00
Andrew Pinski
2d00b4f207
re PR c++/23426 (Too large array problem gives two error message)
...
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/23426
* decl.c (start_decl): Check that the decl is an
error_mark_node before getting the type.
Remove the check for the decl's type being an
error_mark_node.
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/23426
* g++.dg/other/large-size-array.C: New test.
From-SVN: r105936
2005-10-28 07:57:30 -07:00
Daniel Berlin
1b9f940b0c
gcc_update: Update for svn.
...
2005-10-28 Daniel Berlin <dberlin@dberlin.org>
Ben Elliston <bje@au1.ibm.com>
* gcc_update: Update for svn.
* newcvsroot: Ditto.
* gcc_build: Ditto.
Co-Authored-By: Ben Elliston <bje@au.ibm.com>
From-SVN: r105933
2005-10-28 14:44:48 +00:00
Daniel Berlin
db96b9360a
Add back -q so that jsm doesn't have to see a billion lines of output
...
From-SVN: r105932
2005-10-28 14:40:11 +00:00
Andrew Pinski
f35a986c64
re PR middle-end/24362 (internal compiler error: in extract_component, at tree-complex.c:68)
...
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/24362
* g++.dg/opt/complex4.C: New test.
2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/24362
* tree-complex.c (extract_component): Treat RESULT_DECL
like the rest of the decls.
From-SVN: r105930
2005-10-28 07:26:36 -07:00
Daniel Berlin
d3e5a995ec
SVN was not moved to SVN :)
...
From-SVN: r105929
2005-10-28 13:21:13 +00:00
Daniel Berlin
d8e6fa6e4a
Fix update_version_svn so it actually is the correct version of this script
...
From-SVN: r105928
2005-10-28 12:44:50 +00:00
Daniel Berlin
9a1ba72e73
Moved to subversion
...
From-SVN: r105925
2005-10-26 16:09:10 +00:00
Francois-Xavier Coudert
4f8725d4e6
re PR fortran/15586 (gfortran should support i18n in its compiler messages)
...
PR fortran/15586
* resolve.c (resolve_symbol): Remove the use of whynot, so that
error messages are not built from pieces.
From-SVN: r105921
2005-10-26 11:02:00 +00:00
Eric Botcazou
694a2f6ea6
ia64.c (ia64_output_function_profiler): Emit an indirect call to _mcount if the function needs a static chain.
...
* config/ia64/ia64.c (ia64_output_function_profiler): Emit an
indirect call to _mcount if the function needs a static chain.
From-SVN: r105917
2005-10-26 07:25:57 +00:00
Eric Botcazou
43f237b43f
re PR rtl-optimization/24460 (Profiled bootstrap broken)
...
PR rtl-optimization/24460
* dwarf2out.c (have_switched_text_sections): New boolean variable.
(dwarf2out_switch_text_section): Set it to true instead of
incrementing separate_line_info_table_in_use.
(output_loc_list): Additionally test have_switched_text_sections.
(output_ranges): Likewise.
(dwarf2out_finish): Likewise.
* varasm.c (assemble_start_function): Do not call
insert_section_boundary_note.
(assemble_end_function): If flag_reorder_blocks_and_partition,
switch to the function's section before emitting the .size directive.
* bb-reorder.c (insert_section_boundary_note): Staticify.
(rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
* output.h (insert_section_boundary_note): Delete.
Co-Authored-By: Caroline Tice <ctice@apple.com>
From-SVN: r105916
2005-10-26 07:03:30 +00:00
Paul Thomas
976e21f673
re PR fortran/24158 (ICE in f951 with nested, recursive derived types)
...
2005-10-26 Paul Thomas <pault@gcc.gnu.org>
PR fortran/24158
* decl.c (gfc_match_data_decl): Correct broken bit of code
that prevents undefined derived types from being used as
components of another derived type.
* resolve.c (resolve_symbol): Add backstop error when derived
type variables arrive here with a type that has no components.
2005-10-26 Paul Thomas <pault@gcc.gnu.org>
PR fortran/24158
gfortran.dg/derived_recursion.f90: New test.
gfortran.dg/implicit_actual.f90: New test.
From-SVN: r105913
2005-10-26 05:20:19 +00:00
Andrew Pinski
02f8406bd0
re PR c/23103 (gcc_diag does not work with -combine)
...
2005-10-24 Andrew Pinski <pinskia@physics.uc.edu>
PR c/23103
* c-format.c (check_format_types): Use lang_hooks.types_compatible_p
instead of pointer equality when comparing types.
From-SVN: r105911
2005-10-25 19:15:02 -07:00
GCC Administrator
93f0c5dc94
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r105906.2
2005-10-26 00:16:13 +00:00
Alexandre Oliva
83bb2f049f
PR middle-end/24295, PR testsuite/24477
...
PR middle-end/24295, PR testsuite/24477
* g++.old-deja/g++.abi/vtable2.C: Require alias for now. Will be
removed when weakref hits the tree.
From-SVN: r105893
2005-10-25 18:59:21 +00:00