diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2013-01-14 15:08:45 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2013-01-14 15:08:45 +0000 |
commit | 0089227267c027fc4420f68ae8adf2f5863ec3c9 (patch) | |
tree | 967119b7ca2f6f310aa970a49bd7a7df7a493add /gcc/config/avr/avr-c.c | |
parent | d0ad394c5e95de3ad312be53bd6399a679b3b27d (diff) | |
download | gcc-0089227267c027fc4420f68ae8adf2f5863ec3c9.zip gcc-0089227267c027fc4420f68ae8adf2f5863ec3c9.tar.gz gcc-0089227267c027fc4420f68ae8adf2f5863ec3c9.tar.bz2 |
* Fix typos. Remove trailing blanks. Fix coding style.
From-SVN: r195151
Diffstat (limited to 'gcc/config/avr/avr-c.c')
-rw-r--r-- | gcc/config/avr/avr-c.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gcc/config/avr/avr-c.c b/gcc/config/avr/avr-c.c index 14c89aa..f8b2b20 100644 --- a/gcc/config/avr/avr-c.c +++ b/gcc/config/avr/avr-c.c @@ -40,7 +40,7 @@ avr_register_target_pragmas (void) gcc_assert (ADDR_SPACE_GENERIC == ADDR_SPACE_RAM); /* Register address spaces. The order must be the same as in the respective - enum from avr.h (or designated initialized must be used in avr.c). */ + enum from avr.h (or designated initializers must be used in avr.c). */ for (i = 0; i < ADDR_SPACE_COUNT; i++) { @@ -52,14 +52,14 @@ avr_register_target_pragmas (void) } -/* Transorm LO into uppercase and write the result to UP. +/* Transform LO into uppercase and write the result to UP. You must provide enough space for UP. Return UP. */ static char* avr_toupper (char *up, const char *lo) { char *up0 = up; - + for (; *lo; lo++, up++) *up = TOUPPER (*lo); @@ -67,7 +67,7 @@ avr_toupper (char *up, const char *lo) return up0; } - + /* Worker function for TARGET_CPU_CPP_BUILTINS. */ static const char *const avr_builtin_name[] = @@ -82,7 +82,7 @@ void avr_cpu_cpp_builtins (struct cpp_reader *pfile) { int i; - + builtin_define_std ("AVR"); if (avr_current_arch->macro) @@ -139,24 +139,24 @@ avr_cpu_cpp_builtins (struct cpp_reader *pfile) if (avr_current_device->errata_skip) { cpp_define (pfile, "__AVR_ERRATA_SKIP__"); - + if (avr_current_arch->have_jmp_call) cpp_define (pfile, "__AVR_ERRATA_SKIP_JMP_CALL__"); } cpp_define_formatted (pfile, "__AVR_SFR_OFFSET__=0x%x", avr_current_arch->sfr_offset); - + #ifdef WITH_AVRLIBC cpp_define (pfile, "__WITH_AVRLIBC__"); #endif /* WITH_AVRLIBC */ - - /* Define builtin macros so that the user can easily query if or if not - non-generic address spaces (and which) are supported. + + /* Define builtin macros so that the user can easily query whether + non-generic address spaces (and which) are supported or not. This is only supported for C. For C++, a language extension is needed (as mentioned in ISO/IEC DTR 18037; Annex F.2) which is not implemented in GCC up to now. */ - + if (!strcmp (lang_hooks.name, "GNU C")) { for (i = 0; i < ADDR_SPACE_COUNT; i++) @@ -174,8 +174,8 @@ avr_cpu_cpp_builtins (struct cpp_reader *pfile) } } - /* Define builtin macros so that the user can easily query if or - if not a specific builtin is available. */ + /* Define builtin macros so that the user can easily query whether or + not a specific builtin is available. */ for (i = 0; avr_builtin_name[i]; i++) { |