ansidecl.h: All logic from gcc/gansidecl.h moved here.

include:
	* ansidecl.h: All logic from gcc/gansidecl.h moved here.
gcc:
	* gansidecl.h: Delete file.
	* configure.in: Change all refs to gansidecl.h to use
	ansidecl.h.  Adjust *_file_list so they know where ansidecl.h
	lives.
	* configure: Regenerate.

	* Makefile.in (intl.o): Don't depend on gansidecl.h.
	* defaults.h: s/gansidecl.h/ansidecl.h/ in comment.
	* ggc.h, config/fr30/fr30.h, config/mcore/mcore.c:
	Don't include gansidecl.h.
	* intl.c, main.c, version.c, fixinc/fixlib.h,
	fixinc/procopen.c, fixinc/server.c: Include ansidecl.h not
	gansidecl.h.
gcc/java:
	* Make-lang.in (buffer.o, check-init.o, class.o): Don't depend
	on gansidecl.h.
	* buffer.c, jvgenmain.c: Don't include gansidecl.h.
libiberty:
	* make-temp-file.c (try): Inline.

From-SVN: r41069
This commit is contained in:
Zack Weinberg 2001-04-04 00:46:27 +00:00
parent 92788413ad
commit d02af17340
23 changed files with 379 additions and 380 deletions

View File

