2003-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
* cfgcleanup.c (try_forward_edges): Check for null insn.
2003-02-03 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
Eric Botcazou <ebotcazou@libertysurf.fr>
Backport following patches:
2002-09-16 Richard Henderson <rth@redhat.com>
* emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
as well as OFFSET for BITPOS.
2002-09-08 Jan Hubicka <jh@suse.cz>
* emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
handling.
2002-07-29 Richard Henderson <rth@redhat.com>
* emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
set_mem_attributes and add BITPOS argument. Subtract it from
OFFSET when same is adjusted.
(set_mem_attributes): New wrapper function.
* expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
remove offset adjustment hack.
* expr.h (set_mem_attributes_minus_bitpos): Declare.
2002-07-25 Richard Henderson <rth@redhat.com>
* emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
in ARRAY_REF of DECL_P case.
2002-07-21 Richard Henderson <rth@redhat.com>
* emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
when flag_argument_noalias == 2.
* alias.c (nonoverlapping_memrefs_p): Handle that.
* print-rtl.c (print_mem_expr): Likewise.
2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
* alias.c (nonoverlapping_memrefs_p): Fix off by one error.
pa.c (pa_output_function_prologue, [...]): Move updating of total_code_bytes from prologue to epilogue.
* pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
updating of total_code_bytes from prologue to epilogue.
(get_last_nonnote_insn): New function.
PR target/9316
* config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
* config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
* config/rs6000/t-rtems: New file. multilib variants to match OS.
* config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
rs6000/t-ppcgas so we get the desired multilibs.
Joel Sherrill [Wed, 29 Jan 2003 17:34:09 +0000 (17:34 +0000)]
5rosinte.ads: Add SIGXCPU.
2003-01-29 Joel Sherrill <joel@OARcorp.com>
* 5rosinte.ads: Add SIGXCPU.
* 5rtpopsp.adb: New file.
* Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
* Makefile.in: Recognize more RTEMS targets and add the RTEMS
specific file 5rtpopsp.adb.
* adaint.h: Add include of <stdio.h> when target is RTEMS. This
is likely needed for all newlib targets.
* init.c: Add RTEMS specific version of __gnat_initialize().
Joel Sherrill [Wed, 29 Jan 2003 15:55:28 +0000 (15:55 +0000)]
re PR target/9295 ([mips-rtems] config/mips/rtems.h init/fini issue)
2003-01-13 Joel Sherrill <joel@OARcorp.com>
* config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
RTEMS code knows which C++ initialization style the toolset
configuration is using. This was tracked as PR9295.
Joel Sherrill [Wed, 29 Jan 2003 15:52:58 +0000 (15:52 +0000)]
re PR bootstrap/9293 ([m68k-elf/rtems] config/m68k/t-crtstuff bug)
2003-01-29 Joel Sherrill <joel@OARcorp.com>
* config/m68k/t-crtstuff: Replace spaces with tabs, add
$(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
This issue was tracked as PR9293.
Joel Sherrill [Wed, 29 Jan 2003 15:52:11 +0000 (15:52 +0000)]
re PR bootstrap/9292 (hppa1.1-rtems configurery problems)
2003-01-29 Joel Sherrill <joel@OARcorp.com>
* config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
RTEMS threads.
* config/pa/rtems.h (LIB_SPEC): Use -N when linking.
This issue was tracked as PR9292.
Alexandre Oliva [Tue, 28 Jan 2003 22:02:54 +0000 (22:02 +0000)]
Make-lang.in (ada.install-common): Let $(DESTDIR)$(bindir) be created if necessary.
* Make-lang.in (ada.install-common): Let $(DESTDIR)$(bindir)
be created if necessary. Remove erroneous and redundant
gnatchop installation commands. Test for gnatdll before
attempting to install it. Use initial tab instead of spaces
in continuation lines.
(ada.uninstall): Uninstall gnat instead of gnatcmd.
Also uninstall gnatfind, gnatxref, gnatlbr, and gnatdll
from all plausible locations.
Alexandre Oliva [Tue, 28 Jan 2003 22:01:59 +0000 (22:01 +0000)]
Make-lang.in (ada.install-common, [...]): Prepend $(DESTDIR) to the destination directory in all (un)installation commands.
* Make-lang.in (ada.install-common, ada.uninstall):
Prepend $(DESTDIR) to the destination directory in all
(un)installation commands.
* Makefile.in (install-gnatlib): Ditto. Rewrite $(LN)
commands to support DESTDIR with "ln" as well as with
"ln -s".
Make-lang.in (ada.install-common, [...]): Prepend $(DESTDIR) to the destination directory in all (un)installation commands.
* Make-lang.in (ada.install-common, ada.uninstall):
Prepend $(DESTDIR) to the destination directory in all
(un)installation commands.
* Makefile.in (install-gnatlib): Ditto. Rewrite $(LN)
commands to support DESTDIR with "ln" as well as with
"ln -s".
* Make-lang.in (c++.install-common, c++.install-man)
(c++.uninstall): Prepend $(DESTDIR) to destination paths
in all (un)installation commands.
(c++.install-common): Rewrite $(LN) commands to support
DESTDIR with "ln" as well as with "ln -s".
Make-lang.in (ada.install-common, [...]): Prepend $(DESTDIR) to the destination directory in all (un)installation commands.
* Make-lang.in (ada.install-common, ada.uninstall):
Prepend $(DESTDIR) to the destination directory in all
(un)installation commands.
* Makefile.in (install-gnatlib): Ditto. Rewrite $(LN)
commands to support DESTDIR with "ln" as well as with
"ln -s".
* Make-lang.in (f77.install-common, f77.install-info)
(f77.install-man, f77.uninstall): Prepend $(DESTDIR) to
destination paths in all (un)installation commands.
* Make-lang.in (java.install-common, java.uninstall)
(java.install-info, java.install-man): Prepend $(DESTDIR)
to destination paths in all (un)installation commands.
* Makefile.in (mkinstalldirs): New variable.
(FLAGS_TO_PASS): Also pass DESTDIR.
(install_to_libdir, install_to_tooldir): Add $(mkinstalldirs)
command. Prepend $(DESTDIR) to destination paths.
Cd to destination directory for post-install work.
* Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
(install-libs, install-headers): Prepend $(DESTDIR) to
destination paths in all (un)installation commands.
Makefile.am (install-data-local): Prepend $(DESTDIR) to destination paths in all (un)installation commands.
* include/Makefile.am (install-data-local): Prepend
$(DESTDIR) to destination paths in all (un)installation
commands. Use ${c_base_builddir} and ${std_builddir}
as destination subdirectories to achieve consistency with
preceding mkinstalldirs commands. No effect because both
variables contain "." only.
* include/Makefile.in: Regenerate.
Nathan Sidwell [Tue, 28 Jan 2003 17:25:50 +0000 (17:25 +0000)]
re PR c++/9433 (SegFault in dynamic_cast)
libstdc++-v3:
PR c++/9433
* libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
with bases which are very ambiguous.
gcc/testsuite:
PR c++/9433
* g++.dg/abi/dcast1.C: New test.
pa.md (call_internal_reg, [...]): If TARGET_GAS and not TARGET_SOM...
* pa.md (call_internal_reg, call_value_internal_reg): If TARGET_GAS and
not TARGET_SOM, use $PIC_pcrel$0 rather than symbol difference for long
PIC calls to $$dyncall.
* pa.c (output_call): Likewise.
Mark Mitchell [Thu, 23 Jan 2003 00:30:27 +0000 (00:30 +0000)]
re PR c++/9328 (ICE with templates and namespace std members)
PR c++/9328
* g++.dg/ext/typeof3.C: New test.
PR c++/9328
* error.c (dump_decl): For an OVERLOAD, just print the name of the
function; it doesn't make sense to try to print its type.
* semantics.c (finish_typeof): Issue errors about invalid uses.