+2010-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * gcc.target/i386/20011009-1.c (COMMENT): Define.
+ (main): Use it.
+ * gcc.target/i386/pr25993.c [__sun__]: Use .globl.
+ * lib/lto.exp (lto_prune_warns): Fix location line regex.
+ Prune another location line format.
+ (lto-obj): Call lto_prune_warns on comp_output.
+
2010-05-18 Jan Hubicka <jh@suse.cz>
* gcc.dg/lto/ipacp_0.c: New test.
extern void abort (void);
extern void exit (int);
+#ifdef __sun__
+#define COMMENT "/"
+#else
+#define COMMENT "#"
+#endif
+
int main ()
{
int x;
- asm ("movl $26, %0 # 26 |-> reg \n\t"
+ asm ("movl $26, %0 " COMMENT " 26 |-> reg \n\t"
"movl $28, %0" : "=r" (x));
if (x != 28)
abort ();
# And any stray location lines.
regsub -all "(^|\n)\[^\n\]*: In function \[^\n\]*" $text "" text
- regsub -all "(^|\n)In file included from :\[^\n\]*" $text "" text
+ regsub -all "(^|\n)In file included from \[^\n\]*" $text "" text
+ regsub -all "(^|\n)\[ \t\]*from \[^\n\]*" $text "" text
# Sun ld warns about common symbols with differing sizes. Unlike GNU ld
# --warn-common (off by default), they cannot be disabled.
set compiler_conditional_xfail_data $xfaildata
set comp_output [${tool}_target_compile "$source" "$dest" object $options]
+ # Prune unimportant visibility warnings before checking output.
+ set comp_output [lto_prune_warns $comp_output]
${tool}_check_compile "$testcase $dest assemble" $optstr $dest $comp_output
}