@ -1,3 +1,19 @@
2001-04-03 Zack Weinberg <zackw@stanford.edu>
* gansidecl.h: Delete file.
* configure.in: Change all refs to gansidecl.h to use
ansidecl.h. Adjust *_file_list so they know where ansidecl.h
lives.
* configure: Regenerate.
* Makefile.in (intl.o): Don't depend on gansidecl.h.
* defaults.h: s/gansidecl.h/ansidecl.h/ in comment.
* ggc.h, config/fr30/fr30.h, config/mcore/mcore.c:
Don't include gansidecl.h.
* intl.c, main.c, version.c, fixinc/fixlib.h,
fixinc/procopen.c, fixinc/server.c: Include ansidecl.h not
gansidecl.h.
Tue Apr 3 19:41:21 CEST 2001 Jan Hubicka <jh@suse.cz>
* i386.c (ix86_force_to_memory, ix86_free_from_memory):
@ -21,7 +37,7 @@ Tue Apr 3 19:41:21 CEST 2001 Jan Hubicka <jh@suse.cz>
2001-04-03 Jakub Jelinek <jakub@redhat.com>
David S. Miller <davem@pierdol.cobaltmicro.com>
Andrew MacLeod <amacleod@redhat.com>
Andrew MacLeod <amacleod@redhat.com>
Use byte offsets in SUBREGs instead of words.
@ -66,7 +82,7 @@ Tue Apr 3 19:41:21 CEST 2001 Jan Hubicka <jh@suse.cz>
(constant_subword): New function, pulled out all constant cases
from operand_subword and changed second argument name to offset.
(operand_subword): Detect non REG/SUBREG/CONCAT/MEM cases early
and call constant_subword to do the work. Return const0_rtx if
and call constant_subword to do the work. Return const0_rtx if
looking for a word outside of OP.
(operand_subword_force): Change second arg name to offset.
* expmed.c (store_bit_field): Use SUBREG_BYTE.
@ -74,7 +90,7 @@ Tue Apr 3 19:41:21 CEST 2001 Jan Hubicka <jh@suse.cz>
(extract_bit_field): Use SUBREG_BYTE.
(extract_split_bit_field): Use SUBREG_BYTE.
(expand_shift): Use SUBREG_BYTE.
* expr.c (store_expr, expand_expr): Use gen_lowpart_SUBREG.
* expr.c (store_expr, expand_expr): Use gen_lowpart_SUBREG.
* final.c (alter_subreg) Use subreg_hard_regno and SUBREG_BYTE.
* flow.c (set_noop_p): Use SUBREG_BYTE.
(mark_set_1): Remove ALTER_HARD_SUBREG. Use subreg_regno_offset instead.
@ -84,7 +100,7 @@ Tue Apr 3 19:41:21 CEST 2001 Jan Hubicka <jh@suse.cz>
(optimize_bit_field): Use SUBREG_BYTE.
(purge_addressof_1): Use SUBREG_BYTE.
(purge_single_hard_subreg_set): Use subreg_regno_offset function.
(assign_params): Mark arguments SUBREG_PROMOTED_VAR_P if they are
(assign_params): Mark arguments SUBREG_PROMOTED_VAR_P if they are
actually promoted by the caller and PROMOTE_FOR_CALLS_ONLY is true.
* gengenrtl.c (special_rtx): Add SUBREG.
* global.c (mark_reg_store): Use SUBREG_BYTE.
@ -99,7 +115,7 @@ Tue Apr 3 19:41:21 CEST 2001 Jan Hubicka <jh@suse.cz>
* local-alloc.c (combine_regs): Use subreg_regno_offset function.
(reg_is_born): Use subreg_hard_regno.
* recog.c (valid_replace_rtx_1): Use SUBREG_BYTE and remove byte
endian correction code. Don't combine subregs unless resulting
endian correction code. Don't combine subregs unless resulting
offset aligns with type. Fix subreg constant extraction for DImode.
Simplify SUBREG of VOIDmode CONST_DOUBLE.
(general_operand): Remove dead mode_altering_drug code.
@ -110,13 +126,13 @@ Tue Apr 3 19:41:21 CEST 2001 Jan Hubicka <jh@suse.cz>
(optimize_reg_copy_3): Use gen_lowpart_SUBREG.
* regs.h (REG_SIZE): Allow target to override.
(REGMODE_NATURAL_SIZE): New macro which target can override.
* reload.c (reload_inner_reg_of_subreg): subreg_regno should be used
* reload.c (reload_inner_reg_of_subreg): subreg_regno should be used
on the entire subreg rtx.
(push_reload): Use SUBREG_BYTE in comments and code.
(find_dummy_reload): Use subreg_regno_offset. Only adjust offsets
for hard registers inside subregs.
(operands_match_p): Use subreg_regno_offset.
(find_reloads): Use SUBREG_BYTE and only advance offset for subregs
(find_reloads): Use SUBREG_BYTE and only advance offset for subregs
containing hard regs.
(find_reload_toplev): Use SUBREG_BYTE. Remove byte endian
corrections when fixing up MEM subregs.
@ -136,7 +152,7 @@ Tue Apr 3 19:41:21 CEST 2001 Jan Hubicka <jh@suse.cz>
(emit_input_reload_insns): Use SUBREG_BYTE.
(reload_combine_note_store): Use subreg_regno_offset.
(move2add_note_store): Use subreg_regno_offset.
* resource.c (update_live_status, mark_referenced_resources): Use
* resource.c (update_live_status, mark_referenced_resources): Use
subreg_regno function.
(mark_set_resources): Use subreg_regno function.
* rtl.h (SUBREG_WORD): Rename to SUBREG_BYTE.
@ -224,11 +240,11 @@ Tue Apr 3 19:41:21 CEST 2001 Jan Hubicka <jh@suse.cz>
it is congruent to SUBREG's mode size.
(smulsi3_highpart_v8plus): Fix explicit subregs in rtl to use byte
offsets.
(cmp_siqi_trunc, cmp_siqi_trunc_set, cmp_diqi_trunc,
cmp_diqi_trunc_set, lshrdi3_v8plus+1, lshrdi3_v8plus+2,
(cmp_siqi_trunc, cmp_siqi_trunc_set, cmp_diqi_trunc,
cmp_diqi_trunc_set, lshrdi3_v8plus+1, lshrdi3_v8plus+2,
lshrdi3_v8plus+3, lshrdi3_v8plus+4): Use proper
SUBREG_BYTE offset for non-paradoxical subregs in patterns.
* config/v850/v850.c (print_operand, output_move_double): Use
* config/v850/v850.c (print_operand, output_move_double): Use
subreg_regno function.
2001-04-03 Alexandre Oliva <aoliva@redhat.com>
@ -386,7 +402,7 @@ Fri Mar 30 00:21:41 CEST 2001 Jan Hubicka <jh@suse.cz>
output template.
* MAINTAINERS: Added self.
2001-03-28 Richard Henderson <rth@redhat.com>
* Makefile.in (cs-tconfig.h): Depend on CONFIG_H, not GCONFIG_H.
@ -403,7 +419,7 @@ Fri Mar 30 00:21:41 CEST 2001 Jan Hubicka <jh@suse.cz>
* tradcif.y (yyerror): Likewise. Add format specifier in call to
`error'.
* tradcpp.c (macroexpand): Likewise for call to `error_with_line'.
2001-03-28 DJ Delorie <dj@redhat.com>
@ -525,7 +541,7 @@ Fri Mar 30 00:21:41 CEST 2001 Jan Hubicka <jh@suse.cz>
(LTI_unwind_sjlj_register, LTI_unwind_sjlj_unregister): Add.
* final.c (final): Don't call check_exception_handler_labels,
init_insn_eh_region, or free_insn_eh_region.
(final_scan_insn): Always emit debug labels for
(final_scan_insn): Always emit debug labels for
NOTE_INSN_EH_REGION notes.
* flags.h (flag_new_exceptions): Remove.
* flow.c (entry_exit_blocks): Remove eh_beg, eh_end.
@ -542,7 +558,7 @@ Fri Mar 30 00:21:41 CEST 2001 Jan Hubicka <jh@suse.cz>
(flow_delete_block): Use maybe_remove_eh_handler.
(delete_eh_regions): Remove.
(merge_blocks): Don't check for eh region match.
(mark_regs_live_at_end): Handle EH_RETURN_DATA_REGNO,
(mark_regs_live_at_end): Handle EH_RETURN_DATA_REGNO,
EH_RETURN_STACKADJ_RTX, EH_RETURN_HANDLER_RTX.
(init_propagate_block_info): Disable dead frame store optimization
when current_function_calls_eh_return.
@ -624,7 +640,7 @@ Fri Mar 30 00:21:41 CEST 2001 Jan Hubicka <jh@suse.cz>
jump.c, toplev.c:
Rename asynchronous_exceptions to flag_non_call_exceptions.
* gthr-single.h (UNUSED): New. Distinguish between how C
* gthr-single.h (UNUSED): New. Distinguish between how C
and C++ mark unused function arguments. Use throughout.
* Makefile.in (cs-tconfig.h): Copy USING_SJLJ_EXCEPTIONS

View File

@ -1901,7 +1901,7 @@ $(HOST_PREFIX_1)ggc-none.o: ggc-none.c $(HCONFIG_H) $(SYSTEM_H)
#
# Remake internationalization support.
intl.o: intl.c intl.h gansidecl.h Makefile
intl.o: intl.c intl.h Makefile
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-DLOCALEDIR=\"$(localedir)\" \
-c $(srcdir)/intl.c

View File

@ -27,9 +27,6 @@ Boston, MA 02111-1307, USA. */
/* Set up System V.4 (aka ELF) defaults. */
#include "svr4.h"
/* Include prototyping macros */
#include "gansidecl.h"
/*}}}*/
/*{{{ Driver configuration. */

View File

@ -23,7 +23,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "tree.h"
#include "tm_p.h"
#include "assert.h"
#include "gansidecl.h"
#include "mcore.h"
#include "regs.h"
#include "hard-reg-set.h"

561
gcc/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -592,11 +592,11 @@ CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
gcc_AC_CHECK_DECLS(getenv atol sbrk abort atof getcwd getwd \
strsignal putc_unlocked fputs_unlocked strstr environ \
malloc realloc calloc free basename getopt, , ,[
#include "gansidecl.h"
#include "ansidecl.h"
#include "system.h"])
gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
#include "gansidecl.h"
#include "ansidecl.h"
#include "system.h"
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
@ -802,9 +802,9 @@ else
fi
tm_file="${tm_file} defaults.h"
host_xm_file="auto-host.h gansidecl.h ${host_xm_file} ${tm_file}"
build_xm_file="${build_auto} gansidecl.h ${build_xm_file} ${tm_file}"
xm_file="gansidecl.h ${xm_file} ${tm_file}"
host_xm_file="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
build_xm_file="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
xm_file="ansidecl.h ${xm_file} ${tm_file}"
# Truncate the target if necessary
if test x$host_truncate_target != x; then
@ -975,7 +975,9 @@ out_object_file=`basename $out_file .c`.o
tm_file_list=
for f in $tm_file; do
case $f in
gansidecl.h | defaults.h )
ansidecl.h )
tm_file_list="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
defaults.h )
tm_file_list="${tm_file_list} $f" ;;
*) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
esac
@ -989,7 +991,9 @@ done
host_xm_file_list=
for f in $host_xm_file; do
case $f in
auto-host.h | gansidecl.h | defaults.h )
ansidecl.h )
host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
auto-host.h | defaults.h )
host_xm_file_list="${host_xm_file_list} $f" ;;
*) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
esac
@ -998,7 +1002,9 @@ done
build_xm_file_list=
for f in $build_xm_file; do
case $f in
auto-build.h | auto-host.h | gansidecl.h | defaults.h )
ansidecl.h )
build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
auto-build.h | auto-host.h | defaults.h )
build_xm_file_list="${build_xm_file_list} $f" ;;
*) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
esac

