-
- Downloads
AVR: Only provide a built-in when it is available.
Some built-ins are not available for C++ since they are using named address-spaces or fixed-point types. gcc/ * config/avr/builtins.def (AVR_FIRST_C_ONLY_BUILTIN_ID): New macro. * config/avr/avr-protos.h (avr_builtin_supported_p): New. * config/avr/avr.cc (avr_builtin_supported_p): New function. (avr_init_builtins): Only provide a built-in when it is supported. * config/avr/avr-c.cc (avr_cpu_cpp_builtins): Only define the __BUILTIN_AVR_<NAME> build-in defines when the associated built-in function is supported. * doc/extend.texi (AVR Built-in Functions): Add a note that following built-ins are supported for only for GNU-C.
Showing
- gcc/config/avr/avr-c.cc 2 additions, 1 deletiongcc/config/avr/avr-c.cc
- gcc/config/avr/avr-protos.h 1 addition, 0 deletionsgcc/config/avr/avr-protos.h
- gcc/config/avr/avr.cc 22 additions, 3 deletionsgcc/config/avr/avr.cc
- gcc/config/avr/builtins.def 7 additions, 0 deletionsgcc/config/avr/builtins.def
- gcc/doc/extend.texi 10 additions, 8 deletionsgcc/doc/extend.texi
Loading
Please register or sign in to comment