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
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| COPYING.LIB | Loading commit data... | |
| Makefile.in | Loading commit data... | |
| PROJECTS | Loading commit data... | |
| README | Loading commit data... | |
| Version.c | Loading commit data... | |
| access_.c | Loading commit data... | |
| acconfig.h | Loading commit data... | |
| aclocal.m4 | Loading commit data... | |
| alarm_.c | Loading commit data... | |
| chdir_.c | Loading commit data... | |
| chmod_.c | Loading commit data... | |
| config.hin | Loading commit data... | |
| configure | Loading commit data... | |
| configure.in | Loading commit data... | |
| ctime_.c | Loading commit data... | |
| date_.c | Loading commit data... | |
| datetime_.c | Loading commit data... | |
| dtime_.c | Loading commit data... | |
| etime_.c | Loading commit data... | |
| fdate_.c | Loading commit data... | |
| fgetc_.c | Loading commit data... | |
| flush1_.c | Loading commit data... | |
| fnum_.c | Loading commit data... | |
| fputc_.c | Loading commit data... | |
| fstat_.c | Loading commit data... | |
| gerror_.c | Loading commit data... | |
| getcwd_.c | Loading commit data... | |
| getgid_.c | Loading commit data... | |
| getlog_.c | Loading commit data... | |
| getpid_.c | Loading commit data... | |
| getuid_.c | Loading commit data... | |
| gmtime_.c | Loading commit data... | |
| hostnm_.c | Loading commit data... | |
| idate_.c | Loading commit data... | |
| ierrno_.c | Loading commit data... | |
| irand_.c | Loading commit data... | |
| isatty_.c | Loading commit data... | |
| itime_.c | Loading commit data... | |
| kill_.c | Loading commit data... | |
| link_.c | Loading commit data... | |
| lnblnk_.c | Loading commit data... | |
| lstat_.c | Loading commit data... | |
| ltime_.c | Loading commit data... | |
| mclock_.c | Loading commit data... | |
| perror_.c | Loading commit data... | |
| rand_.c | Loading commit data... | |
| rename_.c | Loading commit data... | |
| secnds_.c | Loading commit data... | |
| second_.c | Loading commit data... | |
| sleep_.c | Loading commit data... | |
| srand_.c | Loading commit data... | |
| stamp-h.in | Loading commit data... | |
| stat_.c | Loading commit data... | |
| symlnk_.c | Loading commit data... | |
| sys_clock_.c | Loading commit data... | |
| time_.c | Loading commit data... | |
| ttynam_.c | Loading commit data... | |
| u77-test.f | Loading commit data... | |
| umask_.c | Loading commit data... | |
| unlink_.c | Loading commit data... | |
| vxtidate_.c | Loading commit data... | |
| vxttime_.c | Loading commit data... |