View File

@ -161,7 +161,7 @@ do { ASM_OUTPUT_LABEL(FILE,LABEL_ALTERNATE_NAME (INSN)); } while (0)
/* If the target supports weak symbols, define TARGET_ATTRIBUTE_WEAK to
provide a weak attribute. Else define it to nothing.
This would normally belong in gansidecl.h, but SUPPORTS_WEAK is
This would normally belong in ansidecl.h, but SUPPORTS_WEAK is
not available at that time.
Note, this is only for use by target files which we know are to be

View File

@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA. */
#define FIXINCLUDES_FIXLIB_H
#include "auto-host.h"
#include "gansidecl.h"
#include "ansidecl.h"
#include "system.h"
#include "gnu-regex.h"

View File

@ -46,7 +46,7 @@
* If you do not wish that, delete this exception notice.
*/
#include "auto-host.h"
#include "gansidecl.h"
#include "ansidecl.h"
#include "system.h"
#include "server.h"

View File

@ -47,7 +47,7 @@
*/
#include "auto-host.h"
#include "gansidecl.h"
#include "ansidecl.h"
#include "system.h"
#include <signal.h>

View File

@ -1,52 +0,0 @@
/* ANSI and traditional C compatibility macros.
Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* This file mimics some of the support provided by include/ansidecl.h
in binutils and gdb releases.
??? Over time the two should be merged into one. */
#ifndef __GANSIDECL_H__
#define __GANSIDECL_H__
#include "ansidecl.h"
/* Autoconf will possibly define the `inline' or `const' keywords as
macros, however this is only valid for the stage1 compiler. If we
detect a modern version of gcc, unconditionally reset the values.
This makes sure the right thing happens in stage2 and later. We
need to do this very early; i.e. before any systems header files or
gcc header files in case they use these keywords. Otherwise
conflicts might occur. */
#if (GCC_VERSION >= 2007)
# ifdef __STDC__
# undef const
# endif
# undef inline
# define inline __inline__ /* Modern gcc can use `__inline__' freely. */
# ifndef HAVE_LONG_DOUBLE
# define HAVE_LONG_DOUBLE 1
# endif
#endif /* GCC >= 2.7 */
#ifndef NULL_PTR
#define NULL_PTR ((PTR) 0)
#endif
#endif /* __GANSIDECL_H__ */

