diff options
| author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-14 01:47:55 +0000 |
|---|---|---|
| committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-14 01:47:55 +0000 |
| commit | a98c90fb17faedf41b11f119df6a2cf176fc36f8 (patch) | |
| tree | 5aaf8a144eb51716a97768af713542bd82296804 | |
| parent | c49187ddeaa83529b9616a02ebbafd913b8ea62e (diff) | |
| download | ppe42-gcc-a98c90fb17faedf41b11f119df6a2cf176fc36f8.tar.gz ppe42-gcc-a98c90fb17faedf41b11f119df6a2cf176fc36f8.zip | |
+2003-11-13 Andrew Pinski <apinski@apple.com>
+
+ * config/darwin.c (machopic_output_possible_stub_label):
+ Allow stub symbol be not defined when outputting possible
+ stub label.
+
+2003-11-13 Andrew Pinski <apinski@apple.com>
+
+ * gcc.c-torture/compile/20031113-1.c: New test.
+
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73570 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/config/darwin.c | 2 | ||||
| -rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20031113-1.c | 21 |
4 files changed, 32 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d0ddf501c73..dc4c0ad0222 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-11-13 Andrew Pinski <apinski@apple.com> + + * config/darwin.c (machopic_output_possible_stub_label): + Allow stub symbol be not defined when outputting possible + stub label. + 2003-11-13 Kazu Hirata <kazu@cs.umass.edu> * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 47ca65d541c..1ac122376de 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -1116,7 +1116,7 @@ machopic_output_possible_stub_label (FILE *file, const char *name) const char *sym_name; sym_name = IDENTIFIER_POINTER (TREE_VALUE (temp)); - if (sym_name[0] == '!' && sym_name[1] == 'T' + if (sym_name[0] == '!' && (sym_name[1] == 'T' || sym_name[1] == 't') && ! strcmp (name+2, sym_name+2)) { ASM_OUTPUT_LABEL (file, IDENTIFIER_POINTER (TREE_PURPOSE (temp))); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4d418b034c6..a9590799c44 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-11-13 Andrew Pinski <apinski@apple.com> + + * gcc.c-torture/compile/20031113-1.c: New test. + 2003-11-13 Mark Mitchell <mark@codesourcery.com> Kean Johnston <jkj@sco.com> diff --git a/gcc/testsuite/gcc.c-torture/compile/20031113-1.c b/gcc/testsuite/gcc.c-torture/compile/20031113-1.c new file mode 100644 index 00000000000..74c031c3d86 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20031113-1.c @@ -0,0 +1,21 @@ +/* On Darwin, the stub for simple_cst_equal was not being emitted at all + causing the as to die and not create an object file. */ + +int +attribute_list_contained () +{ + return (simple_cst_equal ()); +} +int +simple_cst_list_equal () +{ + return (simple_cst_equal ()); +} + + +int __attribute__((noinline)) +simple_cst_equal () +{ + return simple_cst_list_equal (); +} + |

