diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2000-09-07 04:12:47 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-09-07 04:12:47 +0000 |
commit | 4979c2a9f3865740220144296e6921a076efb809 (patch) | |
tree | 9a2d937938684c6e599a8786ea5e43104db915cb /gcc | |
parent | 71105114a1bc36d9d94a60136973fdce95b16b94 (diff) | |
download | gcc-4979c2a9f3865740220144296e6921a076efb809.zip gcc-4979c2a9f3865740220144296e6921a076efb809.tar.gz gcc-4979c2a9f3865740220144296e6921a076efb809.tar.bz2 |
sh.h (OVERRIDE_OPTIONS): Don't disable function CSE unless generating PIC.
* config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
CSE unless generating PIC.
From-SVN: r36226
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/config/sh/sh.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3f09088..e488f0f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2000-09-07 Alexandre Oliva <aoliva@redhat.com> + * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function + CSE unless generating PIC. + * config/sh/sh.md (symPLT_label2reg): Force the initialization of the PIC register. diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index feb5853..6e73788 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -266,7 +266,7 @@ do { \ else \ flag_omit_frame_pointer = 0; \ \ - if (! TARGET_PREFERGOT) \ + if (flag_pic && ! TARGET_PREFERGOT) \ flag_no_function_cse = 1; \ \ /* Never run scheduling before reload, since that can \ |