View File

@ -18,7 +18,6 @@ along with GNU CC; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
#include "gansidecl.h"
#include "varray.h"
/* Symbols are marked with `ggc' for `gcc gc' so as not to interfere with

View File

@ -1,6 +1,6 @@
/* intl.c - internationalization */
#include "gansidecl.h"
#include "ansidecl.h"
#include "intl.h"
const char localedir[] = LOCALEDIR;

View File

@ -1,3 +1,9 @@
2001-04-03 Zack Weinberg <zackw@stanford.edu>
* Make-lang.in (buffer.o, check-init.o, class.o): Don't depend
on gansidecl.h.
* buffer.c, jvgenmain.c: Don't include gansidecl.h.
2001-04-02 Zack Weinberg <zackw@stanford.edu>
* expr.c (pop_type_0): Save the result of the first

View File

@ -242,12 +242,11 @@ java/gjavah.o: $(CONFIG_H) $(SYSTEM_H) $(JAVA_TREE_H) java/gjavah.c \
java/jcf-reader.c java/jcf.h java/javaop.h version.h
java/boehm.o: java/boehm.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(JAVA_TREE_H) \
java/parse.h
java/buffer.o: java/buffer.c $(CONFIG_H) java/buffer.h gansidecl.h \
$(SYSTEM_H) toplev.h
java/check-init.o: java/check-init.c $(CONFIG_H) gansidecl.h \
java/buffer.o: java/buffer.c $(CONFIG_H) java/buffer.h $(SYSTEM_H) toplev.h
java/check-init.o: java/check-init.c $(CONFIG_H) \
$(JAVA_TREE_H) $(SYSTEM_H) toplev.h
java/class.o: java/class.c $(CONFIG_H) $(JAVA_TREE_H) $(RTL_H) java/jcf.h \
java/parse.h gansidecl.h toplev.h $(SYSTEM_H) output.h $(GGC_H)
java/parse.h toplev.h $(SYSTEM_H) output.h $(GGC_H)
java/constants.o: java/constants.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \
toplev.h $(SYSTEM_H) $(GGC_H)
java/decl.o: java/decl.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \

