gcc/libf2c/libU77
Ziemowit Laski 8bb418a3d5 darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
[gcc/ChangeLog]
2004-02-21  Ziemowit Laski  <zlaski@apple.com>

        * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
        SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
        * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
        * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
        (vector, pixel, bool): #define to __vector, __pixel and __bool.
        (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
        portion of header.
        (__altivec_link_error_invalid_argument): Remove prototype; will use
        __builtin_altivec_compiletime_error("vec_*") instead.
        (vec_*): Fix/complete set of available operation overloads given the
        existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
        cv-correctness of pointer arguments; in C, always check for correct
        argument types before macro expansion.
        * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
        defining Darwin/PowerPC-specific '-f[no-]altivec' and
        '-W[no-]altivec-long-deprecated' switches.
        * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
        '__vector', '__pixel' and '__bool' macros using
        '__attribute__((altivec(...)))' types.
        * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
        bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
        bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
        New type nodes.
        (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
        handling '-W[no-]altivec-long-deprecated'.
        (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
        (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
        altivec_expand_dst_builtin): Remove casts from integer literals.
        (altivec_expand_builtin): Likewise; handle expansion of new
        '__builtin_altivec_compiletime_error' function.
        (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
        types, and make them distinct from other vector types; register
        '__builtin_altivec_compiletime_error' function.
        (print_operand): For 'P', print a full target register name instead of
        merely its number.
        (rs6000_attribute_table): Add "altivec" attribute.
        (rs6000_handle_altivec_attribute): New function.
        * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
        '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
        maps to).
        (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
        declare.
        (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.

[gcc/testsuite/ChangeLog]
2004-02-21  Ziemowit Laski  <zlaski@apple.com>

        * g++.dg/ext/altivec-1.C: Generalize target triple.
        * g++.dg/ext/altivec-2.C: New test case.
        * g++.dg/ext/altivec_check.h: New file.
        * gcc.dg/altivec-1.c: Generalize target triple;
        include altivec_check.h and call altivec_check().
        * gcc.dg/altivec-[2-5].c: Generalize target triple.
        * gcc.dg/altivec-6.c: New test case.
        * gcc.dg/altivec-[7-9].c: Generalize target triple; add
        type casts as needed.
        * gcc.dg/altivec-10.c: Include altivec_check.h and call
        altivec_check().
        * gcc.dg/altivec-12.c: New test case.
        * gcc.dg/altivec-varargs-1.c: Generalize target triple;
        include altivec_check.h and call altivec_check().
        * gcc.dg/altivec_check.h: New file.

From-SVN: r78215
2004-02-21 09:08:37 +00:00
..
access_.c rdfmt.c (rd_I): Delete unused variable(s). 2002-06-02 12:59:22 +00:00
acconfig.h
aclocal.m4
alarm_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
chdir_.c rdfmt.c (rd_I): Delete unused variable(s). 2002-06-02 12:59:22 +00:00
chmod_.c rdfmt.c (rd_I): Delete unused variable(s). 2002-06-02 12:59:22 +00:00
config.hin darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options. 2004-02-21 09:08:37 +00:00
configure configure.in: Add in AC_PREREQ(2.13) 2004-01-15 03:41:49 +00:00
configure.in configure.in: Add in AC_PREREQ(2.13) 2004-01-15 03:41:49 +00:00
COPYING.LIB
ctime_.c rdfmt.c (rd_I): Delete unused variable(s). 2002-06-02 12:59:22 +00:00
date_.c date_.c (G77_date_y2kbuggy_0): Declare G77_abort_0 noreturn. 2002-12-18 11:37:14 -05:00
datetime_.c re PR libf2c/7384 (DATE_AND_TIME milliseconds field inactive on Windows) 2002-09-14 12:50:40 +00:00
dtime_.c main.c (f_setarg, f_setsig): Prototype. 2002-06-04 02:25:48 +00:00
etime_.c main.c (f_setarg, f_setsig): Prototype. 2002-06-04 02:25:48 +00:00
fdate_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
fgetc_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
flush1_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
fnum_.c re PR libf2c/11918 (isatty does not call f_init) 2003-09-21 16:16:46 +00:00
fputc_.c f2cext.c (alarm_): Mark parameter(s) with attribute `unused'. 2002-06-05 19:07:11 +00:00
fstat_.c re PR libf2c/11918 (isatty does not call f_init) 2003-09-21 16:16:46 +00:00
gerror_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
getcwd_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
getgid_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
getlog_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
getpid_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
getuid_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
gmtime_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
hostnm_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
idate_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
ierrno_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
irand_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
isatty_.c re PR libf2c/11918 (isatty does not call f_init) 2003-09-21 16:16:46 +00:00
itime_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
kill_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
link_.c rdfmt.c (rd_I): Delete unused variable(s). 2002-06-02 12:59:22 +00:00
lnblnk_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
lstat_.c rdfmt.c (rd_I): Delete unused variable(s). 2002-06-02 12:59:22 +00:00
ltime_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
Makefile.in bes.c, dbes.c: Remove. 2003-06-15 04:43:18 +00:00
mclock_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
perror_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
PROJECTS
rand_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
README
rename_.c rdfmt.c (rd_I): Delete unused variable(s). 2002-06-02 12:59:22 +00:00
secnds_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
second_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
sleep_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
srand_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
stamp-h.in
stat_.c rdfmt.c (rd_I): Delete unused variable(s). 2002-06-02 12:59:22 +00:00
symlnk_.c rdfmt.c (rd_I): Delete unused variable(s). 2002-06-02 12:59:22 +00:00
sys_clock_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
time_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
ttynam_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
u77-test.f
umask_.c *: Fix formatting. 2002-06-01 12:38:32 +00:00
unlink_.c rdfmt.c (rd_I): Delete unused variable(s). 2002-06-02 12:59:22 +00:00
Version.c update_version: Do not check in files which are unchanged. 2002-09-24 03:44:36 +00:00
vxtidate_.c date_.c (G77_date_y2kbuggy_0): Declare G77_abort_0 noreturn. 2002-12-18 11:37:14 -05:00
vxttime_.c f2cext.c (alarm_): Mark parameter(s) with attribute `unused'. 2002-06-05 19:07:11 +00:00

19970811						    -*-text-*-

g77 libU77
----------

This directory contains an implementation of most of the `traditional'
Unix libU77 routines, mostly an interface to libc and libm routines
and some extra ones for time and date etc.  It's intended for use with
g77, to whose configuration procedure it's currently tied, but should
be compatible with f2c otherwise, if using the same f2c.h.

The contents of libU77 and its interfaces aren't consistent across
implementations.  This one is mostly taken from documentation for (an
old version of) the Convex implementation and the v2 SunPro one.
As of g77 version 0.5.20, most of these routines have been made
into g77 intrinsics.  Some routines have a version with a name prefixed
by `vxt', corresponding to the VMS Fortran versions, and these should
be integrated with g77's intrinsics visibility control.

A few routines are currently missing; in the case of `fork', for
instance, because they're probably not useful, and in the case of
`qsort' and those for stream-based i/o handling, because they need
more effort/research.  The configuration should weed out those few
which correspond to facilities which may not be present on some Unix
systems, such as symbolic links.  It's unclear whether the interfaces
to the native library random number routines should be retained, since
their implementation is likely to be something one should avoid
assiduously.

This library has been tested it under SunOS4.1.3 and Irix5.2 and there
has been some feedback from Linux; presumably potential problems lie
mainly with systems with impoverished native C library support which
haven't been properly taken care of with autoconf.

There's another GPL'd implementation of this stuff which I only found
out about recently (despite having looked) and I haven't yet checked
how they should be amalgamated.

Dave Love <d.love@dl.ac.uk>  Aug '95
(minor changes by Craig Burley <burley@gnu.org> Aug '97)