+2015-07-07  Christian Bruel  <christian.bruel@st.com>
+
+       PR target/52144
+       * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
+
 2015-07-07  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/66739
 
   { "marm", "mlittle-endian", "mfloat-abi=soft", "mno-thumb-interwork", "fno-leading-underscore" }
 #endif
 \f
-#define TARGET_ASM_FILE_START_APP_OFF true
 #define TARGET_ASM_FILE_START_FILE_DIRECTIVE true
 \f
 
 
+2015-07-07  Christian Bruel  <christian.bruel@st.com>
+
+       PR target/52144
+       * gcc.target/arm/flip-thumb.c: Fix scan.
+       * gcc.target/arm/attr_thumb.c: Test for all targets. Fix scan.
+       * gcc.target/arm/attr_arm.c: Test for all targets. Fix scan.
+       * gcc.target/arm/attr_thumb-static.c: Test for all targets.
+       Fix return value.
+
 2015-05-05  Jakub Jelinek  <jakub@redhat.com>
 
         PR target/65956
 
 /* Check that attribute target arm is recognized.  */
 /* { dg-do compile } */
-/* { dg-require-effective-target arm_arm_ok } */
-/* { dg-options "-O2" } */
-/* { dg-final { scan-assembler ".arm" } } */
-/* { dg-final { scan-assembler-not "ite" } } */
+/* { dg-final { scan-assembler "\\.arm" } } */
+/* { dg-final { scan-assembler-not "\\.thumb_func" } } */
 
 int __attribute__((target("arm")))
 foo(int a)
 
 /* Check that a change mode to a static function is correctly handled. */
 /* { dg-do run } */
-/* { dg-require-effective-target arm_thumb1_ok } */
 
 static void
  __attribute__((__noinline__)) 
   __asm__ ("");
 }
 
-int main()
+int
+main (void)
 {
   foo();
   bar();
+  return 0;
 }
 
 /* Check that attribute target thumb is recognized. */
 /* { dg-do compile } */
-/* { dg-require-effective-target arm_thumb2_ok } */
 /* { dg-options "-O2 -mno-restrict-it" } */
-/* { dg-final { scan-assembler ".thumb" } } */
-/* { dg-final { scan-assembler "ite" } } */
+/* { dg-final { scan-assembler-not "\\.arm"  } } */
+/* { dg-final { scan-assembler "\\.thumb_func" } } */
 
 int __attribute__((target("thumb")))
 foo(int a)
 {
+  /* { dg-final { scan-assembler "ite" { target { arm_thumb2_ok } } } } */
   return a ? 1 : 5;
 }
 
 
 /* Check -mflip-thumb. */
 /* { dg-do compile } */
 /* { dg-options "-O2 -mflip-thumb -mno-restrict-it" } */
-/* { dg-final { scan-assembler ".arm" } } */
-/* { dg-final { scan-assembler-times ".thumb_func" 1} } */
+/* { dg-final { scan-assembler "\\.arm" } } */
+/* { dg-final { scan-assembler-times "\\.thumb_func" 1} } */
 
 int 
 foo(int a)