View File

@ -22,7 +22,6 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#include "system.h"
#include "gansidecl.h"
#include "buffer.h"
/* Grow BUFP so there is room for at least SIZE more bytes. */

View File

@ -27,7 +27,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
#include "obstack.h"
#include "gansidecl.h"
#include "jcf.h"
#include "tree.h"
#include "java-tree.h"

View File

@ -17,7 +17,7 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include "gansidecl.h"
#include "ansidecl.h"
#include "toplev.h"
int main PARAMS ((int argc, char **argv));

View File

@ -1,4 +1,4 @@
#include "gansidecl.h"
#include "ansidecl.h"
#include "version.h"
const char *const version_string = "3.1 20010403 (experimental)";

View File

@ -1,3 +1,7 @@
2001-04-03 Zack Weinberg <zackw@stanford.edu>
* ansidecl.h: All logic from gcc/gansidecl.h moved here.
2001-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* libiberty.h (alloca): Handle setting C_ALLOCA.

View File

@ -161,6 +161,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#endif /* ANSI C. */
/* This is for GCC, which has historically used typed null pointer
constants. It needs to be here so it is seen by headers included
by gcc's config.h.
FIXME: GCC probably doesn't need to use typed nulls anymore.
Clean it up, then remove this. Ware variable-argument functions. */
#ifdef IN_GCC
# define NULL_PTR ((PTR) 0)
#endif
/* Using MACRO(x,y) in cpp #if conditionals does not work with some
older preprocessors. Thus we can't define something like this:
@ -230,4 +239,23 @@ So instead we use the macro below and test it against specific values. */
#define __extension__
#endif
/* Bootstrap support: Autoconf will possibly define the `inline' or
`const' keywords as macros, however this is only valid for the
stage1 compiler. If we detect a modern version of gcc,
unconditionally reset the values. This makes sure the right thing
happens in stage2 and later. We need to do this very early;
i.e. before any header files that might use these keywords.
Otherwise conflicts might occur. */
#if (GCC_VERSION >= 2007)
# ifdef __STDC__
# undef const
# endif
# undef inline
# define inline __inline__ /* __inline__ prevents -pedantic warnings */
# ifndef HAVE_LONG_DOUBLE
# define HAVE_LONG_DOUBLE 1
# endif
#endif /* GCC >= 2.7 */
#endif /* ansidecl.h */

View File

@ -1,3 +1,7 @@
2001-04-03 Zack Weinberg <zackw@stanford.edu>
* make-temp-file.c (try): Inline.
2001-02-28 Richard Henderson <rth@redhat.com>
* Makefile.in (make-temp-file.o): Depend on config.h.

View File

@ -61,9 +61,9 @@ extern int mkstemps PARAMS ((char *, int));
If success, DIR is returned.
Otherwise NULL is returned. */
static const char *try PARAMS ((const char *, const char *));
static inline const char *try PARAMS ((const char *, const char *));
static const char *
static inline const char *
try (dir, base)
const char *dir, *base;
{