From: Kazu Hirata Date: Sat, 7 Sep 2002 14:14:55 +0000 (+0000) Subject: h8300.c: Fix formatting. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8bd06267cfc0fa588174484499f56e841fed311f;p=gcc.git h8300.c: Fix formatting. * config/h8300/h8300.c: Fix formatting. * config/h8300/h8300.h: Likewise. * config/h8300/h8300.md: Likewise. From-SVN: r56917 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e666c3f0ff2..74f035a63b3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-09-07 Kazu Hirata + + * config/h8300/h8300.c: Fix formatting. + * config/h8300/h8300.h: Likewise. + * config/h8300/h8300.md: Likewise. + 2002-09-07 Zdenek Dvorak * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 952db460ec0..cfcea40fc9d 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -315,9 +315,9 @@ h8300_init_once () target_flags |= 1; } - /* Some of the shifts are optimized for speed by default. + /* Some of the shifts are optimized for speed by default. See http://gcc.gnu.org/ml/gcc-patches/2002-07/msg01858.html - If optimizing for size, change shift_alg for those shift to + If optimizing for size, change shift_alg for those shift to SHIFT_LOOP. */ if(optimize_size) { @@ -484,7 +484,7 @@ pop (file, rn) PC FP <- fp - <- sp + <- sp This is what the stack looks like after the prolog of a function which doesn't have a frame: @@ -492,7 +492,7 @@ pop (file, rn) PC - <- sp + <- sp */ /* Output assembly language code for the function prologue. */ @@ -700,7 +700,7 @@ asm_file_start (file) { fprintf (file, ";\tGCC For the Hitachi H8/300\n"); fprintf (file, ";\tBy Hitachi America Ltd and Cygnus Support\n"); - + if (optimize_size) fprintf (file, "; -Os\n"); else if (optimize) diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index 6781af8484a..726d47f3347 100644 --- a/gcc/config/h8300/h8300.h +++ b/gcc/config/h8300/h8300.h @@ -392,8 +392,8 @@ enum reg_class { #define REG_CLASS_CONTENTS \ { {0}, /* No regs */ \ - {0x6ff}, /* GENERAL_REGS */ \ - {0x100}, /* MAC_REGS */ \ + {0x6ff}, /* GENERAL_REGS */ \ + {0x100}, /* MAC_REGS */ \ {0x7ff}, /* ALL_REGS */ \ } @@ -686,14 +686,14 @@ struct cum_arg H8/300 vvvv context - 1 0000 7900xxxx mov.w #0x1234,r3 - 2 0004 5A00xxxx jmp @0x1234 + 1 0000 7900xxxx mov.w #0x1234,r3 + 2 0004 5A00xxxx jmp @0x1234 ^^^^ function H8/300H vvvvvvvv context - 2 0000 7A00xxxxxxxx mov.l #0x12345678,er3 - 3 0006 5Axxxxxx jmp @0x123456 + 2 0000 7A00xxxxxxxx mov.l #0x12345678,er3 + 3 0006 5Axxxxxx jmp @0x123456 ^^^^^^ function */ diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index 9aa47ce8f45..822367dc790 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -97,7 +97,7 @@ ;; none - insn does not affect cc ;; none_0hit - insn does not affect cc but it does modify operand 0 ;; This attribute is used to keep track of when operand 0 changes. -;; See the description of NOTICE_UPDATE_CC for more info. +;; See the description of NOTICE_UPDATE_CC for more info. ;; set_znv - insn sets z,n,v to usable values (like a tst insn); c is unknown. ;; set_zn - insn sets z,n to usable values; v,c are unknown. ;; compare - compare instruction